@extends('layouts.page') @section('title')
Leave Encashment Report {{ $leaves->total() }}
@endsection {{-- MODERN STYLES --}} @section('content')
{!! EasyForm::select( 'department', '', request('department'), AppHelper::options('departments'), ['placeholder' => 'All Departments', 'class' => 'form-select filter-input'] ) !!}
Reset
{{-- ACTIVE FILTERS --}} @if(request()->filled('employee_name') || request()->filled('department'))
@if(request('employee_name')) Employee: {{ request('employee_name') }} @endif @if(request('department')) Department: {{ AppHelper::options('departments')[request('department')] ?? '' }} @endif
@endif
@forelse($leaves as $leave) @php $fmt = fn($v) => fmod($v, 1) == 0.5 ? number_format($v, 1) : number_format($v, 0); @endphp
Warning: Undefined variable $leave in /var/www/html/pruthvi/resources/views/employee/leaves/employee_leave/leave_encashment_report.blade.php on line 183

Warning: Attempt to read property "employee" on null in /var/www/html/pruthvi/resources/views/employee/leaves/employee_leave/leave_encashment_report.blade.php on line 183

Warning: Attempt to read property "employeeLeaves" on null in /var/www/html/pruthvi/resources/views/employee/leaves/employee_leave/leave_encashment_report.blade.php on line 183

Fatal error: Uncaught Error: Call to a member function contains() on null in /var/www/html/pruthvi/resources/views/employee/leaves/employee_leave/leave_encashment_report.blade.php:183 Stack trace: #0 {main} thrown in /var/www/html/pruthvi/resources/views/employee/leaves/employee_leave/leave_encashment_report.blade.php on line 183
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