
<nav class="navbar navbar-expand-lg fixed-top navbar-light bg-white shadow-sm py-2">
    <div class="container">

        
        <a class="navbar-brand d-flex align-items-center" href="/">
            <img src="<?php echo e(asset('assets/images/logo-smanda.png')); ?>" height="50" alt="Logo Sekolah">
            <span class="ms-2 fw-bold text-primary">SMAN 2 Majujaya</span>
        </a>

        
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse"
            data-bs-target="#navbarSupportedContent">
            <span class="navbar-toggler-icon"></span>
        </button>

        
        <div class="collapse navbar-collapse" id="navbarSupportedContent">

            
            <ul class="navbar-nav ms-auto align-items-center gap-2">

                <li class="nav-item">
                    <a class="nav-link <?php echo e(request()->is('/') ? 'active' : ''); ?>" href="/">Beranda</a>
                </li>

                <li class="nav-item">
                    <a class="nav-link <?php echo e(request()->is('profil*') ? 'active' : ''); ?>" href="<?php echo e(route('profil')); ?>">
                        Profil
                    </a>
                </li>

                <li class="nav-item">
                    <a class="nav-link <?php echo e(request()->is('berita*') ? 'active' : ''); ?>" href="/berita">
                        Berita
                    </a>
                </li>

                <li class="nav-item">
                    <a class="nav-link <?php echo e(request()->is('prestasi*') ? 'active' : ''); ?>" href="<?php echo e(route('prestasi')); ?>">
                        Prestasi
                    </a>
                </li>

                <li class="nav-item">
                    <a class="nav-link <?php echo e(request()->is('foto*') ? 'active' : ''); ?>" href="<?php echo e(route('foto.kegiatan')); ?>">
                        Galeri
                    </a>
                </li>

                <li class="nav-item">
                    <a class="nav-link <?php echo e(request()->is('kontak*') ? 'active' : ''); ?>" href="<?php echo e(route('kontak')); ?>">
                        Kontak
                    </a>
                </li>

                
                <li class="nav-item ms-3">
                    <?php if(auth()->guard()->check()): ?>
                        <form action="/logout" method="POST">
                            <?php echo csrf_field(); ?>
                            <button class="btn btn-outline-dark btn-sm px-3">
                                Logout
                            </button>
                        </form>
                    <?php else: ?>
                        <a href="/login" class="btn btn-primary btn-sm px-4">
                            Login
                        </a>
                    <?php endif; ?>
                </li>

            </ul>
        </div>
    </div>
</nav>

<?php /**PATH E:\laragon\www\websekolah\resources\views/layouts/navbar.blade.php ENDPATH**/ ?>