<?php
/**
 * Admin layout wrapper — header + sidebar + page content.
 *
 * Variables available: $current_page, $view_file.
 *
 * @package PrivexPasswordProtect
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Template builder gets a full-width immersive layout.
if ( 'template-builder' === $current_page ) {
	include $view_file;
	return;
}
?>
<div class="ppmstr-admin-wrap">
	<?php include __DIR__ . '/partials/header.php'; ?>
	<div class="ppmstr-admin-body">
		<?php include __DIR__ . '/partials/sidebar-nav.php'; ?>
		<main class="ppmstr-admin-content">
			<?php include $view_file; ?>
		</main>
	</div>
</div>
