Invoice {{ $order->code }}

Date: {{ optional($order->placed_at)->format('d M Y') }}

Bill To

{{ $order->user->profile->name ?? $order->user->email }}

Items

@foreach($order->items as $it) @endforeach
ProductQtyPriceTotal
{{ $it->product->name }} {{ $it->qty }} {{ number_format($it->price,2) }} {{ number_format($it->total,2) }}
Subtotal{{ number_format($order->subtotal,2) }}
Shipping{{ number_format($order->shipping,2) }}
Tax{{ number_format($order->tax,2) }}
Total{{ number_format($order->total,2) }}