<div class="navbar bg-base-100 shadow-sm">
    <div class="navbar-start">
        <div class="dropdown">
            <div tabindex="0" role="button" class="btn btn-ghost lg:hidden">
                <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24"
                    stroke="currentColor">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h8m-8 6h16" />
                </svg>
            </div>
        </div>
        <a href="<?php echo e(route('home')); ?>">
            <img src=<?php echo e(asset('assets/images/logo_bengkod.svg')); ?> />
        </a>
    </div>
    <div class="navbar-center hidden lg:flex">
        <input class="input w-72" placeholder="Cari Event..." />
    </div>
    <div class="navbar-end gap-2">
        <!-- check user session -->
        <?php if(auth()->guard()->guest()): ?>
            <a href="<?php echo e(route('login')); ?>" class="btn bg-blue-900 text-white">Login</a>
            <a href="<?php echo e(route('register')); ?>" class="btn text-blue-900">Register</a>
        <?php endif; ?>

        <?php if(auth()->guard()->check()): ?>
            <div class="dropdown dropdown-end">
                <div tabindex="0" role="button" class="btn btn-ghost rounded-btn">
                    Halo, <?php echo e(Auth::user()->name); ?>

                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 ml-2" fill="none" viewBox="0 0 24 24"
                        stroke="currentColor">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
                    </svg>

                </div>
                <ul tabindex="0" class="mt-3 p-2 shadow menu menu-compact dropdown-content bg-base-100 rounded-box w-52">
                    <li>
                        <a href="<?php echo e(route('orders.index')); ?>" class="justify-between">
                            Riwayat Pembelian
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo e(route('logout')); ?>"
                            onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
                            Logout
                        </a>

                        <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" class="hidden">
                            <?php echo csrf_field(); ?>
                        </form>
                    </li>
                </ul>
            </div>
        <?php endif; ?>



    </div>
</div><?php /**PATH C:\Users\D2I\Desktop\ticketing_app\resources\views/components/user/navigation.blade.php ENDPATH**/ ?>