@extends('admin.admin_dashboard') @section('customcss') @endsection @section('admin')
{{-- Page Title --}} {{-- Filter Card --}}
Filter Report
{{-- Report Card --}} @if($assignments->count() > 0) @php $totalMonthlyFee = 0; $totalSessionFee = 0; @endphp
Transport Report
{{-- Print Button inside printable area --}}
@foreach($assignments as $key => $assign) @php $monthlyFee = (int)$assign->monthly_fee; $sessionFee = $monthlyFee * $totalMonths; $totalMonthlyFee += $monthlyFee; $totalSessionFee += $sessionFee; @endphp @endforeach {{-- Total Row --}}
SL Student Name Student ID Car Name Monthly Fee Total Session Fee
{{ $key+1 }} {{ $assign->student->student_name_english }} {{ $assign->student->classRegistration->first()->class_roll ?? 'N/A' }} {{ $assign->car->car_name }} - {{ $assign->car->car_number }} {{ number_format($monthlyFee,0) }} {{ number_format($sessionFee,0) }}
Total {{ number_format($totalMonthlyFee,0) }} {{ number_format($totalSessionFee,0) }}
@elseif(request()->has('session_id')) {{-- No Data Found Message --}}
No transport data found for the selected filters.

Please try different filter options.

@endif
@endsection @section('customjs') @endsection