@extends('layouts.admin') @section('title', 'Orders') @section('content')
| Order # | Token | Source | Table | Items | Total | Payment | Status | Time |
|---|---|---|---|---|---|---|---|---|
| {{ $o->order_number }} | #{{ $o->token_number }} | {{ $o->source === 'mobile' ? 'Mobile / '.($o->placedByStaff->name ?? 'Staff') : ($o->kiosk->name ?? 'Kiosk') }} | {{ $o->restaurantTable->name ?? '—' }} | {{ $o->items->sum('qty') }} | ₹{{ number_format($o->grand_total, 2) }} | {{ ucfirst($o->payment_method ?? '—') }} / {{ ucfirst($o->payment_status) }} | {{ \App\Models\Order::STATUS_LABELS[$o->status] ?? $o->status }} | {{ $o->created_at->format('d-M h:i A') }} |