@extends('layouts.app') @section('title', 'Dashboard Admin') @section('content')
| ID | Pelanggan | No. Meja | Item | Total | Pembayaran | Status | Tanggal | Aksi |
|---|---|---|---|---|---|---|---|---|
| #{{ $order->id }} |
{{ $order->user->name }}
{{ $order->user->email }}
|
{{ $order->table_number ?? 'N/A' }} |
@foreach($order->orderItems->take(2) as $item)
{{ $item->quantity }}x {{ $item->menu->name }}
@endforeach
@if($order->orderItems->count() > 2)
+{{ $order->orderItems->count() - 2 }} item lainnya
@endif
|
Rp {{ number_format($order->total_price, 0, ',', '.') }} | @if($order->payment_method) {{ $order->payment_method === 'cash' ? 'Cash' : 'QRIS' }} @else - @endif | @switch($order->status) @case('pending') Menunggu @break @case('confirmed') Dikonfirmasi @break @case('processing') Diproses @break @case('completed') Selesai @break @case('cancelled') Dibatalkan @break @endswitch | {{ $order->created_at->format('d M Y, H:i') }} |