@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $navGroups = \App\Support\Navigation\TeacherNav::groups('student-leave-requests'); $statusColors = ['pending' => 'amber', 'under_review' => 'brand', 'approved' => 'green', 'rejected' => 'red', 'cancelled' => 'slate']; @endphp
@forelse($requests as $request) @empty @endforelse
Student Section Dates Days Reason Status
{{ $request->student?->fullName() ?? '—' }} {{ $request->student?->section ? $request->student->section->schoolClass->name.' '.$request->student->section->name : '—' }} {{ $request->start_date->format('M j') }} – {{ $request->end_date->format('M j, Y') }} {{ (float) $request->days == (int) $request->days ? (int) $request->days : $request->days }} @if($request->isHalfDay()) ({{ ucfirst($request->half_day_period) }}) @endif {{ $request->reason ?: '—' }} {{ $request->statusLabel() }} @if(in_array($request->status, ['pending', 'under_review'], true)) @if($request->status === 'pending')
@csrf
@endif
@csrf
@csrf
@endif
No student leave requests yet.