@extends('customer.layouts.app') @section('title', 'My Invoices') @section('page-title', 'My Invoices') @section('content')
| Invoice # | Issue Date | Due Date | Total | Balance | Status | Actions |
|---|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{ $invoice->issue_date->format('M d, Y') }} | {{ $invoice->due_date->format('M d, Y') }} | {{ $invoice->currency }} {{ number_format($invoice->total, 2) }} | {{ $invoice->currency }} {{ number_format($invoice->balance, 2) }} | @php $statusColors = [ 'draft' => 'bg-gray-100 text-gray-700', 'sent' => 'bg-blue-100 text-blue-700', 'viewed' => 'bg-purple-100 text-purple-700', 'partial' => 'bg-yellow-100 text-yellow-700', 'paid' => 'bg-green-100 text-green-700', 'overdue' => 'bg-red-100 text-red-700', ]; $status = $invoice->isOverdue() ? 'overdue' : $invoice->status; @endphp {{ ucfirst($status) }} | |
| No invoices found | ||||||