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

Pending Disbursements

Approved loans awaiting disbursement processing

Pending
{{ $stats['pending'] ?? 0 }}
Awaiting disbursement
Total Amount
{{ number_format($stats['total_amount'] ?? 0, 0) }}
TZS
Today's Queue
{{ $stats['today'] ?? 0 }}
Approved today
Urgent
{{ $stats['urgent'] ?? 0 }}
>3 days waiting

Approved Loans - Pending Disbursement

Showing {{ $loanOffers->count() }} of {{ $loanOffers->total() ?? 0 }} records

@forelse ($loanOffers as $loan) @php $daysWaiting = $loan->updated_at->diffInDays(now()); $isUrgent = $daysWaiting > 3; @endphp @empty @endforelse
Employee Take Home Processing Fee Insurance Bank Account Days Date Actions
{{ $loan->first_name ?? '' }} {{ $loan->last_name ?? '' }} @if($loan->loan_type === 'topup' || $loan->offer_type === 'TOP_UP') TOPUP @else NEW @endif
ID: {{ $loan->check_number ?? '' }} @if($loan->loan_type === 'topup' && $loan->topupAsNew && $loan->topupAsNew->original_loan_number) • Settles: {{ $loan->topupAsNew->original_loan_number }} @endif
{{ number_format($loan->take_home_amount ?? 0, 0) }}
TZS
{{ number_format($loan->processing_fee ?? 0, 0) }}
TZS
{{ number_format($loan->insurance ?? 0, 0) }}
TZS
@if($loan->bank) {{ $loan->bank->short_name ?: $loan->bank->name }} @elseif($loan->swift_code) {{ $loan->swift_code }} @else - @endif {{ $loan->bank_account_number ?? '-' }} @if($isUrgent) {{ $daysWaiting }} @else {{ $daysWaiting }} @endif
{{ $loan->updated_at->format('d/m/Y') }}
{{ $loan->updated_at->format('H:i') }}
No Pending Disbursements

All approved loans have been processed.

@if($loanOffers->hasPages()) @endif
@include('employee_loan.modals.disbursement-modal') @include('employee_loan.modals.reject-disbursement-modal') @endsection {{-- Include Modals --}} @include('employee_loan.partials.loan-details-modal') @include('employee_loan.modals.disbursement-modal') @include('employee_loan.modals.reject-disbursement-modal') @include('employee_loan.modals.batch-disbursement-modal') @push('scripts') @endpush @push('scripts') @endpush