<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
    <div class="container">
        <a class="navbar-brand" href="/">Bengkel</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
            aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
            <div class="navbar-nav ms-auto">
                <?php if(auth()->guard()->check()): ?>
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
                            aria-expanded="false">
                            Welcome Back, <?php echo e(auth()->user()->name); ?>

                        </a>
                        <ul class="dropdown-menu">
                            <li><a class="dropdown-item" href="/dashboard"><i class="bi bi-layout-text-sidebar-reverse"></i> My
                                    Dashboard</a></li>
                            <li>
                                <hr class="dropdown-divider">
                            </li>
                            <form action="/logout" method="post">
                                <?php echo csrf_field(); ?>
                                <button type ="submit" class="dropdown-item"><i class="bi bi-box-arrow-right"></i> Logout</a></button>
                            </form>
                        </ul>
                    </li>
                <?php else: ?>
                    <div class="nav-item">
                        <a href="/login" class="nav-link"<?php echo e($active === 'categories' ? 'active' : ''); ?>><i
                                class="bi bi-box-arrow-in-right"></i> Login</a>

                    </div>
                <?php endif; ?>
            </div>

        </div>
    </div>
</nav>
<?php /**PATH D:\Coding Skripsi\bengkel\resources\views/partials/navbar.blade.php ENDPATH**/ ?>