@php $invoiceStatusStyles = [ 'draft' => 'bg-slate-100 text-slate-700 ring-slate-200/80', 'sent' => 'bg-sky-50 text-sky-800 ring-sky-100', 'viewed' => 'bg-violet-50 text-violet-800 ring-violet-100', 'partial' => 'bg-amber-50 text-amber-800 ring-amber-100', 'paid' => 'bg-emerald-50 text-emerald-800 ring-emerald-100', 'overdue' => 'bg-rose-50 text-rose-800 ring-rose-100', 'cancelled' => 'bg-slate-100 text-slate-500 ring-slate-200/80', ]; @endphp
| Invoice | Customer | Amount | Status |
|---|---|---|---|
|
{{ $invoice->invoice_number }}
Due {{ $invoice->due_date ? $invoice->due_date->format('M j, Y') : '—' }} |
@php $cname = $invoice->customer->name ?? 'N/A'; $ci = strtoupper(\Illuminate\Support\Str::substr($cname, 0, 1)); @endphp
{{ $ci }}
{{ $cname }}
|
{{ \App\Models\Currency::formatAmount($invoice->total, $invoice->currency ?? null) }} | {{ ucfirst($st) }} |
| No invoices yet | |||
| Ref / Invoice | Customer | Method | Amount |
|---|---|---|---|
|
{{ $payment->payment_number }}
@if ($payment->invoice)
{{ $payment->invoice->invoice_number }} @endif |
{{ $payment->customer->name ?? '—' }} | {{ ucfirst(str_replace('_', ' ', $pm)) }} | {{ \App\Models\Currency::formatAmount($payment->amount, $payment->currency ?? null) }} |
| No payments recorded | |||
{{ $purchase->purchase_number }}
{{ $sname }}
{{ \App\Models\Currency::formatAmount($purchase->total, null) }}
{{ $purchase->purchase_date ? $purchase->purchase_date->format('M j, Y') : '—' }}
| Quote # | Customer | Total | Status |
|---|---|---|---|
| {{ $quote->quotation_number }} | {{ $quote->customer->name ?? '—' }} | {{ \App\Models\Currency::formatAmount($quote->total, $quote->currency ?? null) }} | {{ ucfirst($qs) }} |
| No quotations yet | |||