Muftaax

Invoice #{{ $order->id }}

Date Issued: {{ $order->created_at->format('d M, Y - h:iA') }}
Delivered Date: {{ $order->updated_at->format('d M, Y - h:iA') }}

Billing From:
{{ $order->restaurant->name }}

Billing To:
{{ $order->order_user->first_name }} {{ $order->order_user->last_name }}

Billing Address:
{{ optional($order->deliveryAddress)->full_address }}

@foreach($order->order_data as $item) @endforeach
Detail Quantity Price Per Unit Total
{{ $item['title'] ?? 'N/A' }} {{ $item['quantity'] ?? 0 }} ${{ number_format($item['price'] ?? 0, 2) }} ${{ number_format($item['cal_price'] ?? 0, 2) }}
@if($order->order_data)

Sub Total: ${{ number_format($order->sub_total, 2) }}

Total: ${{ number_format($order->total, 2) }}

@else

Sub Total: $0.00

Total: $0.00

@endif