<?php
/**
 * Admin layout wrapper template.
 *
 * All admin pages are rendered inside this layout shell.
 *
 * @package MonitorCat
 *
 * @var string $content_template Inner template path (set by current_template in PageRenderer).
 */

defined( 'ABSPATH' ) || exit;

/** @var \MonitorCat\Admin\PageRenderer $this */
$monitorcat_content_template = MONITORCAT_DIR . 'templates/' . $this->get_current_template() . '.php';
?>
<div class="monitorcat-wrap" id="monitorcat-app">

	<?php include MONITORCAT_DIR . 'templates/admin/partials/header.php'; ?>

	<main class="mc-main">
		<?php
		if ( file_exists( $monitorcat_content_template ) ) {
			include $monitorcat_content_template;
		}
		?>
	</main>

</div>
