<!doctype html>
<html lang="en">
<head>

<?php
require_once $path . 'core/admin/templates/meta.php';

HooksAdapter::do_action('admin_header');
?>

</head>

<body data-admin="1">
    <div id="vueContainer">
        <div class="vueFragment">

            <div id="dialog" class="hidden"></div>

            <div id="wrapper">

                <div id="header">

                    <a href="/admin/" title="mtc." class="logo">
                        <?= file_get_contents(SITE_PATH . '/core/admin/images/logo.svg') ?>
                    </a> <!-- .logo -->

                    <ul class="headerTitleSection">
                        <li>
                            <span><?= SITE_NAME ?></span> Admin Dashboard
                        </li>
                    </ul>

                    <?php
                    if (!empty($_SESSION['adminId']) && isset($adminuser)) {
                        ?>
                        <ul class="headerMenuSections">
                            <li>
                                Welcome back <span><?= clean_page($adminuser->name) ?></span>
                            </li>

                            <li>
                                <a href="/admin/" title="Go to <?= SITE_NAME ?> Admin home">
                                    <i class="fa fa-home"></i>
                                    Dashboard
                                </a>
                            </li>
                            <li>
                                <a href="/" title="Go to <?= SITE_NAME ?>" target="_blank">
                                    <i class="fa fa-globe"></i>
                                    Homepage
                                </a>
                            </li>

                            <li>
                                <a href="/admin/logout">
                                    <i class="fa fa-sign-out"></i>
                                    Logout
                                </a>
                            </li>
                        </ul> <!-- .text -->
                        <?php
                    }
                    ?>

                    <a class="flyoutButton">
                        Menu<i class="fa fa-bars" aria-hidden="true"></i>
                    </a>

                </div> <!-- #head -->

                <div id="content">

                <?php
                $twig = \Illuminate\Support\Facades\App::make('twig');
                $twig->display('admin/nav.twig');
                ?>
                <div class="el rightcol">

