@extends('layouts.app') @section('title', 'Invoices & Receipts') @push('styles') @endpush @section('content')

Invoices & Receipts

{{-- Filters --}}
{{-- Table --}}
@if(method_exists($invoices, 'total') ? $invoices->total() > 0 : $invoices->count() > 0) @foreach($invoices as $invoice) @endforeach
Invoice # Date Description Amount Status Actions
{{ $invoice->invoice_number }} {{ $invoice->created_at?->format('M d, Y') }} {{ $invoice->description }} {{ $invoice->formatted_amount ?? '---' }} @php $statusClass = match($invoice->status) { 'paid', 'completed' => 'badge-success', 'pending' => 'badge-warning', 'refunded', 'cancelled' => 'badge-danger', default => 'badge-warning' }; @endphp {{ ucfirst($invoice->status) }}
@else

No invoices yet

Your invoices and receipts will appear here once you make transactions.

@endif
@if(method_exists($invoices, 'hasPages') && $invoices->hasPages())
{{ $invoices->withQueryString()->links() }}
@endif
@endsection