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

Loan Management

Manage all loan activities across the platform

Create Loan

Total Active Loans

{{ number_format($activeLoanAmount, 2) }} ({{ $activeLoanCount }})

Loans Due This Week

{{ number_format($thisWeekDueAmount, 2) }} ({{ $thisWeekDueCount }})

Defaulted Loans

{{ number_format($defaultLoanAmount, 2) }} ({{ $defaultLoanCount }})

Pending Approvals

{{ $pendingApprovalCount }}

@include('admin.loanMgt.partials.filter-option') @include('admin.loanMgt.partials.nav')
@foreach ($loans as $loan) {{-- @include('admin.loanMgt.partials.show-loanId') --}} @endforeach
Loan ID Borrow Name Loan Type Amount Repayment Mode Start Date End Date Status
{{ $loan->loan_no }} {{ $loan->user->fullname }} {{ strtoupper($loan->loanApplication?->loan_type) }} N{{ number_format($loan->principal_amount, 2) }} {{ ucwords($loan->repayment_mode) }} {{ $loan->disbursed_at->format('d, M Y') }} {{ $loan->due_date->format('d, M Y') }} @if ($loan->status == 'active') @elseif ($loan->status == 'completed') @else @endif
@endsection @section('style') @endsection @section('script') @endsection