<!-- Sidebar -->
<div class="sidebar-wrapper" id="sidebar">
    <div class="sidebar">
        <!-- Sidebar Header with Hamburger Menu -->
        <div class="sidebar-header">
            <button class="btn-toggle-sidebar" id="sidebarToggle" data-tooltip="Toggle Menu" aria-label="Toggle Menu">
                <span class="hamburger-box">
                    <span class="hamburger-inner"></span>
                </span>
            </button>
            <div class="sidebar-title">
                <span class="sidebar-title-text">AppSuper PKLK</span>
            </div>
        </div>
        
        <?php if(Auth::user() && Auth::user()->role): ?>
            <?php if(Auth::user()->role->slug === 'superadmin'): ?>
                <!-- Superadmin Menu -->
                <nav class="nav flex-column">
                    <a href="<?php echo e(route('dashboard')); ?>" class="nav-link <?php if(request()->routeIs('dashboard')): ?> active <?php endif; ?>" data-tooltip="Dashboard">
                        <i class="bi bi-house-door-fill"></i>
                        <span class="nav-link-text">Dashboard</span>
                    </a>
                    
                    <a href="<?php echo e(route('superadmin.kcd.index')); ?>" class="nav-link <?php if(request()->routeIs('superadmin.kcd.*')): ?> active <?php endif; ?>" data-tooltip="Kelola KCD">
                        <i class="bi bi-diagram-3-fill"></i>
                        <span class="nav-link-text">Kelola KCD</span>
                    </a>
                    
                    <a href="<?php echo e(route('superadmin.kab-kota.index')); ?>" class="nav-link <?php if(request()->routeIs('superadmin.kab-kota.*')): ?> active <?php endif; ?>" data-tooltip="Kelola Kab/Kota">
                        <i class="bi bi-geo-alt-fill"></i>
                        <span class="nav-link-text">Kelola Kab/Kota</span>
                    </a>
                    
                    <a href="<?php echo e(route('superadmin.schools.index')); ?>" class="nav-link <?php if(request()->routeIs('superadmin.schools.*')): ?> active <?php endif; ?>" data-tooltip="Kelola Sekolah">
                        <i class="bi bi-building"></i>
                        <span class="nav-link-text">Kelola Sekolah</span>
                    </a>
                    
                    <!-- Pegawai Menu with Submenu -->
                    <div class="nav-item-with-submenu">
                        <a href="#" class="nav-link <?php if(request()->routeIs('superadmin.employees.*') || request()->routeIs('superadmin.employee-assignments.*')): ?> active <?php endif; ?>" data-tooltip="Pegawai" onclick="toggleSubmenu(event, 'pegawaiSubmenu')">
                            <i class="bi bi-person-badge-fill"></i>
                            <span class="nav-link-text">Pegawai</span>
                            <i class="bi bi-chevron-down submenu-arrow"></i>
                        </a>
                        <div class="submenu" id="pegawaiSubmenu" style="<?php if(request()->routeIs('superadmin.employees.*') || request()->routeIs('superadmin.employee-assignments.*')): ?> display: block; <?php endif; ?>">
                            <a href="<?php echo e(route('superadmin.employees.index')); ?>" class="submenu-link <?php if(request()->routeIs('superadmin.employees.*')): ?> active <?php endif; ?>">
                                <i class="bi bi-person-plus"></i>
                                <span>Input Pegawai</span>
                            </a>
                            <a href="<?php echo e(route('superadmin.employee-assignments.index')); ?>" class="submenu-link <?php if(request()->routeIs('superadmin.employee-assignments.*')): ?> active <?php endif; ?>">
                                <i class="bi bi-diagram-2"></i>
                                <span>Mapping Pegawai</span>
                            </a>
                        </div>
                    </div>
                    
                    <a href="<?php echo e(route('superadmin.user-school-mapping.index')); ?>" class="nav-link <?php if(request()->routeIs('superadmin.user-school-mapping.*')): ?> active <?php endif; ?>" data-tooltip="Mapping User & Sekolah">
                        <i class="bi bi-diagram-3-fill"></i>
                        <span class="nav-link-text">Mapping User & Sekolah</span>
                    </a>
                    
                    <a href="<?php echo e(route('superadmin.academic-years.index')); ?>" class="nav-link <?php if(request()->routeIs('superadmin.academic-years.*')): ?> active <?php endif; ?>" data-tooltip="Manajemen Tahun Ajaran">
                        <i class="bi bi-calendar-range-fill"></i>
                        <span class="nav-link-text">Tahun Ajaran</span>
                    </a>
                    
                    <a href="<?php echo e(route('superadmin.daya-tampung.index')); ?>" class="nav-link <?php if(request()->routeIs('superadmin.daya-tampung.*')): ?> active <?php endif; ?>" data-tooltip="Rekap Daya Tampung">
                        <i class="bi bi-clipboard-data-fill"></i>
                        <span class="nav-link-text">Rekap Daya Tampung</span>
                    </a>
                    
                    <a href="<?php echo e(route('superadmin.disability-types.index')); ?>" class="nav-link <?php if(request()->routeIs('superadmin.disability-types.*')): ?> active <?php endif; ?>" data-tooltip="Manajemen Jenis Ketunaan">
                        <i class="bi bi-heart-pulse-fill"></i>
                        <span class="nav-link-text">Jenis Ketunaan</span>
                    </a>
                    
                    <a href="<?php echo e(route('students.index')); ?>" class="nav-link <?php if(request()->routeIs('students.*')): ?> active <?php endif; ?>" data-tooltip="Data Siswa">
                        <i class="bi bi-person-vcard-fill"></i>
                        <span class="nav-link-text">Data Siswa</span>
                    </a>
                    
                    <a href="<?php echo e(route('superadmin.users.index')); ?>" class="nav-link <?php if(request()->routeIs('superadmin.users.*')): ?> active <?php endif; ?>" data-tooltip="Kelola User">
                        <i class="bi bi-people-fill"></i>
                        <span class="nav-link-text">Kelola User</span>
                    </a>
                    
                    <a href="<?php echo e(route('superadmin.roles.index')); ?>" class="nav-link <?php if(request()->routeIs('superadmin.roles.*')): ?> active <?php endif; ?>" data-tooltip="Kelola Role">
                        <i class="bi bi-shield-lock-fill"></i>
                        <span class="nav-link-text">Kelola Role</span>
                    </a>
                    
                    <a href="<?php echo e(route('superadmin.settings.index')); ?>" class="nav-link" data-tooltip="Pengaturan Sistem">
                        <i class="bi bi-gear-fill"></i>
                        <span class="nav-link-text">Pengaturan Sistem</span>
                    </a>
                    
                    <a href="<?php echo e(route('superadmin.logs')); ?>" class="nav-link" data-tooltip="Log Aktivitas">
                        <i class="bi bi-file-text-fill"></i>
                        <span class="nav-link-text">Log Aktivitas</span>
                    </a>
                </nav>
            <?php elseif(Auth::user()->role->slug === 'admin_dinas'): ?>
                <!-- Admin Dinas Menu -->
                <nav class="nav flex-column">
                    <a href="<?php echo e(route('dashboard')); ?>" class="nav-link <?php if(request()->routeIs('dashboard')): ?> active <?php endif; ?>" data-tooltip="Dashboard">
                        <i class="bi bi-house-door-fill"></i>
                        <span class="nav-link-text">Dashboard</span>
                    </a>
                    
                    <a href="<?php echo e(route('admin-dinas.sekolah.index')); ?>" class="nav-link <?php if(request()->routeIs('admin-dinas.sekolah*')): ?> active <?php endif; ?>" data-tooltip="Sekolah">
                        <i class="bi bi-buildings-fill"></i>
                        <span class="nav-link-text">Sekolah</span>
                    </a>
                    
                    <a href="<?php echo e(route('admin-dinas.psaj.index')); ?>" class="nav-link <?php if(request()->routeIs('admin-dinas.psaj*')): ?> active <?php endif; ?>" data-tooltip="Manajemen PSAJ">
                        <i class="bi bi-clipboard-check-fill"></i>
                        <span class="nav-link-text">Manajemen PSAJ</span>
                    </a>
                    
                    <a href="<?php echo e(route('admin-dinas.murid-baru')); ?>" class="nav-link <?php if(request()->routeIs('admin-dinas.murid-baru*')): ?> active <?php endif; ?>" data-tooltip="Murid Baru">
                        <i class="bi bi-person-fill-add"></i>
                        <span class="nav-link-text">Murid Baru</span>
                    </a>
                    
                    <a href="<?php echo e(route('admin-dinas.naik-jenjang')); ?>" class="nav-link <?php if(request()->routeIs('admin-dinas.naik-jenjang*')): ?> active <?php endif; ?>" data-tooltip="Murid Naik Jenjang">
                        <i class="bi bi-arrow-up-circle-fill"></i>
                        <span class="nav-link-text">Murid Naik Jenjang</span>
                    </a>
                    
                    <a href="<?php echo e(route('admin-dinas.pengawas')); ?>" class="nav-link <?php if(request()->routeIs('admin-dinas.pengawas')): ?> active <?php endif; ?>" data-tooltip="Kelola Pengawas">
                        <i class="bi bi-person-badge-fill"></i>
                        <span class="nav-link-text">Kelola Pengawas</span>
                    </a>
                    
                    <a href="<?php echo e(route('admin-dinas.mapping-kcd')); ?>" class="nav-link <?php if(request()->routeIs('admin-dinas.mapping-kcd')): ?> active <?php endif; ?>" data-tooltip="Mapping KCD">
                        <i class="bi bi-diagram-3-fill"></i>
                        <span class="nav-link-text">Mapping KCD</span>
                    </a>
                    
                    <a href="<?php echo e(route('admin-dinas.announcements.index')); ?>" class="nav-link <?php if(request()->routeIs('admin-dinas.announcements*')): ?> active <?php endif; ?>" data-tooltip="Informasi Terkini">
                        <i class="bi bi-megaphone-fill"></i>
                        <span class="nav-link-text">Informasi Terkini</span>
                    </a>
                </nav>
            <?php elseif(Auth::user()->role->slug === 'admin_kcd'): ?>
                <!-- Admin KCD Menu -->
                <nav class="nav flex-column">
                    <a href="<?php echo e(route('dashboard')); ?>" class="nav-link <?php if(request()->routeIs('dashboard')): ?> active <?php endif; ?>" data-tooltip="Dashboard">
                        <i class="bi bi-house-door-fill"></i>
                        <span class="nav-link-text">Dashboard</span>
                    </a>
                    
                    <a href="<?php echo e(route('admin-kcd.sekolah')); ?>" class="nav-link <?php if(request()->routeIs('admin-kcd.sekolah')): ?> active <?php endif; ?>" data-tooltip="Daftar Sekolah">
                        <i class="bi bi-building"></i>
                        <span class="nav-link-text">Daftar Sekolah</span>
                    </a>
                    
                    <a href="<?php echo e(route('admin-kcd.pengawas')); ?>" class="nav-link <?php if(request()->routeIs('admin-kcd.pengawas')): ?> active <?php endif; ?>" data-tooltip="Kelola Pengawas">
                        <i class="bi bi-person-badge-fill"></i>
                        <span class="nav-link-text">Kelola Pengawas</span>
                    </a>
                    
                    <a href="<?php echo e(route('admin-kcd.mapping-sekolah')); ?>" class="nav-link <?php if(request()->routeIs('admin-kcd.mapping-sekolah')): ?> active <?php endif; ?>" data-tooltip="Mapping Sekolah">
                        <i class="bi bi-diagram-3-fill"></i>
                        <span class="nav-link-text">Mapping Sekolah</span>
                    </a>
                    
                    <a href="<?php echo e(route('students.index')); ?>" class="nav-link <?php if(request()->routeIs('students.*')): ?> active <?php endif; ?>" data-tooltip="Data Siswa">
                        <i class="bi bi-person-vcard-fill"></i>
                        <span class="nav-link-text">Data Siswa</span>
                    </a>
                </nav>
            <?php elseif(Auth::user()->role->slug === 'pengawas'): ?>
                <!-- Pengawas Menu -->
                <nav class="nav flex-column">
                    <a href="<?php echo e(route('dashboard')); ?>" class="nav-link <?php if(request()->routeIs('dashboard')): ?> active <?php endif; ?>" data-tooltip="Dashboard">
                        <i class="bi bi-house-door-fill"></i>
                        <span class="nav-link-text">Dashboard</span>
                    </a>
                    
                    <a href="<?php echo e(route('pengawas.sekolah-binaan')); ?>" class="nav-link <?php if(request()->routeIs('pengawas.sekolah-binaan')): ?> active <?php endif; ?>" data-tooltip="Sekolah Binaan">
                        <i class="bi bi-buildings-fill"></i>
                        <span class="nav-link-text">Sekolah Binaan</span>
                    </a>
                    
                    <a href="<?php echo e(route('pengawas.verifikasi-sptjm')); ?>" class="nav-link <?php if(request()->routeIs('pengawas.verifikasi-sptjm')): ?> active <?php endif; ?>" data-tooltip="Verifikasi SPTJM">
                        <i class="bi bi-check-circle-fill"></i>
                        <span class="nav-link-text">Verifikasi SPTJM</span>
                    </a>
                </nav>
            <?php elseif(Auth::user()->role->slug === 'admin_sekolah'): ?>
                <!-- Admin Sekolah Menu -->
                <nav class="nav flex-column">
                    <a href="<?php echo e(route('dashboard')); ?>" class="nav-link <?php if(request()->routeIs('dashboard')): ?> active <?php endif; ?>" data-tooltip="Dashboard">
                        <i class="bi bi-house-door-fill"></i>
                        <span class="nav-link-text">Dashboard</span>
                    </a>
                    
                    <a href="<?php echo e(route('admin-sekolah.profil')); ?>" class="nav-link <?php if(request()->routeIs('admin-sekolah.profil')): ?> active <?php endif; ?>" data-tooltip="Profil Sekolah">
                        <i class="bi bi-building-fill"></i>
                        <span class="nav-link-text">Profil Sekolah</span>
                    </a>
                    
                    <!-- GTK Menu with Submenu -->
                    <div class="nav-item-with-submenu">
                        <a href="#" class="nav-link <?php if(request()->routeIs('admin-sekolah.gtk.*')): ?> active <?php endif; ?>" data-tooltip="GTK" onclick="toggleSubmenu(event, 'gtkSubmenu')">
                            <i class="bi bi-people-fill"></i>
                            <span class="nav-link-text">GTK</span>
                            <i class="bi bi-chevron-down submenu-arrow"></i>
                        </a>
                        <div class="submenu" id="gtkSubmenu" style="<?php if(request()->routeIs('admin-sekolah.gtk.*')): ?> display: block; <?php endif; ?>">
                            <a href="<?php echo e(route('admin-sekolah.gtk.guru')); ?>" class="submenu-link <?php if(request()->routeIs('admin-sekolah.gtk.guru')): ?> active <?php endif; ?>">
                                <i class="bi bi-person-video3"></i>
                                <span>Guru</span>
                            </a>
                            <a href="<?php echo e(route('admin-sekolah.gtk.tendik')); ?>" class="submenu-link <?php if(request()->routeIs('admin-sekolah.gtk.tendik')): ?> active <?php endif; ?>">
                                <i class="bi bi-person-workspace"></i>
                                <span>Tenaga Kependidikan</span>
                            </a>
                        </div>
                    </div>
                    
                    <!-- Murid Baru Menu with Submenu -->
                    <div class="nav-item-with-submenu">
                        <a href="#" class="nav-link <?php if(request()->routeIs('admin-sekolah.murid-baru.*')): ?> active <?php endif; ?>" data-tooltip="Murid Baru" onclick="toggleSubmenu(event, 'muridBaruSubmenu')">
                            <i class="bi bi-person-plus-fill"></i>
                            <span class="nav-link-text">Murid Baru</span>
                            <i class="bi bi-chevron-down submenu-arrow"></i>
                        </a>
                        <div class="submenu" id="muridBaruSubmenu" style="<?php if(request()->routeIs('admin-sekolah.murid-baru.*')): ?> display: block; <?php endif; ?>">
                            <a href="<?php echo e(route('admin-sekolah.murid-baru.daya-tampung')); ?>" class="submenu-link <?php if(request()->routeIs('admin-sekolah.murid-baru.daya-tampung')): ?> active <?php endif; ?>">
                                <i class="bi bi-clipboard-data"></i>
                                <span>Daya Tampung</span>
                            </a>
                            <a href="<?php echo e(route('admin-sekolah.murid-baru.daftar')); ?>" class="submenu-link <?php if(request()->routeIs('admin-sekolah.murid-baru.daftar') || request()->routeIs('admin-sekolah.murid-baru.detail') || request()->routeIs('admin-sekolah.murid-baru.input')): ?> active <?php endif; ?>">
                                <i class="bi bi-people-fill"></i>
                                <span>Daftar Murid Baru</span>
                            </a>
                        </div>
                    </div>
                    
                    <!-- Murid Naik Jenjang Menu -->
                    <div class="nav-item">
                        <a href="<?php echo e(route('admin-sekolah.naik-jenjang.index')); ?>" class="nav-link <?php if(request()->routeIs('admin-sekolah.naik-jenjang.*')): ?> active <?php endif; ?>" data-tooltip="Murid Naik Jenjang">
                            <i class="bi bi-arrow-up-circle-fill"></i>
                            <span class="nav-link-text">Murid Naik Jenjang</span>
                        </a>
                    </div>
                    
                    <!-- PSAJ Menu -->
                    <div class="nav-item">
                        <a href="<?php echo e(route('admin-sekolah.psaj.index')); ?>" class="nav-link <?php if(request()->routeIs('admin-sekolah.psaj.*')): ?> active <?php endif; ?>" data-tooltip="PSAJ">
                            <i class="bi bi-clipboard-data-fill"></i>
                            <span class="nav-link-text">PSAJ</span>
                        </a>
                    </div>
                    
                    <a href="<?php echo e(route('admin-sekolah.sptjm')); ?>" class="nav-link" data-tooltip="SPTJM">
                        <i class="bi bi-file-earmark-check-fill"></i>
                        <span class="nav-link-text">SPTJM</span>
                    </a>
                </nav>
            <?php else: ?>
                <!-- Default Menu -->
                <nav class="nav flex-column">
                    <a href="<?php echo e(route('dashboard')); ?>" class="nav-link <?php if(request()->routeIs('dashboard')): ?> active <?php endif; ?>" data-tooltip="Dashboard">
                        <i class="bi bi-house-door-fill"></i>
                        <span class="nav-link-text">Dashboard</span>
                    </a>
                </nav>
            <?php endif; ?>
        <?php endif; ?>
    </div>
</div>

<!-- Main Content Wrapper -->
<div class="main-content" id="mainContent">
    <div style="padding: 1.5rem;">
        <?php echo $__env->yieldContent('content'); ?>
    </div>
</div>
<?php /**PATH C:\xampp\htdocs\appsuper\resources\views/layouts/sidebar.blade.php ENDPATH**/ ?>