<?php
$config = include __DIR__ . '/../shared/config.php';
$roleConfig = $config['superuser'];
?>
<?= $this->extend('shared/layout', ['roleConfig' => $roleConfig]); ?>

<?= $this->section('content'); ?>
<main class="p-4 flex-1 flex flex-col gap-2 overflow-hidden min-h-0" x-data="dashboard">
	<?= $this->include('shared/content_requests', ['config' => $roleConfig]); ?>
	<?= $this->include('shared/dialog_sample', ['config' => $roleConfig]); ?>
	<?= $this->include('shared/dialog_unval'); ?>
	<?= $this->include('shared/dialog_audit'); ?>
	<?= $this->include('shared/dialog_results_generate'); ?>
	<?= $this->include('shared/dialog_eng_result'); ?>
	<?= $this->include('shared/dialog_preview'); ?>
</main>
<?= $this->endSection(); ?>

<?= $this->section('script'); ?>
<script type="module">
	import Alpine from '<?= base_url("js/app.js"); ?>';
	<?= $this->include('shared/script_requests'); ?>
	Alpine.start();
</script>
<?= $this->endSection(); ?>