@extends('layouts.app') @section('content')

Loan Collections

Track loan repayments and collection performance

TZS {{ number_format($data['total_expected'] ?? 0) }}

Total Expected

TZS {{ number_format($data['total_collected'] ?? 0) }}

Total Collected

{{ number_format($data['collection_rate'] ?? 0, 1) }}%

Collection Rate

{{ $data['overdue_loans'] ?? 0 }}

Overdue Loans

Collection Trends
Payment Status
On Track (65%)
Late (20%)
Defaulted (15%)
Active Loans for Collection
@forelse($loanOffers as $loan) @empty @endforelse
Loan # Employee Outstanding Monthly Payment Last Payment Status Actions
{{ $loan->application_number }}
{{ $loan->employee_name }}
{{ $loan->employee_number }}
TZS {{ number_format($loan->total_amount_to_pay ?? 0) }} TZS {{ number_format(($loan->total_amount_to_pay ?? 0) / ($loan->duration ?: 1)) }} {{ $loan->updated_at->format('d M Y') }} @php $status = rand(0, 2); @endphp @if($status == 0) Current @elseif($status == 1) Late @else Overdue @endif

No active loans for collection

@if($loanOffers->hasPages())
{{ $loanOffers->withQueryString()->links() }}
@endif
@endsection