Computer & Electronics Management
{{ $sale->customer?->name ?? 'Walk-in Customer' }}
@if($sale->customer?->phone){{ $sale->customer->phone }}
@endif
@if($sale->customer?->address){{ $sale->customer->address }}@endif
Invoice: {{ $sale->invoice_no }}
Date: {{ $sale->sale_date->format('d M Y') }}
Served by: {{ $sale->creator?->name }}
Payment: {{ ucfirst(str_replace('_', ' ', $sale->payment_method)) }}
| # | Product / Variant | Serial No. | Qty | Unit Price | Discount | Total |
|---|---|---|---|---|---|---|
| {{ $i+1 }} |
{{ $item->productVariant->product->name }} {{ $item->productVariant->variant_name }} |
@foreach($item->serialNumbers as $sn) {{ $sn->serial_no }} @endforeach | {{ $item->qty }} | ৳{{ number_format($item->unit_price, 2) }} | {{ $item->discount > 0 ? '৳'.number_format($item->discount, 2) : '—' }} | ৳{{ number_format($item->total_price, 2) }} |
| Discount: | -৳{{ number_format($sale->discount, 2) }} | |||||
| VAT: | +৳{{ number_format($sale->vat, 2) }} | |||||
| GRAND TOTAL: | ৳{{ number_format($sale->total_amount, 2) }} | |||||
| Amount Paid: | ৳{{ number_format($sale->paid_amount, 2) }} | |||||
| Balance Due: | ৳{{ number_format($sale->due_amount, 2) }} | |||||
| Change Given: | ৳{{ number_format($sale->change_amount, 2) }} | |||||