Hostel Payment History

Date: {{ Date('d-m-Y'); }}

@foreach ($paymenthistories as $item) @endforeach
# Hostel UID Name Payment Method Receipt Amount Payment Date Status
{{ $loop->iteration }} {{ optional($item->hostelstudent)->hostel_uid }} {{ optional($item->hostelstudent->studentuser)->name }} {{ optional($item->paymentmethod)->name }} {{ $item->receipt_no }} {{ $item->amount }} {{ $item->payment_date }} {{ $item->status }}
Total {{ $paymenthistories->sum('amount') }}