<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * ADMIN LAYOUT SHELL
 * Expects: $_content, $user, $active, $page_title (optional), $counts (optional).
 */
$page_title = isset($page_title) ? $page_title : 'Dashboard';
?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title><?= html_escape($page_title) ?> — Bloom Iris Admin</title>
	<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap" rel="stylesheet">
	<link rel="stylesheet" href="<?= asset_url('css/admin.css') ?>">
	<link rel="icon" type="image/png" href="<?= asset_url('img/favicon.png') ?>">
</head>
<body>
<div class="admin-shell">

	<?php $this->load->view('admin/layouts/_sidebar'); ?>

	<div class="admin-main">
		<?php $this->load->view('admin/layouts/_topbar', array('page_title' => $page_title)); ?>

		<div class="content">
			<?= flash() ?>
			<?= $_content ?>
		</div>
	</div>
</div>

<script src="<?= asset_url('js/admin.js') ?>"></script>
</body>
</html>
