@extends('layouts.admin') {{ config('app.name', 'Laravel') }} | Admin | Transport Fee @section('main-content')
@if (Session::has('success')) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Records / Fee Request

@php $yearRange = session('year_range'); // Example: "2023-2024" $currentDate = now(); [$startYear, $endYear] = explode('-', $yearRange); $startDate = \Carbon\Carbon::create($startYear, 4, 1, 0, 0, 0); // April 1st $endDate = \Carbon\Carbon::create($endYear, 3, 31, 23, 59, 59); // March 31st @endphp @if ($currentDate->between($startDate, $endDate)) @endif
Fee Request
{{-- --}} @if (isset($invoices) && count($invoices) != 0) @foreach ($invoices as $key => $invoice) @if (!isset($invoice->student)) @continue; @endif {{-- --}} @endforeach @else @endif
S.No Student Name Session Class Total Fee Fee Paid Pending Fee Late Fee statusNoteCreated Date Due Date Actions
{{ $key + 1 }} {{ $invoice->student->first_name }} {{ $invoice->student->last_name }} {{ $invoice->session }} {{ $invoice->class_name }} {{ $invoice->total_fee }} {{ $invoice->amountpaid }} {{ $invoice->remaining_fee }} {{ $invoice->late_fee }} {{ $invoice->payment_status }} @if ($invoice->note) {{ $invoice->note }} @else N.A. @endif {{ $invoice->created_at->format('d-m-Y') }} @if ($invoice->due_date) {{ \Carbon\Carbon::parse($invoice->due_date)->format('d-m-Y') }} @else No due date @endif
No Record found
@endsection