@extends('layouts.portal') @section('title', 'Loan '.$loan->loan_no) @section('content')

{{ $loan->loan_no }}

{{ $loan->loanProduct->name ?? 'Loan' }}

Back to loans
{{ money($loan->principal) }}
{{ money($loan->outstanding_principal) }}
{{ $loan->interest_rate }}%
{{ $loan->tenor_months }} months
{{ $loan->next_due_date?->format('d M Y') ?? '—' }}
{{ $loan->disbursement_date?->format('d M Y') ?? '—' }}
{{ $loan->maturity_date?->format('d M Y') ?? '—' }}

Your loan timeline & interest

@if($loan->schedules->isNotEmpty())

Repayment Schedule

@foreach($loan->schedules as $schedule) @endforeach
# Due Date Principal Interest Total Due Status
{{ $schedule->installment_no }} {{ $schedule->due_date?->format('d M Y') ?? '—' }} {{ money($schedule->principal_due) }} {{ money($schedule->interest_due) }} {{ money($schedule->total_due) }}
@endif @if($loan->repayments->isNotEmpty())

Repayment History

@foreach($loan->repayments as $rep) @endforeach
DateAmountReference
{{ $rep->payment_date?->format('d M Y') ?? $rep->created_at->format('d M Y') }} {{ money($rep->amount) }} {{ $rep->reference ?? '—' }}
@endif @endsection