\documentclass[12pt, a4paper]{report}
% Document Preamble
\usepackage{times}
\usepackage{geometry}
\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{tocloft}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
%\usepackage{natbib}
\usepackage{appendix}
\usepackage{lipsum} % For generating dummy text
\usepackage{xpatch}
\usepackage{enumitem}
\usepackage{array}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{titletoc}
\usepackage{tocbibind}
\usepackage{xltabular}
\usepackage{wrapfig}
\usepackage[hidelinks]{hyperref}
\renewcommand{\headrulewidth}{.4mm} % header line width
% Customize the table of contents title
\renewcommand{\cfttoctitlefont}{\Huge\bfseries\MakeUppercase}
\renewcommand{\chaptername}{CHAPTER}
\titlecontents{chapter}% <section-type>
[0pt]% <left>
{}% <above-code>
{\bfseries \\ \chaptername\ \thecontentslabel: \quad}% <numbered-entry-format>
{\bfseries}% <numberless-entry-format>
{\bfseries\hfill\contentspage}% <filler-page-format>
% Page layout
\geometry{top=1in, bottom=1in, left=1.5in, right=1in}
%chapter header center
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries\centering}{\centering\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}
{0pt}{20pt}{10pt}
\newenvironment{biograpgy}{}{}
\newenvironment{appendice}{}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
\fancypagestyle{custom}{
\fancyhead[R]{\small\itshape Thesis Title Thesis Title Thesis Title Thesis Title}
\renewcommand{\headrulewidth}{0pt}
}
\begin{document}
\pagestyle{fancy}
\fancyhf{}% Clear header/footer
\fancyfoot[R]{\thepage}
\input{FrontMatters/title}
\pagenumbering{roman}
\input{FrontMatters/certificate}
\input{FrontMatters/board_of_examiners}
\input{FrontMatters/board_of_examiners_2nd}
\chapter*{CANDIDATE'S DECLARATION}
\addcontentsline{toc}{chapter}{CANDIDATE'S DECLARATION}
\input{FrontMatters/candidates_declaration}
\chapter*{ACKNOWLEDGMENTS}
\addcontentsline{toc}{chapter}{ACKNOWLEDGEMENTS}
\input{FrontMatters/acknowledgments}
\chapter*{ABSTRACT}
\addcontentsline{toc}{chapter}{ABSTRACT}
\input{FrontMatters/abstract}
\newpage
% Table of contents, list of figures, and list of tables
\renewcommand\bibname{REFERENCES}
\renewcommand*\contentsname{CONTENTS}
\renewcommand*\listtablename{LIST OF TABLES}
\renewcommand*\listfigurename{LIST OF FIGURES}
\begin{center}
\tableofcontents \newpage
\listoffigures \newpage
\listoftables \newpage
\end{center}
\cleardoublepage
\pagenumbering{arabic}
\chapter{Introduction}
%%%%%
\thispagestyle{custom}
%Start Introduction From Here
\input{Chapters/1_introduction}
\chapter{Literature Review}
\thispagestyle{custom}
\input{Chapters/2_literature_review}
\chapter{Methodology}
\thispagestyle{custom}
\input{Chapters/3_methodology}
\chapter{Implementation}
\thispagestyle{custom}
\input{Chapters/4_implementation}
\chapter{Result and Analysis}
\thispagestyle{custom}
\input{Chapters/5_resultandanalysis}
\chapter{Conclusion and Future Work}
\thispagestyle{custom}
\input{Chapters/6_conclusionandfutureworks}
% ... Add more chapters as needed
% References
\bibliographystyle{IEEEtran}
\bibliography{references}
\thispagestyle{custom}
% Appendices
\begin{appendice}
\chapter*{APPENDIX A}
\addcontentsline{toc}{chapter}{APPENDIX A}
\input{BackMatter/appendix_a}
\thispagestyle{custom}
\chapter*{APPENDIX B}
\thispagestyle{custom}
\addcontentsline{toc}{chapter}{APPENDIX B}
\input{BackMatter/appendix_b}
\end{appendice}
%BIOGRAPHY
\begin{biograpgy}
\chapter*{BIOGRAPHY}
\addcontentsline{toc}{chapter}{BIOGRAPHY}
\thispagestyle{custom}
\input{BackMatter/biography 1}
\thispagestyle{custom}
\input{BackMatter/biography 2}
\thispagestyle{custom}
\input{BackMatter/biography 3}
\end{biograpgy}
\end{document}