<!doctype html>
<html lang="id" class="h-full bg-slate-50">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

    <title><?php echo $__env->yieldContent('title', 'Admin'); ?> &middot; <?php echo e(config('app.name', 'DSI112')); ?></title>

    <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/site.js']); ?>
</head>
<body class="h-full font-sans text-slate-700 antialiased">
    <div class="flex min-h-full">
        <!-- Sidebar -->
        <aside class="hidden w-64 shrink-0 border-r border-slate-100 bg-white md:flex md:flex-col">
            <div class="flex h-16 items-center px-6 text-xl font-semibold tracking-tight text-slate-900">
                DSI<span class="text-indigo-600">112</span>
            </div>

            <nav class="flex-1 space-y-1 px-4 py-4 text-sm font-medium">
                <a href="<?php echo e(route('admin.dashboard')); ?>"
                   class="flex items-center gap-3 rounded-lg px-3 py-2 transition <?php echo e(request()->routeIs('admin.dashboard') ? 'bg-indigo-50 text-indigo-600' : 'text-slate-600 hover:bg-slate-50'); ?>">
                    Dashboard
                </a>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view users')): ?>
                    <a href="<?php echo e(route('admin.users.index')); ?>"
                       class="flex items-center gap-3 rounded-lg px-3 py-2 transition <?php echo e(request()->routeIs('admin.users.*') ? 'bg-indigo-50 text-indigo-600' : 'text-slate-600 hover:bg-slate-50'); ?>">
                        Pengguna
                    </a>
                <?php endif; ?>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view sections')): ?>
                    <a href="<?php echo e(route('admin.sections.index')); ?>"
                       class="flex items-center gap-3 rounded-lg px-3 py-2 transition <?php echo e(request()->routeIs('admin.sections.*') ? 'bg-indigo-50 text-indigo-600' : 'text-slate-600 hover:bg-slate-50'); ?>">
                        Konten Section
                    </a>
                <?php endif; ?>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view themes')): ?>
                    <a href="<?php echo e(route('admin.themes.index')); ?>"
                       class="flex items-center gap-3 rounded-lg px-3 py-2 transition <?php echo e(request()->routeIs('admin.themes.*') ? 'bg-indigo-50 text-indigo-600' : 'text-slate-600 hover:bg-slate-50'); ?>">
                        Tema Warna
                    </a>
                <?php endif; ?>

                <?php if (\Illuminate\Support\Facades\Blade::check('role', 'superadmin')): ?>
                    <a href="<?php echo e(route('admin.roles.index')); ?>"
                       class="flex items-center gap-3 rounded-lg px-3 py-2 transition <?php echo e(request()->routeIs('admin.roles.*') ? 'bg-indigo-50 text-indigo-600' : 'text-slate-600 hover:bg-slate-50'); ?>">
                        Role
                    </a>
                    <a href="<?php echo e(route('admin.permissions.index')); ?>"
                       class="flex items-center gap-3 rounded-lg px-3 py-2 transition <?php echo e(request()->routeIs('admin.permissions.*') ? 'bg-indigo-50 text-indigo-600' : 'text-slate-600 hover:bg-slate-50'); ?>">
                        Permission
                    </a>
                <?php endif; ?>
            </nav>

            <div class="border-t border-slate-100 p-4">
                <a href="<?php echo e(url('/')); ?>" class="text-xs font-medium text-slate-400 hover:text-indigo-600">&larr; Kembali ke website</a>
            </div>
        </aside>

        <div class="flex min-w-0 flex-1 flex-col">
            <!-- Topbar -->
            <header class="flex h-16 items-center justify-between border-b border-slate-100 bg-white px-6">
                <div class="text-lg font-semibold text-slate-900"><?php echo $__env->yieldContent('title', 'Admin'); ?></div>

                <div class="flex items-center gap-4">
                    <span class="text-sm text-slate-500"><?php echo e(auth()->user()->name); ?></span>
                    <form method="POST" action="<?php echo e(route('logout')); ?>">
                        <?php echo csrf_field(); ?>
                        <button type="submit" class="rounded-full bg-slate-900 px-4 py-1.5 text-sm font-medium text-white transition hover:bg-indigo-600">
                            Keluar
                        </button>
                    </form>
                </div>
            </header>

            <main class="flex-1 px-6 py-8">
                <?php echo $__env->yieldContent('content'); ?>
            </main>
        </div>
    </div>
</body>
</html>
<?php /**PATH C:\laragon2\www\dsi112com\resources\views/layouts/app.blade.php ENDPATH**/ ?>