<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo $__env->yieldContent('title', config('app.name', 'Bel Sekolah')); ?></title>

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.css">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">

    <style>
        body {
            background: linear-gradient(-45deg, #3b82f6, #9333ea, #ec4899, #f59e0b);
            background-size: 400% 400%;
            animation: gradientMove 15s ease infinite;
            color: white;
            min-height: 100vh;
            margin: 0;
        }

        @keyframes gradientMove {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        .blink {
            animation: blink-animation 1s steps(2, start) infinite;
        }

        @keyframes blink-animation {
            to {
                visibility: hidden;
            }
        }
    </style>
</head>

<body>
    <!-- Navbar -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark shadow">
        <div class="container">
            <a class="navbar-brand fw-bold" href="<?php echo e(url('/')); ?>">SDN RANCAWULUH 1</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <?php if(auth()->guard()->check()): ?>
                    <li class="nav-item">
                        <a class="nav-link <?php echo e(request()->is('dashboard') ? 'active' : ''); ?>"
                            href="<?php echo e(route('dashboard')); ?>">Dashboard</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link <?php echo e(request()->is('jadwal-bel*') ? 'active' : ''); ?>"
                            href="<?php echo e(route('jadwal-bel.index')); ?>">Jadwal Bel</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link <?php echo e(request()->is('bel-otomatis') ? 'active' : ''); ?>"
                            href="<?php echo e(route('bel.otomatis')); ?>">Bel Otomatis</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link <?php echo e(request()->is('jadwal-ujian*') ? 'active' : ''); ?>"
                            href="<?php echo e(route('jadwal-bel.index')); ?>">Jadwal
                            Ujian</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link <?php echo e(request()->is('bel-ujian') ? 'active' : ''); ?>"
                            href="<?php echo e(route('bel.otomatis')); ?>">Bel
                            Ujian</a>
                    </li>
                    <?php endif; ?>
                </ul>

                <ul class="navbar-nav">
                    <?php if(auth()->guard()->check()): ?>
                    <li class="nav-item me-2">
                        <span class="navbar-text">Halo, <?php echo e(Auth::user()->name); ?></span>
                    </li>
                    <li class="nav-item">
                        <form method="POST" action="<?php echo e(route('logout')); ?>">
                            <?php echo csrf_field(); ?>
                            <button class="btn btn-sm btn-outline-light" type="submit">Logout</button>
                        </form>
                    </li>
                    <?php else: ?>
                    <li class="nav-item">
                        <a class="nav-link" href="<?php echo e(route('login')); ?>">Login</a>
                    </li>
                    <?php endif; ?>
                </ul>
                
            </div>
        </div>
    </nav>

    <!-- Konten -->
    <main class="container py-4">
        <?php echo $__env->yieldContent('content'); ?>
        <p class="mt-5 small text-center">Dibuat oleh <strong>MasIQ</strong> (GITEK.ID)</p>
    </main>

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/@yaireo/tagify"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script>
        function keluarAplikasi() {
      window.close();
    }
    </script>
    <?php echo $__env->yieldContent('scripts'); ?>
</body>

</html><?php /**PATH /var/www/html/bel-sekolah/resources/views/layouts/app.blade.php ENDPATH**/ ?>