@php use Illuminate\Support\Facades\Storage; @endphp @extends('layouts.app') @section('title', 'Loan Repayment Statement') @section('page-title', 'Loan Repayment Statement') @section('content')
Generated on: {{ now()->format('d M Y, h:i A') }}
| Loan Number: | {{ $loan->loan_number }} |
| Customer Name: | {{ $loan->customer->name }} |
| Customer Code: | {{ $loan->customer->customer_code }} |
| Phone: | {{ $loan->customer->phone }} |
| Scheme: | {{ $loan->loanScheme?->name ?? $loan->scheme?->name ?? 'N/A' }} |
| Principal Amount: | ₹{{ number_format($loan->principal_amount, 2) }} |
| Interest Rate: | {{ $loan->interest_rate }}{{ ($loan->loanScheme?->interest_type ?? $loan->scheme?->interest_type) === 'flat' ? ' (Flat)' : '%' }} |
| Interest Amount: | ₹{{ number_format($loan->interest_amount, 2) }} |
| Processing Fee: | ₹{{ number_format($loan->processing_fee, 2) }} |
| Insurance Fee: | ₹{{ number_format($loan->insurance_fee, 2) }} |
| Other Fee: | ₹{{ number_format($loan->other_fee, 2) }} |
| Total Loan Amount: | ₹{{ number_format($loan->total_amount, 2) }} |
| Duration: | {{ $loan->duration_value }} {{ ucfirst($loan->duration_type) }} |
| Disbursement Date: | {{ $loan->disbursement_date->format('d M Y') }} |
| Maturity Date: | {{ $loan->maturity_date->format('d M Y') }} |
| # | Repayment # | Payment Date | Due Date | Total Amount | Principal | Interest | Penalty | Payment Method | Status |
|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $repayment->repayment_number }} | {{ $repayment->payment_date->format('d M Y') }} | {{ $repayment->due_date->format('d M Y') }} | ₹{{ number_format($repayment->amount, 2) }} | ₹{{ number_format($repayment->principal_amount, 2) }} | ₹{{ number_format($repayment->interest_amount, 2) }} | ₹{{ number_format($repayment->penalty_amount, 2) }} | {{ ucfirst(str_replace('_', ' ', $repayment->payment_method)) }} | {{ ucfirst(str_replace('_', ' ', $repayment->status)) }} |
|
No repayments recorded yet. |
|||||||||
| Total: | ₹{{ number_format($totalPaid, 2) }} | ₹{{ number_format($totalPrincipal, 2) }} | ₹{{ number_format($totalInterest, 2) }} | ₹{{ number_format($totalPenalty, 2) }} | |||||
Loan Status: {{ ucfirst($loan->status) }}
Installment Amount: ₹{{ number_format($loan->monthly_installment, 2) }}
This is a computer-generated statement.