@php $manageShiftPermission = user()->permission('manage_employee_shifts'); @endphp
@lang('app.name') @lang('app.time') @lang('app.others') @if ($manageShiftPermission == 'all')   @lang('app.action') @else   @endif @forelse($employeeShifts as $shift) {{ $shift->shift_name }} @if ($shift->shift_type == 'strict')
@lang('modules.employees.startTime'): {{ \Carbon\Carbon::createFromFormat('H:i:s', $shift->office_start_time)->translatedFormat(company()->time_format) }}
@lang('modules.attendance.halfDay'): {{ $shift->halfday_mark_time? \Carbon\Carbon::createFromFormat('H:i:s', $shift->halfday_mark_time)->translatedFormat(company()->time_format): '' }}
@lang('modules.employees.endTime'): {{ \Carbon\Carbon::createFromFormat('H:i:s', $shift->office_end_time)->translatedFormat(company()->time_format) }}
@else
@lang('modules.attendance.totalShiftHours'): {{ $shift->flexible_total_hours }} @lang('app.hrs')
@lang('modules.attendance.halfdayShiftHours'): {{ $shift->flexible_half_day_hours }} @lang('app.hrs')
@endif @if ($shift->shift_type == 'strict')
@lang('modules.attendance.lateMark'): {{ $shift->late_mark_duration }}
@endif
@lang('modules.attendance.checkininday'): {{ $shift->clockin_in_day }}
@lang('modules.attendance.officeOpenDays'): @foreach (json_decode($shift->office_open_days) as $item) {{ $weekMap[$item] }} @endforeach
@if ($manageShiftPermission == 'all') @if ($shift->id != attendance_setting()->default_employee_shift) @endif @elseif (isset($shift) && isset($defaultShift) && $shift->shift_name == $defaultShift->shift_name) @lang('app.defaultShift') @else   @endif @empty @endforelse