@section('page-title', 'Payment History')
Payment History
@if($payments->isEmpty())

No payment records found.

@else
@foreach($payments as $payment) @endforeach
Date Invoice # Method Reference Amount
{{ $payment->payment_date->format('d M Y') }} {{ $payment->invoice->invoice_number ?? '—' }} {{ str_replace('_', ' ', $payment->payment_method) }} {{ $payment->reference_number ?? '—' }} {{ number_format($payment->amount, 2) }} {{ $payment->currency }}
@endif