<?php
// session_start();

if (!isset($_SESSION['admin-Loggedin']) && !isset($_SESSION['is_admin_Loggedin'])) {
    // @header("location: ./login");
    // echo "<script>window.location.href='./login.php';</script>";
}

///include("config.php");
?>
<style>
        .sidebar {
            position: sticky;
            top: 0;
        }
</style>
<div class="sidebar dark:bg-zinc-900 bg-[white] sticky w-64 h-[100vh]" style="overflow-y:auto;">
    <div class="logo px-4 py-6">
        <a href="<?php echo $site_url ?>">
            <h3 class="fw-bold text-2xl dark:text-gray-100 uppercase text-gray-600 "><?php echo Zon_Config('site_name') ?></h3>
        </a>
    </div>
    <ul class="list px-4 mt-2">
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="index.php"><span class="bi-speedometer2 mr-2"></span> Dashboard</a></li>
        <li class="text-muted text-[10px] mt-3 mb-3 uppercase">ARCADE</li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="games.php"><span class="bi-controller mr-2"></span> Games</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="featured_games.php"><span class="bi-stickies mr-2"></span> Featured Games</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="categories.php"><span class="bi-columns-gap mr-2"></span> Categories</a></li>
        <li class="text-muted text-[10px] mt-3 mb-3 letter-space-1 uppercase">community</li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="users.php"><span class="bi-person mr-2"></span> Users</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="comments.php"><span class="bi-chat-square-text mr-2"></span> Comments</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="pages.php"><span class="bi-collection mr-2"></span> Pages</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="blog.php"><span class="bi-clipboard mr-2"></span> Blog</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="reports.php"><span class="bi-bug mr-2"></span> Reports</a></li>
        <li class="text-muted text-[10px] mt-3 mb-3 uppercase">settings</li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="section.php"><span class="bi-grip-horizontal mr-2"></span> Sections</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="customize.php"><span class="bi-palette2 mr-2"></span> Customize</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="tools.php"><span class="bi-tools mr-2"></span> Tools</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="advertisement.php"><span class="bi-tv mr-2"></span> Advertisement</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="settings.php"><span class="bi-gear mr-2"></span> Settings</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="update-script.php"><span class="bi-gear mr-2"></span> Update</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="delete-games.php"><span class="bi-gear mr-2"></span> Delete All Games</a></li>
        <li class="list-style-none"><a class="text-docoration-none text-gray-500 dark:text-gray-400 py-2 block text-[13px]" href="logout.php"><span class="bi-gear mr-2"></span> logout</a></li>
    </ul>
</div>