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

    @if(in_array($role, ['admin'], true))
        <a href="{{ route('stands.index') }}">Master Stand</a>
        <a href="{{ route('mejas.index') }}">Master Meja</a>
        <a href="{{ route('waiters.index') }}">Master Waiter</a>
        <a href="{{ route('menus.index') }}">Master Menu</a>
    @endif

    @if(in_array($role, ['admin', 'cashier'], true))
        <a href="{{ route('orders.all') }}">Semua Order</a>
    @endif

    @if($role === 'waiter')
        <a href="{{ route('orders.create') }}">Buat Order</a>
        <a href="{{ route('orders.index') }}">Order Saya</a>
    @endif

    <form action="{{ route('logout') }}" method="post" class="inline">
        @csrf
        <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>
