@extends('layouts.app') @section('title', 'Invoices') @section('content')
| Date | Invoice # | Customer | Due Date | Amount | Status | Actions |
|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($invoice->invoice_date)->format('d M Y') }} | {{ $invoice->invoice_number }} | {{ $invoice->customer->name }} | {{ \Carbon\Carbon::parse($invoice->due_date)->format('d M Y') }} | {{ formatCurrency($invoice->total_amount) }} | @php $badgeClass = [ 'unpaid' => 'bg-light-danger text-danger', 'paid' => 'bg-light-success text-success', 'partial' => 'bg-light-warning text-warning' ][$invoice->status] ?? 'bg-light-secondary text-secondary'; @endphp {{ $invoice->status }} |
|
| No invoices found. Create your first invoice. | ||||||