@extends('admin.layouts.app') @section('page-title', 'Payments') @section('page-description', 'Manage and monitor all payment transactions') @section('content')
View online payments and record manual client payments.
Online and manually recorded payments
| Client | Loan / EMI | Payment ID | Amount | Method | Status | Date | Action |
|---|---|---|---|---|---|---|---|
|
{{ $payment->user->name ?? 'Unknown' }}
{{ $payment->user->mobile ?? ($payment->user->email ?? '—') }}
|
@if($loan)
{{ $loan->loan_number ?? 'Loan #'.$loan->id }}
@if($installment)
EMI #{{ $installment->installment_number }}
@else
Loan balance payment
@endif
@else
—
@endif
|
{{ $payment->payment_id ?? '—' }}
{{ $payment->order_id ?? '' }}
|
₹{{ number_format((float)($payment->amount ?? 0),2) }} | @if($payment->payment_method) {{ str_replace('_',' ', $payment->payment_method) }} @elseif($payment->is_manual) Manual @else Online @endif | @if($payment->status === 'paid') ● Paid @elseif(in_array($payment->status,['pending','created'],true)) ● {{ ucfirst($payment->status) }} @elseif(in_array($payment->status,['failed','cancelled','cancelled_by_user'],true)) ● {{ ucfirst(str_replace('_',' ',$payment->status)) }} @else ● {{ ucfirst($payment->status ?? 'Unknown') }} @endif | {{ $payment->paid_at?->format('d M Y, h:i A') ?? $payment->created_at?->format('d M Y, h:i A') ?? '—' }} | View @if($loan) Loan @endif |