@extends('layouts.page') @section('title')
| Employee | Encashment Leaves | Total ELs | Remaining ELs | Created On | Status |
|---|---|---|---|---|---|
| {{-- Name always clickable (first leave) --}} {{ $leave->employee->name ?? 'N/A' }} {{-- Eye only if more than one leave --}} @if($leave->employee->employeeLeaves->count() > 1) @endif | @php $fmt = fn($v) => fmod($v, 1) == 0.5 ? number_format($v, 1) : number_format($v, 0); @endphp