@extends('layouts.app') @section('title', 'Leave Balance Report') @section('content')
| Employee | Department | Leave Type | Total Quota | Used Days | Remaining Days | Usage % | Status |
|---|---|---|---|---|---|---|---|
|
{{ strtoupper(substr($employeeBalance['employee']->name ?? 'N', 0, 1)) }}
{{ $employeeBalance['employee']->name ?? 'Unknown' }}
|
{{ $employeeBalance['employee']->contract?->position?->department?->department_name ?? '-' }} | @endif{{ $balance['leave_type'] }} | {{ number_format($balance['total_quota'], 1) }} days | {{ number_format($balance['used_days'], 1) }} days | {{ number_format($balance['remaining_days'], 1) }} days |
|
@if($balance['remaining_days'] == 0) Exhausted @elseif($balance['remaining_days'] <= 2) Low @elseif($balance['used_days'] == 0) Unused @else Available @endif |
| No employee records found | |||||||