<?php

use Illuminate\Support\Facades\Event;
use Mtc\Cms\Events\SiteTreeEvent;
use Mtc\Core\AdminMenu;

?>
<div class="sidebar">


    <ul class="topnav">

        <?php
        if (!empty($_SESSION['adminId']) && isset($adminuser)) {
            ?>
            <li class="siteNavigation p">
                <span class="sectionHeader">Navigation</span>
                <ul>
                    <li>
                        <a href="/admin/" title="Go to <?= config('app.name') ?> Admin home">
                            <i class="fa fa-home"></i>
                            Dashboard
                        </a>
                    </li>
                    <li>
                        <a href="/" title="Go to <?= config('app.name') ?>" target="_blank">
                            <i class="fa fa-globe"></i>
                            Homepage
                        </a>
                    </li>
                    <li>
                        <a href="/admin/logout.php">
                            <i class="fa fa-sign-out"></i>
                            Logout
                        </a>
                    </li>
                </ul>
            </li>
            <?php
        }
        ?>

        <?= $twig->render('admin/favourite_links.twig', [ 'admin_user' => $adminuser ]) ?>

        <?= $twig->render('admin/nav.twig'); ?>
    </ul>

</div><!-- end of left navigationc column -->

<div class="el rightcol">
