\documentclass[12pt,a4paper,]{report}
\usepackage[top=3cm,right=4cm,bottom=3cm,left=3cm]{geometry}
\usepackage{pdfpages}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{float}
\usepackage{subfigure}
\usepackage{titlesec}
\usepackage[font=small, labelfont={bf}, margin=1cm]{caption}
\usepackage{xepersian}
\renewcommand\bibname{منابع}
\renewcommand\listfigurename{فهرست شکل‌ها}
\renewcommand\listtablename{فهرست جدول‌ها}
\setlatintextfont{Times New Roman}
\settextfont[Scale=1.1]{XB Zar}
\setdigitfont{Parsi Digits}
\flushbottom
% ------------------------------------
\makeatletter
\renewcommand*\l@chapter[2]{%
	\ifnum \c@tocdepth >\m@ne
	\addpenalty{-\@highpenalty}%
	\vskip 1.0em \@plus\p@
	\setlength\@tempdima{2.4em}%
	\begingroup
	\parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
	\parfillskip -\@pnumwidth
	\leavevmode \bfseries
	\advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
	\hskip -\if@RTL\rightskip\else\leftskip\fi
	#1\nobreak\leaders\hbox{$\m@th
		\mkern \@dotsep mu\hbox{.}\mkern \@dotsep
		mu$}\hfill \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
	\penalty\@highpenalty
	\endgroup
	\fi}

\renewcommand\tableofcontents{%
	\if@twocolumn
	\@restonecoltrue\onecolumn
	\else
	\@restonecolfalse
	\fi
	\centerline{\huge\bfseries\contentsname
		\@mkboth{%
			\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
	\vskip 40\p@
	\@starttoc{toc}%
	\if@restonecol\twocolumn\fi
}

\renewcommand{\@starttoc}[1]{%
	\hboxR to \textwidth{عنوان \hfill صفحه} 
	\begingroup
	\makeatletter
	\@input{\jobname.#1}%
	\if@filesw
	\expandafter\newwrite\csname tf@#1\endcsname
	\immediate\openout \csname tf@#1\endcsname \jobname.#1\relax
	\fi
	\@nobreakfalse
	\endgroup}
\makeatletter 
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
	\refstepcounter{chapter}%
	\typeout{\@chapapp\space\thechapter.}%
	\addcontentsline{toc}{chapter}%
	{\@chapapp~\protect\numberline{\thechapter}#1}%
	\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
\makeatletter
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
	\if@mainmatter
	\refstepcounter{chapter}%
	\typeout{\@chapapp\space\thechapter.}%
	\addcontentsline{toc}{chapter}
	{\chaptername~\protect\numberline{\@tartibi\c@chapter}~~#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}{4.3em}{2.3em}}        
\renewcommand*\l@subsection{\@dottedtocline{2}{6.5em}{3.2em}}  
\makeatother


%----------------------------------------------------

\titleformat{\chapter}[display]
{\normalfont\LARGE\bfseries\centering}{}{20pt}{\LARGE}
\titlespacing{\chapter}{2pc}{1.4 cm}{1 cm}[2pc]
%\titleformat*{\section}{\large\bfseries}
%\titleformat*{\subsection}{\bfseries}
\SepMark -
\begin{document}
\include{taeid}
\baselineskip 27pt
\include{taeid_en}
\baselineskip 27pt 
\end{document}