@forelse($orders as $order)

#{{ $order->id }} · {{ $order->restaurantTable->name }} · {{ $order->status }}

{{ $order->ordered_at?->timezone($restaurant->timezone)->format('d/m H:i') }}

{{ $order->tableSession->currency_code ?? $restaurant->currency }} {{ number_format($order->total_amount,2,',','.') }}

@php($next=['pending'=>'accepted','accepted'=>'preparing','preparing'=>'ready','ready'=>'delivered'][$order->status] ?? null) @if($next)
@if(\App\Support\RestaurantAccess::allows(auth()->user(),$restaurant,'orders.update_status'))
@csrf @method('PUT')
@endif @if(\App\Support\RestaurantAccess::allows(auth()->user(),$restaurant,'orders.cancel'))
@csrf @method('PUT')
@endif
@endif
@empty

Geen bestellingen.

@endforelse{{ $orders->links() }}