@extends('admin.layouts.main') @section('title', 'Invoices') @section('menu', 'Invoices') @section('content')
| Invoice # | Client | Total | Balance | Status | Due Date | Actions |
|---|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} | @if($invoice->user) {{ $invoice->user->first_name }} {{ $invoice->user->last_name }} @else N/A @endif | {{ number_format($invoice->total, 2) }} {{ $invoice->currency_code }} | {{ number_format($invoice->balance_due, 2) }} {{ $invoice->currency_code }} | @php $badgeClass = match($invoice->status) { 'paid' => 'success', 'unpaid', 'pending' => 'warning', 'partially_paid' => 'info', 'cancelled' => 'danger', 'refunded' => 'default', 'overdue' => 'dark', default => 'secondary', }; @endphp {{ ucfirst($invoice->status) }} | {{ $invoice->due_date?->format('M d, Y') ?? 'N/A' }} | |
| No invoices found | ||||||