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

Records / Bus Detail

@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 Detail
{{-- --}} @if (isset($busDrivers) && count($busDrivers) > 0) @foreach ($busDrivers as $key => $driver) @endforeach @else @endif
S.No Bus Number Driver Name Assistant Name RouteActiveActions
{{ $key + 1 }} {{ $driver->bus_number }} {{ $driver->driver_name }} {{ $driver->attendant_name ?? '-' }} {{ $driver->route_name ?? '-' }}
No records found
@endsection