@extends('customer.layouts.app') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('content')
description

Total Invoices

{{ $totalInvoices }}

check_circle

Paid Invoices

{{ $paidInvoices }}

pending

Pending Invoices

{{ $pendingInvoices }}

warning

Overdue Invoices

{{ $overdueInvoices }}

attach_money

Total Paid

${{ number_format($totalPaid, 2) }}

account_balance

Total Outstanding

${{ number_format($totalOutstanding, 2) }}

Recent Invoices

View All
@forelse($invoices->items() as $invoice) @empty @endforelse
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
@if($invoices->hasPages())
{{ $invoices->links() }}
@endif

Recent Payments

View All
@forelse($payments->items() as $payment) @empty @endforelse
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
@if($payments->hasPages())
{{ $payments->links() }}
@endif
@endsection