@extends('layouts.portal') @section('header_title', 'Leave Management') @section('content')
Manage and track your time off.
Annual Balance
Sick Leaves
Unpaid / Casual
| Employee | Duration | Type & Reason | Status | Actions |
|---|---|---|---|---|
|
{{ $leave->user->name }} {{ $leave->user->designation }} |
{{ $leave->start_date->format('M d') }} - {{ $leave->end_date->format('M d') }} {{ $leave->start_date->diffInDays($leave->end_date) + 1 }} Days |
{{ $leave->type }}
{{ $leave->reason }} |
@if($leave->status == 'pending') Pending Review @elseif($leave->status == 'approved') Approved @else Rejected @endif |
@if($leave->status == 'pending' && (auth()->user()->isAdmin() || auth()->user()->isManager()))
|
No leave history found.