Hi! I can see that you have a partials dit in your views. I suggest that we refactor the viens in a way that it can support a basic templating system as you can see here.
partials
views