<?php

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

?>

<aside class="sidebar">

    <div class="sidebar-header">

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

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

            <div class="logo-text">

                <h2>Complete Bliss</h2>

                <span>Member Portal</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="../member/dashboard.php">

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

                <span>Dashboard</span>

            </a>

        </li>

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

            <a href="../member/wallet.php">

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

                <span>Wallet</span>

            </a>

        </li>

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

            <a href="../member/schemes.php">

                <i class="fas fa-layer-group"></i>

                <span>Schemes</span>

            </a>

        </li>

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

            <a href="../member/my_schemes.php">

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

                <span>My Schemes</span>

            </a>

        </li>


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

    <a href="../member/defaults.php">

        <i class="fas fa-triangle-exclamation"></i>

        <span>My Defaults</span>

    </a>

</li>


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

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

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

        <span>Clearance</span>

    </a>

</li>

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

            <a href="../member/history.php">

                <i class="fas fa-clock-rotate-left"></i>

                <span>History</span>

            </a>

        </li>

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

            <a href="../member/notifications.php">

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

                <span>Notifications</span>

            </a>

        </li>

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

            <a href="../member/profile.php">

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

                <span>Profile</span>

            </a>

        </li>

        <li>

            <a href="../logout.php">

                <i class="fas fa-right-from-bracket"></i>

                <span>Logout</span>

            </a>

        </li>

    </ul>

</aside>