| Store: {{ $store['name'] ?? 'Admin' }} | Date: {{ $sale['date'] ?? now()->format('d/m/Y H:i') }} |
| @if(!empty($customer['name'])) Customer: {{ $customer['name'] }} @endif | Cashier: {{ $sale['cashier'] ?? 'Admin' }} |
| ITEM | QTY | UOM | {{-- ✅ Added --}}AMOUNT |
|---|---|---|---|
|
{{ $item['name'] }}
@ {{ number_format($item['price'], 2) }}
@if(!empty($item['discount']))
| Disc: {{ number_format($item['discount'], 2) }}
@endif
|
{{ $item['quantity'] }} | {{ ucfirst(strtolower($item['unit_of_measure'])) ?? '-' }} | {{ number_format($item['amount'], 2) }} |
| Subtotal: | {{ number_format($totals['subtotal'], 2) }} |
| Tax {{ isset($totals['tax_rate']) ? "({$totals['tax_rate']}%)" : '' }}: | {{ number_format($totals['tax'], 2) }} |
| Discount: | -{{ number_format($totals['discount'], 2) }} |
| TOTAL({{$currency[ 'code']}}): | {{ number_format($totals['total'], 2) }} |
| Payment Method: | {{ $payment['method'] ?? 'Cash' }} |
| Amount Paid ({{ $currency['code'] }}): | {{ number_format($payment['amount_paid'] ?? $totals['total'], 2) }} |
| Change ({{ $currency['code'] }}): | {{ number_format($payment['change'], 2) }} |
| Balance Due ({{ $currency['code'] }}): | {{ number_format(($totals['total'] ?? 0) - ($payment['amount_paid'] ?? 0), 2) }} |