\documentclass[a4paper,12pt]{report}
\usepackage{graphicx} % inserting images
\usepackage{hyperref} % PDF links

\usepackage{zref-perpage}
\zmakeperpage{footnote}

\usepackage{enumitem} %to use alphabet item
\usepackage{setspace} % for switching between double/single space in document
%\usepackage{fancyhdr} % package for changing Headings style

% setting the margins of page
\usepackage{fontspec} %to define and use fonts
\usepackage{titlesec} % to use \titleformat
\usepackage[top=3cm,right=3cm,bottom=3cm,left=2cm]{geometry}                 
\usepackage{xepersian}

\SepMark{-} %change dot to dash

%add chapter phrase before it's number
\makeatletter \let\orig@chapter\@chapter
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
                       \if@mainmatter
                         \refstepcounter{chapter}%
                         \typeout{\@chapapp\space\thechapter.}%
                         \addcontentsline{toc}{chapter}%
                                   {\@chapapp~\protect\numberline{\thechapter}#1}%
                       \else
                         \addcontentsline{toc}{chapter}{#1}%
                       \fi
                    \else
                      \addcontentsline{toc}{chapter}{#1}%
                    \fi
                    \chaptermark{#1}%
                    \addtocontents{lof}{\protect\addvspace{10\p@}}%
                    \addtocontents{lot}{\protect\addvspace{10\p@}}%
                    \if@twocolumn
                      \@topnewpage[\@makechapterhead{#2}]%
                    \else
                      \@makechapterhead{#2}%
                      \@afterheading
                    \fi}
\renewcommand*\l@section{\@dottedtocline{1}{3.5em}{2.3em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{5.8em}{3.2em}} 
\makeatother


\defpersianfont\HMXNiloofar[Scale=1.192,ExternalLocation,%
  BoldFont={HM_XNiloofarBd},%
  ItalicFont={HM_XNiloofarIt},%
  BoldItalicFont={HM_XNiloofarBdIt},%
  SlantedFont={HM_XNiloofarOb},%
  BoldSlantedFont={HM_XNiloofarObBd}%
  ]{HM_XNiloofar}
  
  
\defpersianfont\HMXTitr[Scale=1.192,ExternalLocation,%
  ItalicFont={HM_XTitrIt},%
  SlantedFont={HM_XTitrOb},%
  ]{HM_XTitr}

\renewcommand{\abstractname}{}
% دستوری برای حذف کلمه «abstract»
%\renewcommand{\latinabstract}{}
% دستوری برای تغییر نام کلمه «اثبات» به «برهان»
\renewcommand\proofname{\textbf{برهان}}
% دستوری برای تغییر نام کلمه «کتاب‌نامه» به «مراجع»
\renewcommand{\bibname}{منابع}

%\renewcommand{\theequation}{\thechapter-\arabic{equation}}
\def\listalgorithmname{فهرست الگوریتم‌ها}
\def\listfigurename{فهرست تصاویر}
\def\listtablename{فهرست جداول}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% tell tex engine address of folder containing your pictures
\graphicspath{{images/}}

% commands related to XePersian package
\settextfont[Scale=1.1]{HMXNiloofar}
%\settitrfont{HMXTitr}
\setdigitfont{HMXNiloofar}
\setlatintextfont{Times New Roman}

%chapter title format change font and number to alpha number
\titleformat{\chapter}[display]
{\normalfont\huge\filcenter\HMXTitr}{\renewcommand{\thechapter}{\tartibi{chapter}}
\chaptertitlename\ \thechapter}{20pt}{\Huge}
% -------------------------------------

\input{jeld_info}

\begin{document}

\include{cover_fa}

\newpage

\include{inTheNameOfGod}
\include{cover_fa}
\include{taeid}

\pagenumbering{harfi}
\tableofcontents
\listoftables
\listoffigures

\include{abstract_fa}

% insert each of your chapters with a \inlcude{filename} command as below
\doublespacing
\include{chap1}
\include{chap2}
\include{chap3}
\include{chap4}
% -----------------------------------------------------------------------

\singlespacing
\include{references}

% If do not have appendix then comment following 3 lines
\doublespacing

%add chapter phrase before it's number
\makeatletter
\let\@chapter\orig@chapter
\makeatother

\appendix %change page number to alpha

\include{peyvast1}
\include{peyvast2}
% -------------------------------------------------------

\singlespacing
\include{abstract_en}
\include{cover_en}

\newpage

\end{document}