@if(!empty($logoSrc)) {{ $companyName }} @else

{{ $companyName }}

@endif

Order receipt

Thank you for shopping with us

Order number {{ $order->order_number }}
Date {{ $order->created_at ? $order->created_at->timezone(config('app.timezone'))->format('M j, Y g:i A') : '—' }}
Customer name {{ $customerName }}
Email {{ $customerEmail }}
Payment status {{ strtoupper($payment->status) }}
Payment reference {{ $payment->reference }}
Paid at {{ $payment->paid_at ? $payment->paid_at->timezone(config('app.timezone'))->format('M j, Y g:i A') : '—' }}
@if(!empty($addressLines))

Delivery address

{{ implode("\n", $addressLines) }}

@endif @foreach($order->items as $line) @php $unit = (float) $line->unit_price; $qty = (int) $line->quantity; $lineTotal = $unit * $qty; $variant = $line->variant; $variantLabel = $variant ? trim(implode(' · ', array_filter([ $variant->size ?? null, $variant->color ?? null, $variant->sku ?? null, ]))) : ''; @endphp @endforeach
Item Recipient Qty Unit Line total
{{ $line->product_name_snapshot }} @if($variantLabel !== '')
{{ $variantLabel }} @endif
{{ $recipientName }} {{ $qty }} {{ number_format($unit, 2) }} {{ $order->currency }} {{ number_format($lineTotal, 2) }} {{ $order->currency }}
@if($order->shipping_fee !== null) @endif
Subtotal {{ number_format((float) $order->subtotal, 2) }} {{ $order->currency }}
Discount {{ number_format((float) $order->discount, 2) }} {{ $order->currency }}
Shipping {{ number_format((float) $order->shipping_fee, 2) }} {{ $order->currency }}
Total {{ number_format((float) $order->total, 2) }} {{ $order->currency }}