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

Review Micro Loan

Back to Approvals
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif

Loan Application Details

Loan ID: {{ $microLoanApplication->id }}

Status: {{ ucfirst($microLoanApplication->status) }}

Application Date: {{ $microLoanApplication->application_date->format('M d, Y') }}

Loan Amount: Rs. {{ number_format($microLoanApplication->loan_amount, 2) }}

Interest Rate: {{ $microLoanApplication->interest_rate }}%

Installments: {{ $microLoanApplication->installments }}

Repayment Method: {{ ucfirst($microLoanApplication->repayment_method) }}

Total Repayment: Rs. {{ number_format($microLoanApplication->total_repayment, 2) }}

Member Information

Name: {{ $microLoanApplication->member->full_name ?? 'N/A' }}

NIC: {{ $microLoanApplication->member->nic ?? 'N/A' }}

Phone: {{ $microLoanApplication->member->phone ?? 'N/A' }}

Address: {{ $microLoanApplication->member->address ?? 'N/A' }}

Date of Birth: {{ $microLoanApplication->member->dob ?? 'N/A' }}

Gender: {{ $microLoanApplication->member->gender ?? 'N/A' }}

Organization Information

Branch: {{ $microLoanApplication->branch->branch_name ?? 'N/A' }}

CBO: {{ $microLoanApplication->cbo->cbo_name ?? 'N/A' }}

Credit Officer: {{ $microLoanApplication->creditOfficer->name ?? 'N/A' }}

Loan Product: {{ $microLoanApplication->loanProduct->name ?? 'N/A' }}

@if($microLoanApplication->microLoanDetails->count() > 0)

Installment Schedule

@foreach($microLoanApplication->microLoanDetails->take(5) as $detail) @endforeach @if($microLoanApplication->microLoanDetails->count() > 5) @endif
# Date Capital Interest Total Status
{{ $detail->installment_number }} {{ $detail->installment_date->format('M d, Y') }} Rs. {{ number_format($detail->capital_due, 2) }} Rs. {{ number_format($detail->interest_due, 2) }} Rs. {{ number_format($detail->total_due, 2) }} {{ ucfirst($detail->status) }}
... and {{ $microLoanApplication->microLoanDetails->count() - 5 }} more installments
@endif
Approval Actions
@if($microLoanApplication->status === 'pending')
@csrf
Approve Loan

@csrf
Reject Loan
@else
@if($microLoanApplication->status === 'approved')
Loan Approved

This loan has been approved and the installment schedule has been created.

@elseif($microLoanApplication->status === 'rejected')
Loan Rejected

Reason: {{ $microLoanApplication->reject_reason }}

@endif
@endif
@endsection