How to manage components across different pages

so for some background, I currently have a pretty complex application, using PHP, jQuery, and some angular. I have a page (a dashboard) which presents the client with numerous components, as seen in the image below.
dashboard layout

I am trying to create another page with similar functionality, that both reuses and re-implements many of the components. The issue I am having is I need to reuse all the components that are the same, as I am constantly making changes to them.

How should I go about this in PHP?
Should I have a main file page which includes PHP functions, each corresponding to a component, so in the pages I just need to call those functions? This is a conceptual question.