| # |
Order No |
Date/Time |
Customer |
Food Items |
Grand Total |
Paid |
Balance |
Status |
Action |
@foreach($foodorder as $order)
| {{ $loop->iteration }} |
#{{ $order->id }} |
{{ \Carbon\Carbon::parse($order->order_date)->format('d M Y') }}
{{ \Carbon\Carbon::parse($order->order_date)->format('h:i A') }}
|
{{ $order->customer->name ?? '-' }}
{{ $order->customer->phone ?? '' }}
|
@foreach($order->details as $detail)
@if($detail->product && $detail->product->category == 1)
{{ $detail->product->name }}
{{ $detail->description }}
@endif
@endforeach
|
{{ number_format($order->grand_total,2) }} |
{{ number_format($order->paid_amount,2) }} |
{{ number_format($order->balance,2) }} |
@if($order->order_status =='delivered')
Deliverd
@else
$order->order_status
@endif
|
|
@endforeach