\documentclass[a4paper,12pt]{report}
\usepackage{breqn}
\usepackage{perpage}
\MakePerPage{footnote}
\usepackage{graphicx} % inserting images
\usepackage{cite}
\usepackage{hyperref} % PDF links
\usepackage{setspace} % for switching between double/single space in document
\usepackage{fancyhdr} % package for changing Headings style
\usepackage{times}
\usepackage{amssymb}
% setting the margins of page
 \usepackage[top=3.5cm,right=3.5cm,bottom=2.5cm,left=2.5cm]{geometry}  
\usepackage{xepersian}
\renewcommand{\baselinestretch}{1.2}
% tell tex engine address of folder containing your pictures
\graphicspath{{images/}}
\renewcommand{\thefigure}{\arabic{figure}-\arabic{chapter}}
\renewcommand{\thesection}{\arabic{section}-\arabic{chapter}}
\renewcommand{\thesubsection}{\arabic{subsection}-\arabic{section}-\arabic{chapter}}
\renewcommand{\theequation}{\beginL\arabic{equation}-\arabic{chapter}\endL}
% commands to print the page number in header
\thispagestyle{plain}
\cfoot{}
\lhead{\thepage}
% commands related to XePersian package
\defpersianfont\zar[Scale=1.1]{Zar}
\settextfont[Scale=1.1]{Zar}
\setdigitfont[Scale=1]{XB Zar}
\setpersianmonofont[Scale=1]{Lotus Bold}
\setiranicfont[Scale=1]{Mitra}
\usepackage{bidi}
\makeatletter
\def\@makechapterhead#1{%
  \vspace*{50\p@}%
  {\parindent \z@  \raggedright\normalfont
    \ifnum \c@secnumdepth >\m@ne
      \if@mainmatter
        \huge\bfseries \@chapapp\space  \thechapter
        \par\nobreak
        \vskip 20\p@
      \fi
    \fi
    \interlinepenalty\@M
    \Huge \bfseries #1\par\nobreak
    \vskip 40\p@
  }}
\def\@makeschapterhead#1{%
  \vspace*{50\p@}%
  {\parindent \z@ \centering
    \normalfont
    \interlinepenalty\@M
    \Huge \bfseries  #1\par\nobreak
    \vskip 40\p@
  }}
\makeatother
\begin{document}
\renewcommand{\listfigurename}{ فهرست شکل‌ها}
\renewcommand{\listtablename}{ فهرست جدول‌ها}
\thispagestyle{plain}
\pagenumbering{harfi}
\tableofcontents
\doublespacing
\listoffigures
% insert each of your chapters with a \inlcude{filename} command as below

\doublespacing
\input{first}
\input{chap1}
\input{chap2}
\renewcommand{\appendixname}{پيوست}
\appendix
\include{peyvast1}
\include{peyvast2}

\singlespacing
\include{thebibliography}
\end{document}