@extends('layouts.app') @section('title', 'Leave Requests | Institution Axis') @section('sidebar-menu') @include('schooladmin.partials.sidebar') @endsection @section('sidebar-footer')

{{ auth()->user()->school?->name ?? 'Institution Axis' }}

@endsection @section('breadcrumb') Home / Staff / Leave Requests @endsection @section('navbar-right')
5
@endsection @section('content')

Leave Requests @if($pendingCount > 0) {{ $pendingCount }} Pending @endif

Review, approve or reject staff leave applications
@foreach(['success','error'] as $msg) @if(session($msg))
{{ session($msg) }}
@endif @endforeach {{-- Filters --}}
Reset
All Leave Applications
@forelse($leaves as $leave) @empty @endforelse
# Staff Member Leave Type From To Days Status Submitted Actions
{{ $loop->iteration }}
{{ $leave->staffProfile->full_name }}
{{ $leave->leave_type_label }} {{ $leave->start_date->format('d M Y') }} {{ $leave->end_date->format('d M Y') }} {{ $leave->days_requested }}d {{ ucfirst($leave->status) }} {{ $leave->created_at->format('d M Y') }} Review
No leave requests found.
@if($leaves->hasPages()) @endif
@endsection