@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; $isUniversity = $tenant->institution_type === 'university'; $statusColors = ['pending' => 'amber', 'under_review' => 'brand', 'approved' => 'green', 'rejected' => 'red', 'cancelled' => 'slate']; $navGroups = \App\Support\Navigation\StudentNav::groups('leave-requests'); @endphp
@forelse($requests as $request) @empty @endforelse
Dates Days Reason Status
{{ $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() }}
No leave requests yet.
@csrf

day(s)