Loan Details Report

Loan Number: {{ $loan->loan_number }}

Generated on: {{ now()->format('F d, Y \a\t H:i') }}

Loan Information

Client:
{{ $loan->client->first_name }} {{ $loan->client->last_name }} ({{ $loan->client->client_number }})
Loan Number:
{{ $loan->loan_number }}
Loan Amount:
${{ number_format($loan->amount, 2) }}
Outstanding Balance:
${{ number_format($loan->outstanding_balance, 2) }}
Interest Rate:
{{ $loan->interest_rate }}%
Loan Term:
{{ $loan->duration_months }} months
Monthly Payment:
${{ number_format($loan->monthly_payment, 2) }}
Total Repayment:
${{ number_format($loan->total_repayment, 2) }}
Application Date:
{{ $loan->application_date->format('M d, Y') }}
Loan Type:
{{ ucfirst($loan->loan_type) }}
Purpose:
{{ $loan->purpose }}
Status:
{{ ucfirst($loan->status) }}

Payment Summary

Total Paid:
${{ number_format($totalPaid, 2) }}
Remaining Balance:
${{ number_format($remainingBalance, 2) }}
Total Interest:
${{ number_format($loan->total_repayment - $loan->amount, 2) }}
@if($nextDueDate)
Next Payment Due:
{{ $nextDueDate->format('M d, Y') }}
@endif
@php $progress = $loan->total_repayment > 0 ? (($totalPaid) / $loan->total_repayment) * 100 : 0; @endphp
{{ number_format($progress, 1) }}% Complete
@if($loan->repayments->count() > 0)

Payment History

@foreach($loan->repayments->sortByDesc('payment_date') as $repayment) @endforeach
Date Amount Method Reference Status
{{ $repayment->payment_date->format('M d, Y') }} ${{ number_format($repayment->amount, 2) }} {{ ucfirst(str_replace('_', ' ', $repayment->payment_method)) }} {{ $repayment->reference ?: '-' }} {{ ucfirst($repayment->status) }}
@endif @if($loan->collaterals->count() > 0)

Collateral

@foreach($loan->collaterals as $collateral) @endforeach
Type Description Value Condition
{{ $collateral->type }} {{ $collateral->description }} ${{ number_format($collateral->value, 2) }} {{ ucfirst($collateral->condition) }}
@endif @if($loan->guarantors->count() > 0)

Guarantors

@foreach($loan->guarantors as $guarantor) @endforeach
Name Phone Email Relationship ID Number
{{ $guarantor->name }} {{ $guarantor->phone }} {{ $guarantor->email ?: '-' }} {{ $guarantor->relationship }} {{ $guarantor->id_number ?: '-' }}
@endif