@php $fmt = fn ($v) => '$'.number_format((float) $v, 2); $statusChip = [ 'paid' => 'bg-green-500/15 text-green-400', 'open' => 'bg-amber-500/15 text-amber-400', 'draft' => 'bg-slate-500/15 text-slate-400', 'void' => 'bg-slate-600/20 text-slate-500', 'refunded' => 'bg-indigo-500/15 text-indigo-300', 'partially_refunded' => 'bg-indigo-500/15 text-indigo-300', 'uncollectible' => 'bg-red-500/15 text-red-400', ]; @endphp
| Invoice | Customer | Amount | Status | Issued | Actions |
|---|---|---|---|---|---|
|
{{ $inv->user?->name ?? '—' }}
{{ $inv->user?->email }}
|
{{ $fmt($inv->total) }} | {{ str_replace('_', ' ', $inv->status) }} | {{ optional($inv->issued_at)->format('M j, Y') ?? '—' }} | ||
| No invoices found. | |||||
{{ $viewing->user?->name }} · {{ $viewing->user?->email }}
| Item | Qty | Amount |
|---|---|---|
| {{ $item->description }} | {{ $item->quantity }} | {{ $fmt($item->amount) }} |