@extends('layouts.studentapp') @section('title', 'Payment History') @include('admin.components.select2css') @section('content')
@foreach ($paymenthistories as $item) @endforeach
# Class Session Group Year Amount Payment Method Paid Date
{{ $loop->iteration }} {{ optional($item->classtype)->name }} {{ optional($item->session)->name }} {{ optional($item->group)->name }} {{ optional($item->classyear)->name }} {{ number_format($item->amount,2) }} {{ optional($item->paymentmethod)->name }} {{ $item->payment_date->format('d-m-Y') }}
Total Amount {{ number_format($paymenthistories->sum('amount'),2) }}
@endsection