@forelse ($applications as $app)
@php
$badgeMap = [
'customer_application' => 'bg-blue-100 text-blue-700',
'ao_review' => 'bg-yellow-100 text-yellow-700',
'pre_assessment' => 'bg-purple-100 text-purple-700',
'parallel_verification' => 'bg-purple-100 text-purple-700',
'risk_assessment' => 'bg-purple-100 text-purple-700',
'legal_verification' => 'bg-purple-100 text-purple-700',
'committee_review' => 'bg-indigo-100 text-indigo-700',
'manager_approval' => 'bg-indigo-100 text-indigo-700',
'approved' => 'bg-green-100 text-green-700',
'rejected' => 'bg-red-100 text-red-700',
'disbursed' => 'bg-green-100 text-green-700',
'returned_for_correction' => 'bg-orange-100 text-orange-700',
];
@endphp
{{ $app->application_number }}
{{ $app->customer?->fullName() ?? '—' }}
{{ $app->stageLabel() }}
Product: {{ $app->mortgageProduct?->code }}
Amount: ₦{{ number_format($app->loan_amount / 1000000, 1) }}M
Tenor: {{ $app->tenor_years }} years
Submitted: {{ $app->submitted_at?->format('M j') ?? '—' }}
@empty
No applications match this filter yet.
@endforelse