@extends('layouts.app') @section('title', $invoice->invoice_number) @section('content')
{{ $invoice->customer->display_name }} · {{ $invoice->status }} · {{ title_case_words($invoice->type) }}
| Description | Qty | Unit price | Amount |
|---|---|---|---|
| {{ $item->description }} | {{ rtrim(rtrim(number_format($item->quantity, 2), '0'), '.') }} | {{ money($item->unit_price, $invoice->currency) }} | {{ money($item->amount, $invoice->currency) }} |
| Subtotal | {{ money($invoice->subtotal, $invoice->currency) }} | ||
| Tax | {{ money($invoice->tax, $invoice->currency) }} | ||
| Total | {{ money($invoice->total, $invoice->currency) }} | ||
| Paid | −{{ money($invoice->amount_paid, $invoice->currency) }} | ||
| Balance due | {{ money($invoice->balance, $invoice->currency) }} | ||
| Reference | Date | Method | Applied | |
|---|---|---|---|---|
| {{ $allocation->payment?->reference ?? '—' }} | {{ $allocation->payment?->paid_at?->format('d M Y') ?? '—' }} | {{ title_case_words($allocation->payment?->method) }} | {{ money($allocation->amount_allocated, $invoice->currency) }} | |
| @include('components.empty-state', ['icon' => '💳', 'title' => 'No payments applied']) | ||||