<!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('title', 'Dashboard'); ?> — SIMSekolah</title>

    
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css" rel="stylesheet">
    
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">

    <style>
        /* ── GLOBAL ─────────────────────────────── */
        * {
            font-family: 'Inter', sans-serif;
        }

        body {
            background-color: #f0f2f5;
        }

        /* ── SIDEBAR ────────────────────────────── */
        #sidebar {
            width: 260px;
            min-height: 100vh;
            background: linear-gradient(180deg, #0d3b7a 0%, #1565c0 100%);
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
            transition: all 0.3s ease;
            box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
        }

        .sidebar-brand {
            padding: 20px 20px 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        }

        .sidebar-brand h5 {
            color: #fff;
            font-weight: 700;
            font-size: 1rem;
            margin: 0;
        }

        .sidebar-brand span {
            color: rgba(255, 255, 255, 0.65);
            font-size: 0.75rem;
        }

        .sidebar-logo {
            width: 42px;
            height: 42px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            color: #fff;
        }

        .sidebar-menu {
            padding: 15px 12px;
        }

        .sidebar-label {
            color: rgba(255, 255, 255, 0.45);
            font-size: 0.68rem;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            padding: 10px 10px 6px;
        }

        .sidebar-menu .nav-link {
            color: rgba(255, 255, 255, 0.8);
            padding: 10px 12px;
            border-radius: 8px;
            margin-bottom: 3px;
            font-size: 0.875rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.2s;
        }

        .sidebar-menu .nav-link:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        .sidebar-menu .nav-link.active {
            background: rgba(255, 255, 255, 0.22);
            color: #fff;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .sidebar-menu .nav-link i {
            font-size: 1.05rem;
            width: 20px;
        }

        /* ── TOPBAR ─────────────────────────────── */
        #topbar {
            margin-left: 260px;
            height: 65px;
            background: #fff;
            border-bottom: 1px solid #e5e9f0;
            display: flex;
            align-items: center;
            padding: 0 25px;
            position: sticky;
            top: 0;
            z-index: 999;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        }

        .topbar-title {
            font-weight: 600;
            color: #1a2b4a;
            font-size: 1rem;
        }

        .topbar-badge {
            background: #e8f0fe;
            color: #1565c0;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        /* ── MAIN CONTENT ───────────────────────── */
        #main-content {
            margin-left: 260px;
            padding: 25px;
            min-height: calc(100vh - 65px - 55px);
        }

        /* ── STAT CARDS ─────────────────────────── */
        .stat-card {
            background: #fff;
            border-radius: 14px;
            padding: 22px;
            border: none;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        }

        .stat-icon {
            width: 52px;
            height: 52px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: #1a2b4a;
            line-height: 1;
        }

        .stat-label {
            font-size: 0.82rem;
            color: #6c757d;
            margin-top: 2px;
        }

        .stat-trend {
            font-size: 0.75rem;
            margin-top: 8px;
        }

        /* ── TABLES ─────────────────────────────── */
        .card-table {
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
            border: none;
            overflow: hidden;
        }

        .card-table .card-header {
            background: #fff;
            border-bottom: 1px solid #f0f2f5;
            padding: 18px 22px;
            font-weight: 600;
            color: #1a2b4a;
        }

        .table th {
            background: #f8f9fc;
            font-size: 0.78rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #6c757d;
            border-bottom: 1px solid #e5e9f0 !important;
        }

        .table td {
            vertical-align: middle;
            color: #374151;
            font-size: 0.875rem;
        }

        .table-hover tbody tr:hover {
            background-color: #f8f9ff;
        }

        .avatar-circle {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.8rem;
            color: #fff;
        }

        /* ── FOOTER ─────────────────────────────── */
        #footer {
            margin-left: 260px;
            background: #fff;
            border-top: 1px solid #e5e9f0;
            padding: 12px 25px;
            font-size: 0.8rem;
            color: #6c757d;
        }

        /* ── PAGE HEADER ────────────────────────── */
        .page-header {
            margin-bottom: 22px;
            padding-bottom: 16px;
            border-bottom: 1px solid #e5e9f0;
        }

        .page-header h4 {
            font-weight: 700;
            color: #1a2b4a;
            margin: 0;
        }

        .page-header p {
            color: #6c757d;
            font-size: 0.85rem;
            margin: 3px 0 0;
        }

        /* ── BADGE GENDER ───────────────────────── */
        .badge-laki {
            background: #dbeafe;
            color: #1d4ed8;
        }

        .badge-wanita {
            background: #fce7f3;
            color: #be185d;
        }
    </style>
</head>

