@extends('layouts.app') @section('title', 'Loan Details') @section('page-title', 'Loan Details') @section('content')
Loan Number: {{ $loan->loan_number }}
Customer: {{ $loan->customer->name }}
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) }}
Duration: {{ $loan->duration_value }} {{ ucfirst($loan->duration_type) }}
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 Amount: ₹{{ number_format($loan->total_amount, 2) }}
Paid Amount: ₹{{ number_format($loan->paid_amount, 2) }}
Remaining Amount: ₹{{ number_format($loan->remaining_amount, 2) }}
Installment Amount: ₹{{ number_format($loan->monthly_installment, 2) }}
Disbursement Date: {{ $loan->disbursement_date->format('d M Y') }}
Maturity Date: {{ $loan->maturity_date->format('d M Y') }}
Status: {{ ucfirst($loan->status) }}
| Date | Amount | Status |
|---|---|---|
| {{ $penalty->penalty_date->format('d M Y') }} | ₹{{ number_format($penalty->amount, 2) }} | {{ ucfirst($penalty->status) }} |
| No penalties | ||