<?php
/**
 * @var string $content
 * @var string $resources
 * @var string $title
 * @var \kernel\CgView $view
 */
$assets = new \app\themes\svo\assets\SvoThemesAssets($resources);
?>
<!DOCTYPE html>
<html lang="en">
<!-- [Head] start -->

<head>
    <title><?= $title ?></title>
    <!-- [Meta] -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <?php $assets->getCSSAsSTR(); ?>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="Mantis is made using Bootstrap 5 design framework. Download the free admin template & use it for your project.">
    <meta name="keywords" content="Mantis, Dashboard UI Kit, Bootstrap 5, Admin Template, Admin Dashboard, CRM, CMS, Bootstrap Admin Template">
    <meta name="author" content="CodedThemes">

    <!-- [Favicon] icon -->
    <link rel="icon" href="<?= $resources ?>/assets/images/favicon.svg" type="image/x-icon"> <!-- [Google Font] Family -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700&display=swap" id="main-font-link">
    <script type="application/javascript">var resource = '<?= $resources ?>'</script>

</head>
<!-- [Head] end -->
<!-- [Body] Start -->

<body>
<!-- [ Pre-loader ] start -->
<div class="loader-bg">
    <div class="loader-track">
        <div class="loader-fill"></div>
    </div>
</div>
<!-- [ Pre-loader ] End -->
<?php if (\kernel\Flash::hasMessage("error")): ?>
    <div class="card">
        <?= \kernel\Flash::getMessage("error"); ?>
    </div>
<?php endif; ?>
<?php if (\kernel\Flash::hasMessage("success")): ?>
    <div class="card">
        <?= \kernel\Flash::getMessage("success"); ?>
    </div>
<?php endif; ?>
<?= $content ?>
<!-- [ Main Content ] end -->
<!-- Required Js -->

<?php $assets->getJSAsStr(); ?>

<script>layout_change('light');</script>
<script>change_box_container('false');</script>
<script>layout_rtl_change('false');</script>
<script>preset_change("preset-1");</script>
<script>font_change("Public-Sans");</script>

</body>
<!-- [Body] end -->

</html>
