<?php
if (!isset($__DATABASE)) {
    header("Location: ../../../views/auth/403.php");
}

$fileName = basename($_SERVER['PHP_SELF']);
?>
<nav id="main_nav" class="fixed top-0 left-0 right-0 z-50 p-2 flex justify-between overflow-visible bg-white shadow-md">
    <ul class="flex items-center">
        <li onclick="toggleSidebar()" class="mx-1 p-2 hover:bg-gray-400 text-sm font-bold cursor-pointer">
            <img id="open_aside_icon" src="../../public/icons/menu.svg" alt="menu icon">
        </li>
        <li onclick="toggleSidebar()" class="mx-1 p-2 font-semibold">
            <h2 class="text-xl">
                مجموعه هیوندای افق
            </h2>
        </li>
    </ul>
    <div class="flex items-center">
        <?php
        $profile = '../../public/img/avatar.svg'; ?>
        <img class="w-10 h-10 rounded-full" src="<?= $profile ?>" title="<?= $_SESSION['username'] ?>" alt="user image" />
    </div>
</nav>