@extends('layouts.app') @section('content') @include('invoices.styles')
{{ $sale->customer?->name ?: ($sale->customer_name ?: 'Walk in') }}
Tax withheld (non-cash settlement): {{ \App\Models\SystemSetting::formatMoney($sale->withholding_amount) }}. Total settled: {{ \App\Models\SystemSetting::formatMoney($sale->paid_amount) }}.
@endif| Product | Quantity | Unit Price | Discount | VAT | Total |
|---|---|---|---|---|---|
| {{ $item->product_name }} | {{ number_format($item->quantity,2) }} {{ $item->uom }} | {{ \App\Models\SystemSetting::formatMoney($item->unit_price) }} | {{ \App\Models\SystemSetting::formatMoney($item->discount_amount) }} | {{ \App\Models\SystemSetting::formatMoney($item->tax_amount) }} | {{ \App\Models\SystemSetting::formatMoney($item->line_total) }} |
| No items recorded. | |||||
| Invoice Total | {{ \App\Models\SystemSetting::formatMoney($sale->total_amount) }} | ||||
| Date | Payment Method | Reference | Amount |
|---|---|---|---|
| {{ \Illuminate\Support\Carbon::parse($payment->payment_date)->format('d M Y H:i') }} | {{ $payment->paymentMethod?->name ?: '-' }} | {{ $payment->reference_no ?: '-' }} | {{ \App\Models\SystemSetting::formatMoney($payment->amount) }} |
| No payments received yet. | |||
| Total Received | {{ \App\Models\SystemSetting::formatMoney($sale->payments->sum('amount')) }} | ||