<nav>
    <?php ($role = auth()->user()?->role?->nama_roles); ?>

    <?php if(in_array($role, ['admin'], true)): ?>
        <a href="<?php echo e(route('stands.index')); ?>">Master Stand</a>
        <a href="<?php echo e(route('mejas.index')); ?>">Master Meja</a>
        <a href="<?php echo e(route('waiters.index')); ?>">Master Waiter</a>
        <a href="<?php echo e(route('menus.index')); ?>">Master Menu</a>
    <?php endif; ?>

    <?php if(in_array($role, ['admin', 'cashier'], true)): ?>
        <a href="<?php echo e(route('orders.all')); ?>">Semua Order</a>
    <?php endif; ?>

    <?php if($role === 'waiter'): ?>
        <a href="<?php echo e(route('orders.create')); ?>">Buat Order</a>
        <a href="<?php echo e(route('orders.index')); ?>">Order Saya</a>
    <?php endif; ?>

    <form action="<?php echo e(route('logout')); ?>" method="post" class="inline">
        <?php echo csrf_field(); ?>
        <button type="submit" class="rounded-lg border border-white/30 px-4 py-2 text-sm font-semibold text-white hover:bg-white/10">Logout</button>
    </form>
</nav>
<?php /**PATH C:\laragon\www\foodcourt\resources\views\partials\nav.blade.php ENDPATH**/ ?>