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

{{ $title }}

@include('dashboard.admin.user.partials.account_options_and_status')
@slot('header') {{ $title }} @endslot

Requested Amount: {{ currency($loan->user->currency) }}{{ formatAmount($loan->amount) }}

Duration: {{ $loan->duration }} months

Facility: {{ $loan->facility }}

Purpose: {{ $loan->purpose }}

Monthly Income: {{ $loan->monthly_income }}

Status: {{ $loan->status->label() }}

@if ($loan->isRejected())

Remarks: {{ $loan->remarks }}

@endif @if ($loan->isApproved() || $loan->isDisbursed())

Approved Amount: {{ currency($user->currency) }}{{ formatAmount($loan->approved_amount) }}

@endif @if ($loan->isApproved() || $loan->isDisbursed())

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

@endif @if ($loan->isApproved() || $loan->isDisbursed())

Total Payable: {{ currency($user->currency) }}{{ formatAmount($loan->total_payable) }}

@endif @if ($loan->isDisbursed())

Disbursed At: {{ formatDate($loan->disbursed_at) }}

@endif
@if ($loan->loanRepayment) @foreach ($loan->loanRepayment as $loanRepayment)
Loan Repayment Status
Amount: {{ currency($loan->user->currency) }}{{ formatAmount($loanRepayment->amount) }}
Status: {{ $loanRepayment->status->label() }}
Repaid At: {{ $loanRepayment->repaid_at ? formatDate($loanRepayment->repaid_at) : 'N/A' }}
@endforeach @endif
@if ($loan->isPending())
@csrf @method('PATCH')
@csrf @endif @if ($loan->isApproved())
@csrf @endif
@endsection