@extends('layouts.admin') @section('title', 'Loans') @section('content')

Loans

Loan applications, approvals, and portfolio.

New Application
@forelse($loans as $loan) @php $progress = $loan->durationProgressPercent(); $daysLeft = $loan->daysRemaining(); @endphp @empty @endforelse
Loan No. Customer Product Principal Outstanding Duration Status
{{ $loan->loan_no }} {{ $loan->customer->display_name ?? '—' }} {{ $loan->loanProduct->name ?? '—' }} {{ money($loan->principal) }} {{ money($loan->outstanding_principal) }}
{{ $loan->tenor_months }} mo @if($daysLeft !== null) · {{ $daysLeft < 0 ? abs($daysLeft).'d overdue' : $daysLeft.'d left' }} @endif
View
No loans found.
@if($loans->hasPages())
{{ $loans->links() }}
@endif
@endsection