@extends('layout.main') @section('content')
{{ $loan->loan_code }}
@if($loan->individualClient) {{ $loan->individualClient->client->fullname }} @else Group Loan @endif
{{ $loan->installments }}
{{ formatCurrencyDecimals($loan->installment_amount) }}
{{ $schedules->count() }}
{{ $schedules->where('status', 'paid')->count() }}
{{ $schedules->where('status', 'partial')->count() }}
{{ $schedules->where('status', 'pending')->count() }}
# | Due Date | Amount ({{getCurrencyCode()}}) | Principal Paid ({{getCurrencyCode()}}) | Interest Paid ({{getCurrencyCode()}}) | Balance ({{getCurrencyCode()}}) | Status | Actions |
---|---|---|---|---|---|---|---|
{{ $index + 1 }} | {{ $schedule->date ? $schedule->date->format('d M, Y') : 'N/A' }} | {{ formatAmount($schedule->amount) }} | {{ formatAmount($schedule->principal_paid ?: 0) }} | {{ formatAmount($schedule->interest_paid ?: 0) }} | {{ formatAmount($schedule->balance ?: 0) }} | {{ ucfirst($schedule->status) }} | |
No repayment schedule found This loan doesn't have a repayment schedule yet. |
{{ formatCurrencyDecimals($schedules->sum('amount')) }}
{{ formatCurrencyDecimals($schedules->sum('principal_paid')) }}
{{ formatCurrencyDecimals($schedules->sum('interest_paid')) }}
{{ formatCurrencyDecimals($schedules->sum('balance')) }}