@extends('layout.main') @section('content')
{{ $loan->loan_code }}
Make sure there is enough funds on the funds account. Disbursing the loan will deduct
the loan principal amount from this account.
Are you sure you want to disburse this loan?
{{ formatAmount($loan->installments) }}
{{ date('d M, Y (D)', strtotime($loan->first_installment_date)) }}
{{ $loan->disbursement_on?->format('l, d F Y') }}
{{ $loan->comment }}
This loan doesn't have any files yet.
@if (Auth::user()->can('file-create')) Upload Files @endif{{ $loan->collaterals->count() }}
{{ formatCurrencyDecimals($loan->collaterals->sum('estimated_value')) }}
This loan doesn't have any collateral items yet.
@if (Auth::user()->can('loans-create')) Add Collateral @endifDate | Type | Amount ({{ getCurrencyCode() }}) | Status |
---|---|---|---|
{{ $penalty->created_at?->format('d M, Y') }} | {{ $penalty->type ?? 'Late Payment' }} | {{ formatAmount($penalty->amount) }} | {{ ucfirst($penalty->status ?? 'pending') }} |
{{ formatCurrencyDecimals( $loan->charges->sum(function ($charge) { return $charge->pivot->amount; }), ) }}
{{ formatCurrencyDecimals($loan->penalties?->sum('amount') ?? 0) }}
{{ formatCurrencyDecimals($totalCharges) }}
This loan doesn't have any charges or fees yet.
{{ $loan->repaymentSchedules->count() }}
{{ $loan->repaymentSchedules->where('status', 'paid')->count() }}
{{ $loan->repaymentSchedules->where('status', 'partial')->count() }}
{{ $loan->repaymentSchedules->where('status', 'pending')->count() }}
This loan doesn't have a repayment schedule yet.