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

Loan Applications from ESS

Process and disburse employee loans via NMB Bank

{{ $pendingCount ?? 0 }}
Pending Approval
{{ $approvedCount ?? 0 }}
Ready to Disburse
{{ $pendingNMBCount ?? 0 }}
Pending NMB
{{ number_format($totalDisbursed ?? 0) }}
TZS Disbursed Today
{{-- --}} @forelse ($loanOffers as $offer) {{-- --}} @empty @endforelse
Employee Details Application InfoAmount (TZS)Approval Status Timeline Actions
{{ strtoupper(substr($offer->first_name, 0, 1)) }}{{ strtoupper(substr($offer->last_name, 0, 1)) }}
{{ $offer->first_name }} {{ $offer->middle_name }} {{ $offer->last_name }}
{{ $offer->check_number }} @if($offer->bank_account_number)
NMB: {{ $offer->bank_account_number }} @endif
{{ $offer->application_number }} ESS Ref: {{ $offer->ess_reference ?? 'N/A' }} {{ number_format($offer->total_amount_to_pay, 2) }} @if($offer->other_charges > 0) +{{ number_format($offer->other_charges, 2) }} charges @endif @switch($offer->approval) @case('APPROVED') Approved @break @case('REJECTED') Rejected @break @default Pending @endswitch @switch($offer->status) @case('disbursement_pending') NMB Processing @if($offer->nmb_batch_id) Batch: {{ $offer->nmb_batch_id }} @endif @break @case('disbursed') Disbursed @break @case('DISBURSEMENT_FAILED') Failed @if($offer->reason) {{ Str::limit($offer->reason, 30) }} @endif @break @case('FULL_SETTLED') Settled @break @default {{ $offer->status ?: 'New' }} @endswitch Applied: {{ $offer->created_at->format('d/m/Y') }}
Updated: {{ $offer->updated_at->diffForHumans() }}
@if($offer->approval === 'APPROVED' && !in_array($offer->status, ['disbursed', 'disbursement_pending'])) @endif
No loans

No loan applications found

@if($loanOffers->hasPages()) @endif
@endsection @push('styles') @endpush @push('scripts') @endpush