<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo $__env->yieldContent('page_title', 'Dashboard'); ?> - SMKN 1 Prajekan</title>
    <link rel="icon" type="image/png" href="<?php echo e(asset('img/Capture__1_-removebg-preview.png')); ?>">
    <meta name="description" content="Sistem Absensi Terpadu SMKN 1 Prajekan - Panel Administrator">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="<?php echo e(asset('css/admin.css')); ?>">
    <?php echo $__env->yieldPushContent('styles'); ?>
</head>
<body>

    <!-- Mobile Overlay -->
    <div class="sidebar-overlay" id="sidebarOverlay" onclick="toggleSidebar()"></div>

    <!-- Sidebar -->
    <div class="sidebar" id="sidebar">
        <div class="logo-area">
            <img src="<?php echo e(asset('img/Capture__1_-removebg-preview.png')); ?>" alt="Logo SMKN 1 Prajekan">
            <h6>SMKN 1 PRAJEKAN</h6>
            <small>SISTEM ABSENSI</small>
        </div>

        <?php if(Auth::check()): ?>
            
            <a href="<?php echo e(route('admin.dashboard')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.dashboard') ? 'active' : ''); ?>">
                <i class="bi bi-speedometer2"></i>Dashboard
            </a>

            <?php if(Auth::user()->akses == 'admin'): ?>
                
                <div class="menu-section">Master Data</div>
                <a href="<?php echo e(route('admin.data.admin')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.data.admin') ? 'active' : ''); ?>">
                    <i class="bi bi-shield-lock"></i>Admin
                </a>
                <a href="<?php echo e(route('admin.data.guru')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.data.guru') ? 'active' : ''); ?>">
                    <i class="bi bi-person-badge"></i>Guru
                </a>
                <a href="<?php echo e(route('admin.data.siswa')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.data.siswa') ? 'active' : ''); ?>">
                    <i class="bi bi-people"></i>Siswa
                </a>
                <a href="<?php echo e(route('admin.data.kelas')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.data.kelas') ? 'active' : ''); ?>">
                    <i class="bi bi-building"></i>Kelas
                </a>
                <a href="<?php echo e(route('admin.data.wali_kelas')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.data.wali_kelas') ? 'active' : ''); ?>">
                    <i class="bi bi-person"></i>Wali Kelas
                </a>
                <a href="<?php echo e(route('admin.data.pelajaran')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.data.pelajaran') ? 'active' : ''); ?>">
                    <i class="bi bi-book"></i>Pelajaran
                </a>
                <a href="<?php echo e(route('admin.data.jam_ngajar')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.data.jam_ngajar') ? 'active' : ''); ?>">
                    <i class="bi bi-clock"></i>Jam Ngajar
                </a>

                
                <div class="menu-section">Data Siswa</div>
                <a href="<?php echo e(route('admin.prestasi')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.prestasi') ? 'active' : ''); ?>">
                    <i class="bi bi-trophy"></i>Prestasi
                </a>
                <a href="<?php echo e(route('admin.pelanggaran')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.pelanggaran') ? 'active' : ''); ?>">
                    <i class="bi bi-exclamation-triangle"></i>Pelanggaran
                </a>

                
                <div class="menu-section">Reward</div>
                <a href="<?php echo e(route('admin.reward.absen')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.reward.absen') ? 'active' : ''); ?>">
                    <i class="bi bi-gift"></i>Reward Absen
                </a>
                <a href="<?php echo e(route('admin.reward.prestasi')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.reward.prestasi') ? 'active' : ''); ?>">
                    <i class="bi bi-gift"></i>Reward Prestasi
                </a>

                
                <div class="menu-section">Absensi</div>
                <a href="<?php echo e(route('admin.kehadiran_guru')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.kehadiran_guru') ? 'active' : ''); ?>">
                    <i class="bi bi-calendar-check"></i>Kehadiran Guru
                </a>
                <a href="<?php echo e(route('admin.absen_guru')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.absen_guru') ? 'active' : ''); ?>">
                    <i class="bi bi-calendar"></i>Absen Guru
                </a>
                <a href="<?php echo e(route('admin.absen_jam_ngajar')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.absen_jam_ngajar') ? 'active' : ''); ?>">
                    <i class="bi bi-clock-history"></i>Absen Jam Ngajar
                </a>
                <a href="<?php echo e(route('admin.absen_siswa')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.absen_siswa') ? 'active' : ''); ?>">
                    <i class="bi bi-calendar-check"></i>Absen Siswa
                </a>

                
                <div class="menu-section">Laporan</div>
                <a href="<?php echo e(route('admin.laporan.absen_siswa')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.laporan.absen_siswa') ? 'active' : ''); ?>">
                    <i class="bi bi-printer"></i>Laporan Absen Siswa
                </a>
                <a href="<?php echo e(route('admin.laporan.absen_guru')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.laporan.absen_guru') ? 'active' : ''); ?>">
                    <i class="bi bi-printer"></i>Laporan Absen Guru
                </a>
                <a href="<?php echo e(route('admin.laporan.ngajar_guru')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.laporan.ngajar_guru') ? 'active' : ''); ?>">
                    <i class="bi bi-printer"></i>Laporan Ngajar Guru
                </a>
                <a href="<?php echo e(route('admin.laporan.pelanggaran')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.laporan.pelanggaran') ? 'active' : ''); ?>">
                    <i class="bi bi-printer"></i>Laporan Pelanggaran
                </a>
                <a href="<?php echo e(route('admin.laporan.prestasi')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.laporan.prestasi') ? 'active' : ''); ?>">
                    <i class="bi bi-printer"></i>Laporan Prestasi
                </a>
                <a href="<?php echo e(route('admin.grafik.pelanggaran')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.grafik.pelanggaran') ? 'active' : ''); ?>">
                    <i class="bi bi-bar-chart"></i>Grafik Pelanggaran
                </a>
                <a href="<?php echo e(route('admin.grafik.prestasi')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.grafik.prestasi') ? 'active' : ''); ?>">
                    <i class="bi bi-bar-chart"></i>Grafik Prestasi
                </a>
                <a href="<?php echo e(route('admin.laporan.absen_mapel')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.laporan.absen_mapel') ? 'active' : ''); ?>">
                    <i class="bi bi-journal-text"></i>Laporan Absen Mapel
                </a>

            <?php elseif(Auth::user()->akses == 'petugas_piket'): ?>
                <a href="<?php echo e(route('admin.data.guru')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.data.guru') ? 'active' : ''); ?>">
                    <i class="bi bi-calendar"></i>Guru
                </a>
                <a href="<?php echo e(route('admin.data.jam_ngajar')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.data.jam_ngajar') ? 'active' : ''); ?>">
                    <i class="bi bi-clock"></i>Jam Ngajar
                </a>
                <a href="<?php echo e(route('admin.data.siswa')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.data.siswa') ? 'active' : ''); ?>">
                    <i class="bi bi-people"></i>Siswa
                </a>

            <?php elseif(Auth::user()->akses == 'kesiswaan'): ?>
                <a href="<?php echo e(route('admin.laporan.absen_siswa')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.laporan.absen_siswa') ? 'active' : ''); ?>">
                    <i class="bi bi-printer"></i>Laporan
                </a>

            <?php elseif(Auth::user()->akses == 'koordinator'): ?>
                <a href="<?php echo e(route('admin.laporan.absen_guru')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.laporan.absen_guru') ? 'active' : ''); ?>">
                    <i class="bi bi-printer"></i>Laporan Absen
                </a>
                <a href="<?php echo e(route('admin.laporan.ngajar_guru')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.laporan.ngajar_guru') ? 'active' : ''); ?>">
                    <i class="bi bi-printer"></i>Laporan Ngajar
                </a>

            <?php elseif(Auth::user()->akses == 'wali_kelas'): ?>
                <a href="<?php echo e(route('admin.laporan.absen_siswa')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.laporan.absen_siswa') ? 'active' : ''); ?>">
                    <i class="bi bi-printer"></i>Laporan
                </a>

            <?php elseif(Auth::user()->akses == 'guru'): ?>
                <a href="<?php echo e(route('admin.absen_siswa')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.absen_siswa') ? 'active' : ''); ?>">
                    <i class="bi bi-calendar-check"></i>Absen Siswa
                </a>
                <a href="<?php echo e(route('admin.laporan.absen_siswa')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.laporan.absen_siswa') ? 'active' : ''); ?>">
                    <i class="bi bi-printer"></i>Laporan
                </a>
            <?php endif; ?>

            
            <div class="sidebar-divider"></div>

            <?php if(Auth::user()->akses != 'siswa'): ?>
                <a href="<?php echo e(route('admin.edit_profile')); ?>" class="menu-link <?php echo e(request()->routeIs('admin.edit_profile') ? 'active' : ''); ?>">
                    <i class="bi bi-pencil-square"></i>Edit Profile
                </a>
            <?php endif; ?>

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

            <form action="<?php echo e(route('logout')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <button type="submit" class="logout-btn">
                    <i class="bi bi-box-arrow-right"></i>Logout
                </button>
            </form>
        <?php endif; ?>
    </div>

    <!-- Main Content -->
    <div class="main-wrapper">
        <!-- Top Navbar -->
        <div class="top-navbar">
            <div class="d-flex align-items-center">
                <button class="btn-hamburger" onclick="toggleSidebar()">
                    <i class="bi bi-list"></i>
                </button>
                <span class="page-title"><?php echo $__env->yieldContent('page_title', 'Dashboard'); ?></span>
            </div>
            <div class="user-info">
                <i class="bi bi-person-circle me-1"></i>
                <span class="user-name-text"><?php echo e(Auth::user()->nama ?? 'User'); ?></span>
                <span class="badge-role"><?php echo e(Auth::user()->akses ?? ''); ?></span>
            </div>
        </div>

        <!-- Page Content -->
        <div class="content-area">
            <?php echo $__env->yieldContent('content'); ?>
        </div>
    </div>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script>
    function toggleSidebar() {
        document.getElementById('sidebar').classList.toggle('show');
        document.getElementById('sidebarOverlay').classList.toggle('show');
    }

    // Close sidebar when clicking a link on mobile
    if (window.innerWidth < 768) {
        document.querySelectorAll('.sidebar a.menu-link').forEach(link => {
            link.addEventListener('click', () => {
                document.getElementById('sidebar').classList.remove('show');
                document.getElementById('sidebarOverlay').classList.remove('show');
            });
        });
    }
</script>
<?php echo $__env->yieldPushContent('scripts'); ?>
</body>
</html>
<?php /**PATH C:\Users\Samsul Arifin\Downloads\absensismkn1prajekan\resources\views/layouts/app.blade.php ENDPATH**/ ?>