@foreach ($employeeShifts as $item) {{ $item->shift_short_code }} : {{ $item->shift_name }} {{ !$loop->last ? ' | ' : '' }} @endforeach | : @lang('app.menu.holiday')
@lang('app.employee') @foreach ($weekPeriod->toArray() as $date)
{{ $date->day }}
{{ $date->translatedFormat('l') }}
{{ $date->translatedFormat('M') }}
@endforeach
@foreach ($employeeAttendence as $key => $attendance) @php $userId = explode('#', $key); $userId = $userId[0]; $count = 1; @endphp {!! end($attendance) !!} @foreach ($attendance as $key2 => $day) @if ($count + 1 <= count($attendance)) @php $attendanceDate = \Carbon\Carbon::parse($key2); @endphp @if ($day == 'Leave')
{{ $leaveType[$key2] }}
@elseif ($day == 'Half Day') @if ($attendanceDate->isFuture())
@lang('modules.attendance.halfDay')
@else @lang('modules.attendance.halfDay') @endif @elseif ($day == 'EMPTY') @elseif ($day == 'Holiday')
{{ $holidayOccasions[$key2] }}
@else {!! $day !!} @endif @endif @php $count++; @endphp @endforeach @endforeach