Pesanan #{{ $order->id }}
{{ $order->created_at->format('d M Y, H:i') }}
@switch($order->status)
@case('pending') Menunggu @break
@case('confirmed') Dikonfirmasi @break
@case('processing') Diproses @break
@case('completed') Selesai @break
@case('cancelled') Dibatalkan @break
@endswitch
@foreach($order->orderItems as $item)
{{ $item->quantity }}x {{ $item->menu->name }}
Rp {{ number_format($item->price * $item->quantity, 0, ',', '.') }}
@endforeach
Total
Rp {{ number_format($order->total_price, 0, ',', '.') }}
@if($order->payment_method)
Pembayaran:
{{ $order->payment_method === 'cash' ? 'Cash' : 'QRIS' }}
@endif
@if($order->notes)
Catatan: {{ $order->notes }}
@endif