@if(session('success'))
{{ session('success') }}
@endif
Loan #{{ $loan->id }}
Applicant: {{ $loan->user?->name ?? 'N/A' }}
Status: {{ ucfirst($loan->status) }}
Amount: ৳{{ number_format($loan->loan_amount) }}
Period: {{ $loan->loan_period }} months
Interest: {{ number_format($loan->interest_rate,2) }}%
Total: ৳{{ number_format($loan->estimated_total,2) }}
@if($loan->image_path)
Document:
@endif @if($loan->status === 'pending')
@csrf
@csrf
@endif
@if($loan->repayments->count())
Repayment Schedule
@foreach($loan->repayments as $r)
{{ $r->due_date->format('d M Y') }}
৳{{ number_format($r->amount,2) }}
{{ ucfirst($r->status) }} @if($r->status === 'due')
@csrf
@endif
@endforeach
@endif