@if (in_array('attendance', user_modules()) && in_array('shift_schedule', $activeWidgets) && $sidebarUserPermissions['view_shift_roster'] != 5 && $sidebarUserPermissions['view_shift_roster'] != 'none' && in_array('attendance', user_modules()))
@lang('modules.attendance.shift') @foreach ($currentWeekDates as $key => $weekDate) @if (isset($weekShifts[$key])) {{ $weekDate->translatedFormat(company()->date_format) }} {{ $weekDate->translatedFormat('l') }} @if (isset($weekShifts[$key]->shift)) @if ($weekShifts[$key]->shift->shift_name == 'Day Off') {{ __('modules.attendance.' . str($weekShifts[$key]->shift->shift_name)->camel()) }} @else {{ $weekShifts[$key]->shift->shift_name }} @endif @if (!is_null($weekShifts[$key]->remarks) && $weekShifts[$key]->remarks != '') @endif @else {!! $weekShifts[$key] !!} @endif @if (isset($weekShifts[$key]->shift)) @if (attendance_setting()->allow_shift_change && !$weekDate->isPast()) @if (!is_null($weekShifts[$key]->requestChange) && $weekShifts[$key]->requestChange->status == 'waiting') @else @endif @else -- @endif @else @lang('app.defaultShift') @endif @endif @endforeach
@endif