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
| S.No |
Student Name |
Session |
Class |
Total Fee |
Fee Paid |
Pending Fee |
Late Fee |
status |
{{-- Note | --}}
Created Date |
Due Date |
Actions |
@if (isset($invoices) && count($invoices) != 0)
@foreach ($invoices as $key => $invoice)
@if (!isset($invoice->student))
@continue;
@endif
| {{ $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
|
|
@endforeach
@else
|
|
No Record found |
|
@endif
@endsection