@include ('layouts.header')
Past Location Back
Extraction for Exit Form @foreach($employees as $key => $employee) @php $dj = $employee->DateOfJoining; $currentDate = \Carbon\Carbon::now(); $diff = $currentDate->diff(\Carbon\Carbon::parse($dj)); $years = $diff->y; $months = $diff->m; $days = $diff->d; $DOJ = \Carbon\Carbon::parse($dj)->format('d-M-Y'); @endphp @endforeach
# Emp code Emp Name Department Designation Date Of Joining Allzone Exp Action
{{ $key + 1 }} {{ $employee->EmployeeCode }} {{ $employee->EmployeeName }} {{ $employee->dept_name }} {{ $employee->designation }} {{ $DOJ }} {{ $years }} yrs, {{ $months }} mths, {{ $days }} ds Exit @if($years >= 1 && $years < 3) CL 1 @elseif($years >= 3) CL 3 @else @endif
@include('layouts.footer')