@extends('staff.layout') @section('content')

Apply Leave

Leave Report
Leave This Month
Available Leave
{{ $remainingLeaveDaysPerMonth }}
Taken Leave
{{ $usedLeaveDaysPerMonth }}
Monthly limit: {{ $totalLeaveDaysPerMonth }} days @if($usedLeaveDaysPerMonth > $totalLeaveDaysPerMonth) Monthly leave limit exceeded. Extra leave days will be deducted from your salary. @endif
Leave This Year
Available Leave
{{ $totalLeaveDaysPerYear }}
Remaining Leave
{{ $remainingLeaveDaysPerYear }}
Yearly limit: {{ $totalLeaveDaysPerYear }} days
Leave Request

Submit your leave request by providing the required details.

@csrf
@error('from_date') {{ $message }} @enderror
@error('to_date') {{ $message }} @enderror
@error('reason') {{ $message }} @enderror
@endsection