@extends('layouts.app') @section('title', 'Loan Approval') @section('content') @use('App\Enums\AdminRoles')

Loan Management

Manage all loan activities across the platform

Pending Cooperative Loans

{{ number_format($cooperativeLoanAmount, 2) }} ({{ $cooperativeLoanCount }})

Pending Direct Loan

{{ number_format($directLoanAmount, 2) }} ({{ $directLoanCount }})

Pending Esusu Loan

{{ number_format($esusuLoanAmount, 2) }} ({{ $esusuLoanCount }})

@include('admin.loanMgt.partials.nav')
@foreach ($pendingLoans as $pendingLoan) @include('admin.loanMgt.partials.pending-loan-modal') @endforeach
Loan ID Borrow Name Loan Type Amount Branch Created By Date Created Actions
{{ $pendingLoan->reference }} {{ $pendingLoan->user->fullname }} {{ strtoupper($pendingLoan->loan_type) }} N{{ number_format($pendingLoan->amount, 2) }} {{ ucwords($pendingLoan->user?->branch?->name) }} {{ ucwords($pendingLoan->requestedBy->fullname) }} @if ($pendingLoan->requestedBy->user_type == 'admin') @endif {{ $pendingLoan->created_at->format('d, M Y') }}
@endsection @section('content') @endsection