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

{{ $title }}

{{--
@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->isDisbursed() && !$latestLoanRepayment->isPaid()) Repay ({{ currency($loan->user->currency) }}{{ formatAmount($loan->total_payable) }}) @endif
--}}
{{-- ── CARD HEADER ── --}}

Loan Application

{{ $title }}
{{ $loan->status->label() }}
{{-- ── AMOUNT HERO ── --}}

Requested Amount

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

{{ $loan->duration }} months {{ $loan->facility }}
{{-- ── APPLICATION DETAILS ── --}}

Application Details

Purpose

{{ $loan->purpose }}

Monthly Income

{{ $loan->monthly_income }}
@if ($loan->isRejected() && $loan->remarks)

Rejection Remarks

{{ $loan->remarks }}
@endif
{{-- ── APPROVED / DISBURSED DETAILS ── --}} @if ($loan->isApproved() || $loan->isDisbursed())

Approval Details

Approved Amount

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

Interest Rate

{{ $loan->interest_rate }}%

Total Payable

{{ currency($user->currency) }}{{ formatAmount($loan->total_payable) }}
@if ($loan->isDisbursed())

Disbursed At

{{ formatDate($loan->disbursed_at) }}
@endif
@endif {{-- ── REPAYMENT HISTORY ── --}} @if ($loan->loanRepayment && count($loan->loanRepayment))

Repayment History

@foreach ($loan->loanRepayment as $loanRepayment)

Amount

{{ currency($loan->user->currency) }}{{ formatAmount($loanRepayment->amount) }}

Repaid At

{{ $loanRepayment->repaid_at ? formatDate($loanRepayment->repaid_at) : 'N/A' }}
{{ $loanRepayment->status->label() }}
@endforeach
@endif {{-- ── REJECTION NOTICE ── --}} @if ($loan->isRejected())

This loan application was rejected. Please review the remarks above or contact support for more information.

@endif {{-- ── ACTIONS ── --}}
@if ($loan->isDisbursed() && !$latestLoanRepayment->isPaid()) Repay ({{ currency($loan->user->currency) }}{{ formatAmount($loan->total_payable) }}) @endif
{{-- /card-body --}}
{{-- /card --}}
@endsection