@if ($today_leaves->isEmpty())
- N/A -
@else
| Leave Type |
Department |
Applicant |
Day Type |
Duration |
@foreach ($today_leaves as $index => $today_leave)
@if( $today_leave->userLeaveWithTrashed )
| {{ $today_leave->userLeaveWithTrashed->getLeavePolicyNameByApplicationYear($today_leave->getApplicationYear()) }} |
{{ $today_leave->userLeaveWithTrashed->user->details->job ? ucwords(strtolower($today_leave->userLeaveWithTrashed->user->details->job->department->name)) : '-' }} |
@if( Auth::user()->id == $today_leave->userLeaveWithTrashed->user->id )
Me |
@else
{{ $today_leave->userLeaveWithTrashed->user->getName() }} |
@endif
{{ $today_leave->getTodayApplicationDate() }} |
{{ $today_leave->duration }} Days |
@endif
@endforeach
@endif