<aside class="sidebar">
    <div class="sidebar-header d-flex justify-content-between align-items-center">
        <a href="<?php echo e(route('dashboard')); ?>" class="sidebar-brand text-truncate" style="max-width: 85%;">
            <i class="bi bi-mortarboard-fill me-2"></i> <?php echo e(config('app.name', 'College ERP')); ?>

        </a>
        <button type="button" class="btn-close d-lg-none" id="sidebarCloseBtn" aria-label="Close"></button>
    </div>

    <div class="sidebar-nav">
        <!-- Dashboard -->
        <a href="<?php echo e(route('dashboard')); ?>" class="nav-link <?php echo e(request()->routeIs('dashboard') ? 'active' : ''); ?>">
            <i class="bi bi-speedometer2"></i>
            <span>Dashboard</span>
        </a>

        <!-- Academic Module -->
        <div class="nav-label text-muted small fw-bold px-4 mt-3 mb-2">ACADEMIC</div>

        <a href="<?php echo e(route('students.index')); ?>" class="nav-link <?php echo e(request()->routeIs('students.*') ? 'active' : ''); ?>">
            <i class="bi bi-people"></i>
            <span>Students</span>
        </a>

        <a href="<?php echo e(route('teachers.index')); ?>" class="nav-link <?php echo e(request()->routeIs('teachers.*') ? 'active' : ''); ?>">
            <i class="bi bi-person-video3"></i>
            <span>Teachers</span>
        </a>

        <a href="<?php echo e(route('subjects.index')); ?>" class="nav-link <?php echo e(request()->routeIs('subjects.*') ? 'active' : ''); ?>">
            <i class="bi bi-book"></i>
            <span>Subjects</span>
        </a>

        <a href="<?php echo e(route('exams.index')); ?>" class="nav-link <?php echo e(request()->routeIs('exams.*') ? 'active' : ''); ?>">
            <i class="bi bi-pencil-square"></i>
            <span>Exams</span>
        </a>

        <a href="<?php echo e(route('exam-templates.index')); ?>"
            class="nav-link <?php echo e(request()->routeIs('exam-templates.*') ? 'active' : ''); ?>">
            <i class="bi bi-file-earmark-text"></i>
            <span>Templates</span>
        </a>

        <a href="<?php echo e(route('result-management.index')); ?>"
            class="nav-link <?php echo e(request()->routeIs('result-management.*') ? 'active' : ''); ?>">
            <i class="bi bi-graph-up"></i>
            <span>Results</span>
        </a>

        <!-- Content Module -->
        <div class="nav-label text-muted small fw-bold px-4 mt-3 mb-2">CONTENT</div>

        <a href="<?php echo e(route('notices.index')); ?>" class="nav-link <?php echo e(request()->routeIs('notices.*') ? 'active' : ''); ?>">
            <i class="bi bi-megaphone"></i>
            <span>Notices</span>
        </a>

        <a href="<?php echo e(route('hero-slides.index')); ?>"
            class="nav-link <?php echo e(request()->routeIs('hero-slides.*') ? 'active' : ''); ?>">
            <i class="bi bi-images"></i>
            <span>Gallery</span>
        </a>

        <!-- System -->
        <div class="nav-label text-muted small fw-bold px-4 mt-3 mb-2">SYSTEM</div>

        <a href="<?php echo e(route('settings.index')); ?>" class="nav-link <?php echo e(request()->routeIs('settings.*') ? 'active' : ''); ?>">
            <i class="bi bi-gear"></i>
            <span>Settings</span>
        </a>

        <a href="<?php echo e(route('profile.edit')); ?>" class="nav-link <?php echo e(request()->routeIs('profile.*') ? 'active' : ''); ?>">
            <i class="bi bi-person-circle"></i>
            <span>My Profile</span>
        </a>

        <a href="#" class="nav-link">
            <i class="bi bi-shield-lock"></i>
            <span>Audit Logs</span>
        </a>

        <form method="POST" action="<?php echo e(route('tyro-login.logout')); ?>" class="mt-3 px-3">
            <?php echo csrf_field(); ?>
            <button type="submit" class="btn btn-outline-danger w-100 d-flex align-items-center justify-content-center">
                <i class="bi bi-box-arrow-right me-2"></i> Logout
            </button>
        </form>
    </div>
</aside><?php /**PATH C:\Users\ADMIN\Desktop\admin\resources\views/admin/partials/sidebar.blade.php ENDPATH**/ ?>