<?php

$currentPage = basename($_SERVER['PHP_SELF']);

?>

<aside class="sidebar">

    <div class="sidebar-header">

        <a href="../admin/dashboard.php" class="logo">

            <img src="../assets/images/logo.png" alt="Complete Bliss Logo">

            <div class="logo-text">

                <h2>Complete Bliss</h2>

                <span>Admin Panel</span>

            </div>

        </a>

        <button class="close-sidebar">

            <i class="fas fa-times"></i>

        </button>

    </div>

    <ul class="sidebar-menu">

        <li class="<?= ($currentPage=='dashboard.php')?'active':''; ?>">
            <a href="../admin/dashboard.php">
                <i class="fas fa-home"></i>
                <span>Dashboard</span>
            </a>
        </li>

        <li class="<?= ($currentPage=='registrations.php')?'active':''; ?>">
            <a href="../admin/registrations.php">
                <i class="fas fa-user-check"></i>
                <span>Registration Requests</span>
            </a>
        </li>

        <li class="<?= ($currentPage=='members.php')?'active':''; ?>">
            <a href="../admin/members.php">
                <i class="fas fa-users"></i>
                <span>Members</span>
            </a>
        </li>

        <li class="<?= ($currentPage=='plans.php')?'active':''; ?>">
            <a href="../admin/plans.php">
                <i class="fas fa-box"></i>
                <span>Schemes</span>
            </a>
        </li>



        <li class="<?= ($currentPage=='wallets.php')?'active':''; ?>">
            <a href="../admin/wallets.php">
                <i class="fas fa-wallet"></i>
                <span>Wallets</span>
            </a>
        </li>

        <li class="<?= ($currentPage=='payments.php')?'active':''; ?>">
            <a href="../admin/payments.php">
                <i class="fas fa-money-bill-wave"></i>
                <span>Payments</span>
            </a>
        </li>


        <li class="<?= ($currentPage=='defaults.php')?'active':''; ?>">
    <a href="../admin/defaults.php">
        <i class="fas fa-triangle-exclamation"></i>
        <span>Defaults</span>
    </a>
</li>


<li class="<?= ($currentPage=='clearance.php')?'active':''; ?>">

    <a href="../admin/clearance.php">

        <i class="fas fa-clipboard-check"></i>

        <span>Clearance</span>

    </a>

</li>

        <li class="<?= ($currentPage=='reports.php')?'active':''; ?>">
            <a href="../admin/reports.php">
                <i class="fas fa-chart-line"></i>
                <span>Reports</span>
            </a>
        </li>

        <li class="<?= ($currentPage=='notifications.php')?'active':''; ?>">
            <a href="../admin/notifications.php">
                <i class="fas fa-bell"></i>
                <span>Notifications</span>
            </a>
        </li>

        <li class="<?= ($currentPage=='settings.php')?'active':''; ?>">
            <a href="../admin/settings.php">
                <i class="fas fa-cog"></i>
                <span>Settings</span>
            </a>
        </li>

        <li>
            <a href="../logout.php">
                <i class="fas fa-sign-out-alt"></i>
                <span>Logout</span>
            </a>
        </li>

    </ul>

</aside>