@extends('layouts.main') @section('title', 'Leave') @section('css') @php $dashboardCssPath = public_path('assets/css/dashboard.css'); $dashboardCssVersion = file_exists($dashboardCssPath) ? filemtime($dashboardCssPath) : time(); @endphp @endsection @section('navbarTitle', 'Overview') @section('content') @include('admin_attendance.layout.navbar')
Leave
Pending
{{ $leaveOverviewStats['pending'] }} request
Rejected
{{ $leaveOverviewStats['rejected'] }} request
Approved
{{ $leaveOverviewStats['approved'] }} request
This Week
{{ $leaveOverviewStats['this_week'] }} request
Next Week
{{ $leaveOverviewStats['next_week'] }} request
Annual LV
{{ $leaveOverviewStats['annual'] }} request
Sick LV
{{ $leaveOverviewStats['sick'] }} request
Special LV
{{ $leaveOverviewStats['special'] }} request
Unpaid LV
{{ $leaveOverviewStats['unpaid'] }} request

Pending (High Priority)

No Date Name Type Action

Status : Approved

No Date Name Type Action
@forelse ($leaveGridPositionGroups as $positionIndex => $positionGroup) @php $headingId = 'leavePositionHeading'.$positionIndex; $collapseId = 'leavePositionCollapse'.$positionIndex; $isFirstPosition = $positionIndex === 0; @endphp

@foreach ($positionGroup['employees'] as $gridEmployee)
{{ $gridEmployee['initial'] }}

{{ $gridEmployee['name'] }}

{{ $gridEmployee['department_name'] }}

Annual Leave
{{ $gridEmployee['annual_days_label'] }}
@if ($gridEmployee['annual_start_label']) {{ $gridEmployee['annual_start_label'] }} @endif
Sick Leave
{{ $gridEmployee['sick_days_label'] }}
Special Leave
{{ $gridEmployee['special_days_label'] }}
Unpaid Leave
{{ $gridEmployee['unpaid_days_label'] }}
@endforeach
@empty
No active employee data available.
@endforelse
@forelse ($leavePendingCards as $leavePendingCard)
{{ $leavePendingCard['initial'] }}
{{ $leavePendingCard['name'] }}
{{ $leavePendingCard['leave_type'] }}

{{ $leavePendingCard['reason'] }}

Date :
{{ $leavePendingCard['date_label'] }}
PIC / Supervisor :
{{ $leavePendingCard['supervisor_name'] }}
@empty
No pending leave request data available.
@endforelse
@endsection @section('script') @php $dashboardJsPath = public_path('assets/js/dashboard.js'); $dashboardJsVersion = file_exists($dashboardJsPath) ? filemtime($dashboardJsPath) : time(); $dataTablesJsPath = public_path('assets/vendor/datatables/js/jquery.dataTables.bundle.min.js'); $dataTablesJsVersion = file_exists($dataTablesJsPath) ? filemtime($dataTablesJsPath) : time(); @endphp @endsection