@extends('customer.layouts.app') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('content')
Total Invoices
Paid Invoices
Pending Invoices
Overdue Invoices
${{ number_format($totalPaid, 2) }}
${{ number_format($totalOutstanding, 2) }}
| Invoice # | Issue Date | Due Date | Amount | 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) }} | @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 | |||||
| Payment # | Invoice | Date | Amount | Status | Actions |
|---|---|---|---|---|---|
| {{ $payment->payment_number }} | {{ $payment->invoice->invoice_number }} | {{ $payment->payment_date->format('M d, Y') }} | {{ $payment->currency }} {{ number_format($payment->amount, 2) }} | @php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-700', 'completed' => 'bg-green-100 text-green-700', 'failed' => 'bg-red-100 text-red-700', 'refunded' => 'bg-gray-100 text-gray-700', ]; @endphp {{ ucfirst($payment->status) }} | View |
| No payments found | |||||