Records / Bus Route
@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
Bus Route
| S.No |
Route Name |
Student List |
Actions |
@if (isset($routes) && count($routes) > 0)
@foreach ($routes as $key => $route)
| {{ $key + 1 }} |
{{ $route->route_name }} |
|
|
@endforeach
@else
| No records found |
@endif