@php
$columns = [
'new' => ['New', 'var(--accent)', 'preparing', 'Start cooking', 'var(--ink)'],
'preparing' => ['Preparing', '#B45309', 'ready', 'Mark as ready', 'var(--green)'],
'ready' => ['Ready to serve', 'var(--green)', 'served', 'Served', 'var(--ink)'],
];
@endphp
@foreach ($columns as $status => [$label, $color, $next, $action, $btn])
{{ $label }}
@foreach ($orders->get($status, collect()) as $order)
{{ $order->table->name }}
#{{ $order->id }} · {{ $order->created_at->diffForHumans(short: true) }}
@foreach ($order->items as $line)
@if (!empty($line->image))

@else
@endif
{{ $line->quantity }} × {{ $line->name }}
@if ($line->options)
{{ $line->options }}
@endif
@endforeach
@if ($order->note)
Note: {{ $order->note }}
@endif
{{ $order->payment_method === 'counter' ? 'Pays at the counter' : 'Paying on phone' }}
· ${{ number_format($order->total, 2) }}
@endforeach
Nothing here.
@endforeach