@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
{{-- Recent Invoices --}}
receipt_long

Recent invoices

View all →
@forelse ($recentInvoices->items() as $invoice) @php $st = $invoice->status ?? 'draft'; @endphp @empty @endforelse
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
{{-- Recent Payments --}}
payments

Recent payments

View all →
@forelse ($recentPayments as $payment) @php $pm = $payment->payment_method ?? 'other'; $methodClass = match ($pm) { 'cash' => 'bg-emerald-50 text-emerald-800 ring-emerald-100', 'bank_transfer' => 'bg-sky-50 text-sky-800 ring-sky-100', 'cheque' => 'bg-violet-50 text-violet-800 ring-violet-100', 'credit_card' => 'bg-indigo-50 text-indigo-800 ring-indigo-100', default => 'bg-slate-50 text-slate-700 ring-slate-100', }; @endphp @empty @endforelse
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
{{-- Recent Purchases --}}
shopping_cart

Recent purchases

View all →
{{-- Recent Quotations --}}
request_quote

Recent quotations

View all →
@forelse ($recentQuotations as $quote) @php $qs = $quote->status ?? 'draft'; @endphp @empty @endforelse
Quote # Customer Total Status
{{ $quote->quotation_number }} {{ $quote->customer->name ?? '—' }} {{ \App\Models\Currency::formatAmount($quote->total, $quote->currency ?? null) }} {{ ucfirst($qs) }}
No quotations yet