ERP System

Computer & Electronics Management

INVOICE

{{ $sale->invoice_no }}
{{ $sale->sale_date->format('d F Y') }}
{{ strtoupper($sale->sale_type) }}

Bill To

{{ $sale->customer?->name ?? 'Walk-in Customer' }}
@if($sale->customer?->phone){{ $sale->customer->phone }}
@endif @if($sale->customer?->address){{ $sale->customer->address }}@endif

Invoice Details

Invoice: {{ $sale->invoice_no }}
Date: {{ $sale->sale_date->format('d M Y') }}
Served by: {{ $sale->creator?->name }}
Payment: {{ ucfirst(str_replace('_', ' ', $sale->payment_method)) }}

@foreach($sale->items as $i => $item) @endforeach @if($sale->discount > 0)@endif @if($sale->vat > 0)@endif @if($sale->due_amount > 0)@endif @if($sale->change_amount > 0)@endif
# 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) }}