@php $totalAmount = 0; @endphp @forelse ($payments as $index => $payment) @php $totalAmount += $payment->amount; @endphp @empty @endforelse
SL Date File No File Name Amount
{{ $index + 1 }} {{ \Carbon\Carbon::parse($payment->payment_date)->format('d-m-Y') }} {{ $payment->file->file_unique_id ?? '-' }} {{ $payment->file->file_name ?? '-' }} {{ number_format($payment->amount, 2) }}
No records found
Total Amount {{ number_format($totalAmount, 2) }}