@extends('layouts.app') @section('title', 'Leave Management') @section('content')

Employees & HR

Leave management

Balance-aware requests, configurable approval levels, attachments and automatic attendance connection.

@if(auth()->check() && auth()->user()->hasPermission('leave.approve'))@endifAttendance

Pending approval

{{ $stats['pending'] }}

Approved this year

{{ $stats['approved'] }}

On leave today

{{ $stats['on_leave_today'] }}

@if(auth()->check() && auth()->user()->hasPermission('leave.approve'))

New leave type

@csrf
@endif @if(auth()->check() && auth()->user()->hasPermission('leave.create'))

Submit leave request

@if($leaveTypes->isEmpty())
Create at least one active leave type before submitting a request.
@else
@csrf
@endif
@endif
@forelse($requests as $leave) @empty@endforelse
RequestEmployeeLeave typeDatesDaysStatusWorkflow action
{{ $leave->request_number }}{{ $leave->created_at->format('d M Y H:i') }}{{ $leave->employee->full_name }}{{ $leave->employee->branch?->name }}{{ $leave->leaveType->name }}{{ $leave->leaveType->is_paid ? 'Paid' : 'Unpaid' }}{{ $leave->from_date->format('d M Y') }}to {{ $leave->to_date->format('d M Y') }}{{ $leave->total_days }}{{ str_replace('_',' ',$leave->status) }}@if(in_array($leave->status,['submitted','manager_approved'])) @if(auth()->check() && auth()->user()->hasPermission('leave.approve'))
@csrf
@endif @elseif($leave->status==='approved')
@csrf
@elseClosed@endif
No leave requestsSubmitted requests and approval progress will appear here.
{{ $requests->links() }}
@if($balances->isNotEmpty())

{{ now()->year }} leave balances

@foreach($balances as $balance)

{{ $balance->employee->full_name }}

{{ $balance->leaveType->name }}

{{ $balance->available }}

Opening {{ $balance->opening_balance }} · Used {{ $balance->used }} · Adjusted {{ $balance->adjusted }}

@endforeach
@endif
@endsection