<body>

    
    <nav id="sidebar">

        
        <div class="sidebar-brand">
            <div class="d-flex align-items-center gap-3">
                <div class="sidebar-logo">
                    <i class="bi bi-mortarboard-fill"></i>
                </div>
                <div>
                    <h5>SIMSekolah</h5>
                    <span>SMA Negeri 5 Mimika</span>
                </div>
            </div>
        </div>

        
        <div class="sidebar-menu">

            <div class="sidebar-label">Menu Utama</div>

            <a href="<?php echo e(route('dashboard')); ?>" class="nav-link <?php echo e(Request::routeIs('dashboard') ? 'active' : ''); ?>">
                <i class="bi bi-grid-fill"></i> Dashboard
            </a>

            <div class="sidebar-label mt-2">Data Sekolah</div>

            <a href="<?php echo e(route('siswa.index')); ?>" class="nav-link <?php echo e(Request::routeIs('siswa.*') ? 'active' : ''); ?>">
                <i class="bi bi-people-fill"></i> Data Siswa
            </a>

            <a href="<?php echo e(route('guru.index')); ?>" class="nav-link <?php echo e(Request::routeIs('guru.*') ? 'active' : ''); ?>">
                <i class="bi bi-person-badge-fill"></i> Data Guru
            </a>

            <div class="sidebar-label mt-2">Informasi</div>

            <a href="<?php echo e(route('profil')); ?>" class="nav-link <?php echo e(Request::routeIs('profil') ? 'active' : ''); ?>">
                <i class="bi bi-building-fill"></i> Profil Sekolah
            </a>

        </div>

        
        <div style="position: absolute; bottom: 20px; left: 0; right: 0; padding: 0 20px;">
            <div style="background: rgba(255,255,255,0.1); border-radius: 8px; padding: 10px 12px;">
                <div style="color: rgba(255,255,255,0.6); font-size: 0.7rem;">
                    <i class="bi bi-code-slash me-1"></i>
                    Laravel 12 · Bootstrap 5
                </div>
            </div>
        </div>

    </nav>

    
    <div id="topbar">
        <div class="d-flex align-items-center justify-content-between w-100">
            <div>
                <span class="topbar-title"><?php echo $__env->yieldContent('page-title', 'Dashboard'); ?></span>
            </div>
            <div class="d-flex align-items-center gap-3">
             <span class="topbar-badge">
                <i class="bi bi-calendar3 me-1"></i>
                <?php echo e(\Carbon\Carbon::now()->translatedFormat('l, d F Y')); ?>

            </span>
            
            
            <div class="dropdown">
                <button class="btn btn-link dropdown-toggle d-flex align-items-center gap-2 p-0 border-0 text-decoration-none"
                    type="button" id="dropdownUser" data-bs-toggle="dropdown" aria-expanded="false" style="color: #374151;">
                    <div
                        style="width:32px;height:32px;background:#1565c0;border-radius:50%;display:flex;align-items:center;justify-content:center;">
                        <i class="bi bi-person-fill text-white" style="font-size:0.85rem;"></i>
                    </div>
                    <span style="font-size:0.85rem;font-weight:500;"><?php echo e(Auth::user()->name ?? 'Admin'); ?></span>
                </button>
            
                <ul class="dropdown-menu dropdown-menu-end shadow-sm border-0 mt-2" aria-labelledby="dropdownUser"
                    style="border-radius: 10px; min-width: 160px;">
                    <li>
                        <div class="dropdown-header small text-uppercase tracking-wider fw-bold">Manajemen Akun</div>
                    </li>
                    <li>
                        <hr class="dropdown-divider">
                    </li>
                    <li>
                        <form action="<?php echo e(route('logout')); ?>" method="POST" class="px-2">
                            <?php echo csrf_field(); ?>
                            <button type="submit" class="dropdown-item text-danger d-flex align-items-center gap-2 py-2"
                                style="border-radius: 6px;">
                                <i class="bi bi-box-arrow-left"></i> Logout
                            </button>
                        </form>
                    </li>
                </ul>
            </div>
            </div>
        </div>
    </div>

    
    <div id="main-content">
        <?php echo $__env->yieldContent('content'); ?>
    </div>

    
    <div id="footer">
        <div class="d-flex justify-content-between align-items-center">
            <span>© <?php echo e(date('Y')); ?> SIMSekolah — SMA Negeri 5 Mimika. All rights reserved.</span>
            <span><i class="bi bi-heart-fill text-danger"></i> Laravel 12 nih bos </span>
        </div>
    </div>

    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>

    <?php echo $__env->yieldPushContent('scripts'); ?>
</body>

</html><?php /**PATH C:\laragon\www\sekolah\resources\views/layouts/app.blade.php ENDPATH**/ ?>