@extends('admin.layouts.app') @section('content')
Overview of loans and payments.
EMI and other payments received
| Date | Client | Loan | Type | Method | Amount | Reference |
|---|---|---|---|---|---|---|
| {{ $payment->paid_at?->format('d-m-Y') ?? '-' }} | {{ $payment->user?->name ?? '-' }} | {{ $payment->loan?->loan_number ?? '-' }} | {{ ucfirst( str_replace( '_', ' ', $payment->payment_type ?? 'general' ) ) }} | {{ ucfirst( str_replace( '_', ' ', $payment->payment_method ?? '-' ) ) }} | {{ $currencySymbol }}{{ number_format( (float) $payment->amount, $decimalPlaces ) }} | {{ $payment->reference_number ?? '-' }} |
| No payments found for the selected filters. | ||||||
Overview of all loans
| Loan Number | Client | Loan Amount | Disbursed Date | Outstanding | Status |
|---|---|---|---|---|---|
| {{ $loan->loan_number ?? '-' }} | {{ $loan->user?->name ?? '-' }} | {{ $currencySymbol }}{{ number_format( (float) $loan->loan_amount, $decimalPlaces ) }} | {{ $loan->disbursed_at?->format('d-m-Y') ?? '-' }} | {{ $currencySymbol }}{{ number_format( (float) $loan->outstanding_amount, $decimalPlaces ) }} | @php $displayLoanStatus = strtolower( $loan->status ?? '' ); @endphp @if( $displayLoanStatus === 'completed' || $displayLoanStatus === 'closed' ) Closed @elseif( $displayLoanStatus === 'active' ) Active @else {{ ucfirst( str_replace( '_', ' ', $loan->status ?? '-' ) ) }} @endif |
| No loans found for the selected filters. | |||||