@extends('layouts.app') @section('title', 'Leave Balance') @section('content')
Total Allocated Days
Total Available Days
Total Used Days
| Employee | Department | Leave Type | Total Days | Used Days | Available Days | Usage % | Status |
|---|---|---|---|---|---|---|---|
|
{{ $balance->user->full_name }}
{{ $balance->user->email }}
|
{{ $balance->user->departments->first()?->name ?? 'N/A' }} | {{ $balance->leaveType->name }} | {{ $balance->total_days }} | {{ $balance->used_days }} | {{ $balance->remaining_days }} |
|
@if($balance->remaining_days <= 0) Exhausted @elseif($balance->remaining_days <= 2) Low @else Available @endif |
|
No leave balance data found. |
|||||||