@php
$statusConfig = [
'NEW' => ['label' => 'Pesanan Diterima', 'color' => 'bg-slate-100 text-slate-700', 'icon' => '📋'],
'PREPARING' => ['label' => 'Sedang Dimasak', 'color' => 'bg-amber-100 text-amber-700', 'icon' => '👨🍳'],
'READY' => ['label' => 'Pesanan Siap!', 'color' => 'bg-emerald-100 text-emerald-700','icon' => '✅'],
'SERVED' => ['label' => 'Sudah Disajikan', 'color' => 'bg-sky-100 text-sky-700', 'icon' => '🍽️'],
];
$cfg = $statusConfig[$order->kitchen_status] ?? $statusConfig['NEW'];
@endphp
{{-- Receipt number --}}
{{ $cfg['icon'] }}
{{ $cfg['label'] }}
Auto-refresh setiap 15 detik
Nomor Pesanan
{{ $order->receipt_number }}
{{ $order->created_at->format('d M Y, H:i') }}
Pesanan Anda
@foreach($order->items as $item)
@endforeach
{{ $item->qty }}x {{ $item->name_snapshot }}
@if($item->variant_snapshot){{ $item->variant_snapshot['group'] }}: {{ $item->variant_snapshot['option'] }}
@endif @if($item->addons_snapshot && count($item->addons_snapshot))+ {{ collect($item->addons_snapshot)->pluck('name')->join(', ') }}
@endif @if($item->note){{ $item->note }}
@endifRp {{ number_format($item->line_total, 0, ',', '.') }}
Subtotal
Rp {{ number_format($order->subtotal, 0, ',', '.') }}
@if($order->tax)
Pajak
Rp {{ number_format($order->tax, 0, ',', '.') }}
@endif
@if($order->service)
Service
Rp {{ number_format($order->service, 0, ',', '.') }}
@endif
Total
Rp {{ number_format($order->total, 0, ',', '.') }}
✓ Pembayaran via QRIS — Rp {{ number_format($order->total, 0, ',', '.') }}
+ Pesan Lagi