@foreach (['pipeline' => 'CAF Pipeline', 'verification' => 'In Verification', 'approved' => 'Approved CAFs'] as $key => $label)
{{ $label }} ({{ $counts[$key] }})
@endforeach
@if ($tab === 'pipeline') CAF Pipeline — Ready for Review
@elseif ($tab === 'verification') CAFs In Verification
@else Approved CAFs
@endif
Review CAFs from Account Officers and forward to Risk & Legal
@forelse ($records as $caf)
@php $app = $caf->loanApplication; @endphp
{{ $app->application_number }}
{{ $app->customer?->fullName() }}
AO: {{ $app->relationshipOfficer?->name ?? '—' }} · Submitted {{ $app->submitted_at?->format('j M Y') }}
{{ ucfirst(str_replace('_',' ', $caf->status)) }}
Loan Amount
₦{{ number_format($app->loan_amount) }}
Product
{{ $app->mortgageProduct?->code }}
DTI
{{ $app->dti_ratio }}%
LTV
{{ $app->ltv_ratio }}%
Document Status
{{ $caf->status !== 'draft' ? '✓' : '—' }} CAF Generated
{{ $caf->credit_checks_complete ? '✓' : '—' }} Credit Checks
{{ $caf->valuation_complete ? '✓' : '—' }} Valuation
{{ $caf->charting_complete ? '✓' : '—' }} Charting
{{ $caf->legal_search_complete ? '✓' : '—' }} Legal Search
4Cs Rating: {{ $caf->rating_4cs ?? '—' }}
View CAF
@if ($tab === 'pipeline')
@endif
@empty
Nothing in this queue right now.
@endforelse