From Date: {{ date('d-M-Y', strtotime($fromDate)) }}    To Date: {{ date('d-M-Y', strtotime($toDate)) }}
@php $total = 0; @endphp @foreach($data as $index => $row) @php $total += $row->AmountPaid; @endphp @endforeach
Sr # Account Name Amount Paid
{{ $index + 1 }} {{ $row->AccountName }} {{ number_format($row->AmountPaid, 2) }}
Total {{ number_format($total, 2) }}