@extends('layouts.restaurant') @section('content')
| Receipt # | Date & Time | Cashier | Items | Payment | Total (TZS) | Status |
|---|---|---|---|---|---|---|
| TN-{{ str_pad($order->id, 6, '0', STR_PAD_LEFT) }} | {{ $order->created_at->format('d M Y, H:i') }} | {{ $order->createdBy?->name ?? 'POS Terminal' }} | {{ $order->lines->map(fn($l) => (int)$l->quantity . 'x ' . $l->item->name)->join(', ') }} | @php $payment = $order->payments->first(); @endphp {{ strtoupper(str_replace('_', ' ', $payment?->method?->value ?? 'Cash')) }} | {{ number_format($order->total, 2) }} | @if($order->status->value === 'completed' || $order->status->value === 'fulfilled') Completed @elseif($order->status->value === 'ready') Ready @elseif($order->status->value === 'preparing') Preparing @else {{ $order->status->value }} @endif |
| No sales orders recorded at this station yet. | ||||||