The problem you’re having is the calls you have made to the exit() function, this function is an alias of the php die() function which stops any further output to the browser, causing the bottom of the file to not be processed.
If you get rid of the exit function calls after the includes, then the page below should render as normal.
You may have been thrown off by the closing tag being rendered in the browser, the php won’t be processing this, but most modern browsers are smart enough to realise the closing tag is missing and place it there for you.
2
solved Why is my page ignoring the rest of the content after an include? [closed]