Invoice — {{ $order->order_number }}

{{ $order->order_date?->format('d M Y') }} · Branch: {{ $order->branch?->name ?? '—' }}

Billed To: {{ $order->customer?->name ?? 'Walk-in Customer' }} @if ($order->customer?->phone) ({{ $order->customer->phone }}) @endif

@foreach ($order->items as $item) @endforeach
Item Qty Unit Price Discount Tax Total
{{ $item->product?->name ?? 'Item' }} @if ($item->variant?->variant_name)
{{ $item->variant->variant_name }} @endif @foreach ($item->customizationValues as $value)
{{ $value->field?->label }}: @if ($value->field?->field_type === 'image' && $value->image_path)
@else {{ $value->option?->label ?? $value->value ?: '—' }} @endif
@endforeach
{{ $item->quantity }} Rs. {{ number_format((float) $item->unit_price, 2) }} Rs. {{ number_format((float) $item->discount_amount, 2) }} Rs. {{ number_format((float) $item->tax_amount, 2) }} Rs. {{ number_format((float) $item->total, 2) }}
SubtotalRs. {{ number_format((float) $order->subtotal, 2) }}
Discount- Rs. {{ number_format((float) $order->discount_amount, 2) }}
TaxRs. {{ number_format((float) $order->tax_amount, 2) }}
TotalRs. {{ number_format((float) $order->total_amount, 2) }}
PaidRs. {{ number_format((float) $order->advance_amount, 2) }}
Balance DueRs. {{ number_format((float) $order->balance_amount, 2) }}
Payments
@if ($order->payments->isEmpty())

No payments recorded yet.

@else @foreach ($order->payments as $payment) @endforeach
MethodReferenceReceived ByAmount
{{ ucfirst($payment->method) }} {{ $payment->reference_no ?? '—' }} {{ $payment->receivedBy?->name ?? '—' }} Rs. {{ number_format((float) $payment->amount, 2) }}
@endif