| No. Order | Customer | Total | Status | Pembayaran | Tanggal |
|---|---|---|---|---|---|
| {{ $order->order_number }} | {{ $order->customer->name ?? 'Walk-in' }} | Rp {{ number_format($order->grand_total, 0, ',', '.') }} | @php $badgeMap = [ 'Order Baru' => 'bg-info text-white', 'Menunggu Pembayaran' => 'bg-secondary text-white', 'Diproses' => 'bg-warning text-dark', 'Selesai' => 'bg-success text-white', 'Diambil/Dikirim' => 'bg-info text-dark', 'Cancelled' => 'bg-danger text-white', ]; $cls = $badgeMap[$order->work_status] ?? 'bg-secondary text-white'; @endphp {{ $order->work_status }} | @php $payCls = $order->payment_status === 'Lunas' ? 'badge-lunas' : 'badge-belum-lunas'; @endphp {{ $order->payment_status }} | {{ \Carbon\Carbon::parse($order->date)->format('d M Y H:i') }} |
| Belum ada order | |||||