@if(getLogo())
@endif
{{ getApplicationName() }}
Payment Receipt
Payment Information
Receipt No:
{{ $payment->slug ?? 'N/A' }}
Payment Date:
{{ formatDate($payment->deposit_date) }}
Amount Paid:
{{ formatCurrencyDecimals($payment->amount) }}
Processed By:
{{ $payment->createdBy->name ?? 'System' }}
Loan Information
Loan Code:
{{ $loan->loan_code }}
Loan Amount:
{{ formatCurrencyDecimals($loan->loan_amount) }}
@if($loan->individualClient)
Client:
{{ $loan->individualClient->client->fullname ?? 'N/A' }}
Client Phone:
{{ $loan->individualClient->client->phone ?? 'N/A' }}
@endif
Branch:
{{ $loan->branch->name ?? 'N/A' }}
Total Amount Paid:
{{ formatCurrencyDecimals($payment->amount) }}
Balance Information
@php
$totalDeposits = $loan->loanDeposits->sum('amount');
$remainingBalance = $loan->loan_amount - $totalDeposits;
@endphp
Total Payments Made:
{{ formatCurrencyDecimals($totalDeposits) }}
Remaining Balance:
{{ formatCurrencyDecimals(max(0, $remainingBalance)) }}