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

Micro Loan Applications

Pending Approvals New Application
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@forelse ($applications as $application) @empty @endforelse
Loan ID Member CBO Branch Loan Amount Product Status Application Date Actions
{{ $application->id }}
{{ $application->member->initials ?? 'N/A' }}
{{ $application->member->nic ?? 'N/A' }}
{{ $application->cbo->cbo_name ?? 'N/A' }} {{ $application->branch->branch_name ?? 'N/A' }} Rs. {{ number_format($application->loan_amount, 2) }}
Total: Rs. {{ number_format($application->total_repayment, 2) }}
{{ $application->loanProduct->name ?? 'N/A' }}
{{ $application->installments }} installments
{{ ucfirst($application->repayment_method) }}
@php $statusColors = [ 'pending' => 'warning', 'approved' => 'success', 'rejected' => 'danger', 'disbursed' => 'info', 'settled' => 'secondary' ]; $color = $statusColors[$application->status] ?? 'secondary'; @endphp {{ ucfirst($application->status) }} {{ $application->application_date->format('M d, Y') }}
Preview @if($application->status === 'pending') Review @endif

No micro loan applications found.

Create First Application
@if($applications->count() > 0)

Showing {{ $applications->count() }} applications

@endif
@endsection