<div id="layoutSidenav">
    <div id="layoutSidenav_nav">
        <nav class="sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion">
            <div class="sb-sidenav-menu">
                <div class="nav">

                    <!-- Dashboard -->
                    <a class="nav-link" href="dashboard.php">
                        <div class="sb-nav-link-icon"><i class="fas fa-tachometer-alt"></i></div>
                        Dashboard
                    </a>

                    <div class="sb-sidenav-menu-heading">Interface</div>

                    <!-- Academic Setup -->
                    <a class="nav-link collapsed" href="#" id="menuAcademicSetup" data-bs-toggle="collapse"
                        data-bs-target="#collapseAcademicSetup">

                        <div class="sb-nav-link-icon"><i class="fas fa-school"></i></div>
                        Academic Setup
                        <div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
                    </a>
                    <div class="collapse" id="collapseAcademicSetup" data-bs-parent="#sidenavAccordion">
                        <nav class="sb-sidenav-menu-nested nav">

                            <a class="nav-link" href="add_class.php">
                                <i class="fas fa-chalkboard-teacher me-2 text-muted"></i>
                                Classes
                            </a>

                            <a class="nav-link" href="students.php">
                                <i class="fas fa-user-graduate me-2 text-muted"></i>
                                Students
                            </a>

                        </nav>
                    </div>

                    <!-- Fees Management -->
                    <a class="nav-link collapsed" href="#" id="menuFee" data-bs-toggle="collapse"
                        data-bs-target="#collapseFee">

                        <div class="sb-nav-link-icon">
                            <i class="fas fa-rupee-sign"></i>
                        </div>
                        Fees Management
                        <div class="sb-sidenav-collapse-arrow">
                            <i class="fas fa-angle-down"></i>
                        </div>
                    </a>

                    <div class="collapse" id="collapseFee" data-bs-parent="#sidenavAccordion">
                        <nav class="sb-sidenav-menu-nested nav">

                            <a class="nav-link" href="fee_types.php">
                                <i class="fas fa-list-alt me-2 text-muted"></i>
                                Fee Types
                            </a>

                        </nav>
                    </div>


                    <!-- Academic Settings -->
                    <a class="nav-link collapsed" href="#" id="menuAcademic" data-bs-toggle="collapse"
                        data-bs-target="#collapseAcademic">

                        <div class="sb-nav-link-icon">
                            <i class="fas fa-calendar-alt"></i>
                        </div>
                        Academic Settings
                        <div class="sb-sidenav-collapse-arrow">
                            <i class="fas fa-angle-down"></i>
                        </div>
                    </a>

                    <div class="collapse" id="collapseAcademic" data-bs-parent="#sidenavAccordion">
                        <nav class="sb-sidenav-menu-nested nav">

                            <a class="nav-link" href="academic_session.php">
                                <i class="fas fa-calendar-check me-2 text-muted"></i>
                                Academic Session
                            </a>

                        </nav>
                    </div>





                    <div class="sb-sidenav-menu-heading">Administrative Tools</div>

                    <a class="nav-link" href="print_bulk_idCard.php">
                        <div class="sb-nav-link-icon fs-5"><i class="fa-solid fa-address-card"></i></div>
                        Generate ID cards
                    </a>

                    <div class="sb-sidenav-menu-heading">Administrative Setting</div>
                    
                    <a class="nav-link" href="setting.php">
                        <div class="sb-nav-link-icon fs-5"><i class="fas fa-school"></i></div>
                        Add School Details
                    </a>
                    <a class="nav-link" href="admin_profile.php">
                        <div class="sb-nav-link-icon fs-5"><i class="fas fa-gear"></i></div>
                        Admin Profile
                    </a>
                     <a class="nav-link" href="result.php">
                        <div class="sb-nav-link-icon fs-5"><i class="fas fa-file-signature"></i></div>
                        Result
                    </a>
                </div>
            </div>
            <div class="sb-sidenav-footer">
                <div class="small">Logged in as:</div>
                <?php echo isset($_SESSION['admin_user']) ? htmlspecialchars($_SESSION['admin_user']) : 'Admin'; ?>
            </div>
        </nav>
    </div>
    <div id="layoutSidenav_content">