Date: {{ $invoice->invoice_date->format('Y-m-d') }}
| Item | Qty | Unit Price | Subtotal |
|---|---|---|---|
| {{ $item['name'] ?? 'Item' }} | {{ $item['quantity'] ?? 0 }} | {{ number_format($item['unit_price'] ?? 0, 2) }} | {{ number_format($item['subtotal'] ?? 0, 2) }} |
Subtotal: {{ number_format($invoice->subtotal, 2) }}
@if($invoice->tax_amount)Tax: {{ number_format($invoice->tax_amount, 2) }}
@endif @if($invoice->credit_used > 0)Credit applied: -{{ number_format($invoice->credit_used, 2) }}
@endifTotal: {{ number_format($invoice->total, 2) }}