@php $clientName = $client->client_name ?? '—'; $clientUserid = $client->userid ?? '—'; $clientPhone = $client->clientsinfo->contact_no ?? '—'; @endphp @forelse ($payments as $p) @php $payData = [ 'id' => $p->id, 'mr' => $p->money_receipt_number, 'date' => \Carbon\Carbon::parse($p->created_at)->format('d M Y'), 'time' => \Carbon\Carbon::parse($p->created_at)->format('h:i A'), 'desc' => $p->description, 'amount' => number_format($p->paid_amount, 2), 'discount' => number_format($p->discount_amount, 2), 'type' => $p->income->name ?? 'Payment', 'enteredBy' => $p->user->name ?? 'Online', 'collectedBy' => $p->employee->name ?? '', 'clientName' => $clientName, 'clientId' => $clientUserid, 'clientPhone' => $clientPhone, ]; @endphp @empty @endforelse @if($payments->isNotEmpty()) @endif
# Date & Reference Description Handled By Type Amount Actions
{{ \Carbon\Carbon::parse($p->created_at)->format('d M Y') }}
{{ \Carbon\Carbon::parse($p->created_at)->format('h:i A') }}
{{ $p->money_receipt_number }}
@if ($p->extend_to_date)
{{ $p->extend_from_date ? \Carbon\Carbon::parse($p->extend_from_date)->format('d M Y') : 'N/A' }} → {{ \Carbon\Carbon::parse($p->extend_to_date)->format('d M Y') }}
@endif
{{ $p->description }}
@if(isset($p->user) && $p->user->name === 'Bkash-Webhook')
{{ $p->customerMsisdn ?? '' }}
@endif
E {{ $p->user->name ?? 'Online' }}
@if($p->employee)
C {{ $p->employee->name }}
@endif
{{ $p->income->name ?? 'Payment' }}
{{ number_format($p->paid_amount, 2) }}
@if($p->discount_amount > 0)
Disc: {{ number_format($p->discount_amount, 2) }}
@endif
@if(checkSettings('print-invoice') == 'enable') @endif
No payment records found.
{{ number_format($payments->sum('paid_amount'), 2) }} TK
{{-- Load jsPDF once --}} @once @endonce