ඒ ආර් සුපර් ග්රොසරි

මහගල්කඩවල, ගල්ගමුව

Tel: 0779294928

INVOICE

{{ $invoice->invoice_number }}

Date: {{ $invoice->created_at->format('F d, Y') }}

Time: {{ $invoice->created_at->format('h:i A') }}

Bill To

@if($invoice->customer_name)

{{ $invoice->customer_name }}

{{ $invoice->customer_phone }}

@else

Walk-in Customer

@endif

Invoice Details

Cashier: {{ $invoice->user->name }}

Branch: {{ $invoice->branch->name ?? '-' }}

Status: {{ ucfirst($invoice->status) }}

@foreach($invoice->items as $item) @endforeach
Item Description Qty Price (LKR)
{{ $item->product_name }} @if($item->product_barcode)
{{ $item->product_barcode }} @endif @if($item->discount > 0)
Discount: -LKR {{ number_format($item->discount, 2) }} @endif
{{ number_format($item->quantity, $item->quantity == (int) $item->quantity ? 0 : 2) }} {{ number_format($item->line_total, 2) }}
Subtotal: LKR {{ number_format($invoice->subtotal, 2) }}
@if($invoice->item_discount > 0)
Item Discounts: -LKR {{ number_format($invoice->item_discount, 2) }}
@endif @if($invoice->bill_discount > 0)
Bill Discount: -LKR {{ number_format($invoice->bill_discount, 2) }}
@endif @if($invoice->tax_amount > 0)
Tax: LKR {{ number_format($invoice->tax_amount, 2) }}
@endif
TOTAL: LKR {{ number_format($invoice->total, 2) }}

Payment Information

@foreach($invoice->payments as $payment)

{{ ucfirst($payment->method) }}: LKR {{ number_format($payment->amount, 2) }} @if($payment->reference) (Ref: {{ $payment->reference }}) @endif

@endforeach @php $totalPaid = $invoice->payments->sum('amount'); $change = $totalPaid - $invoice->total; @endphp @if($change > 0)

Change Given: LKR {{ number_format($change, 2) }}

@endif