@include('partials.head') {{-- Brand: bus icon + app name + sub-label --}}
{{ config('app.name', 'PayRide') }} School Portal
@if(Qs::userIsSuperAdmin()) {{ __('Dashboard') }} {{ __('School Registrations') }} {{ __('Registered Schools') }} {{ __('All Invoices') }} {{ __('Manage Payments') }} {{ __('Manage Proofs') }} {{ __('Bad Debts') }} {{ __('Global Settings') }} @elseif(auth()->user()->role !== 'super_admin') {{-- Active tenant badge --}} {{-- Active school badge --}} @if(session('school'))
{{ session('school') }}
@endif {{ __('Dashboard') }} @if(auth()->user() && (auth()->user()->role === 'admin' || auth()->user()->role === 'super_admin')) @if(Route::has('classes.index')) {{ __('Classes') }} @endif @if(Route::has('destinations.index')) {{ __('Destinations') }} @endif @if(Route::has('students.index')) {{ __('Students') }} @endif @endif @if(Route::has('payments.index')) {{ __('Payments') }} @endif @if(auth()->user() && (auth()->user()->role === 'admin' || auth()->user()->role === 'super_admin')) @php $isReportsActive = request()->routeIs('reports.*'); @endphp {{ __('Reports') }} @if(Route::has('reports.by-class')) {{ __('By Class') }} @endif @if(Route::has('reports.by-destination')) {{ __('By Destination') }} @endif @if(Route::has('settings.index')) {{ __('Settings') }} @endif @if(Route::has('users.index')) {{ __('Users') }} @endif @endif {{ __('Repository') }} {{ __('Documentation') }}
@php $userName = session('user_name', 'User'); $userEmail = session('user_email', ''); $initials = collect(explode(' ', $userName))->take(2)->map(fn($word) => substr($word, 0, 1))->implode(''); @endphp
{{ $userName }} {{ $userEmail }}
{{ __('Settings') }}
@csrf {{ __('Log out') }}
{{ $slot }} @persist('toast') @endpersist {{ $scripts ?? '' }} @fluxScripts