<div class="row d-flex justify-content-between">
    <div>
        <div class='input-group <?php echo e(isRtl('flex-row-reverse')); ?>'>
            <div class="input-group-prepend">
                <button id="week-start-date" data-date="<?php echo e($weekStartDate->copy()->subDay()->toDateString()); ?>" type="button"
                    class="btn btn-outline-secondary border-grey height-35"><i class="fa fa-chevron-left"></i>
                </button>
            </div>

            <input type="text" disabled class="text-center bg-white form-control height-35 f-14" value="<?php echo e($weekStartDate->translatedFormat('d M') . ' - ' . $weekEndDate->translatedFormat('d M')); ?>">

            <div class="input-group-append">
                <button id="week-end-date" data-date="<?php echo e($weekEndDate->copy()->addDay()->toDateString()); ?>" type="button"
                    class="btn btn-outline-secondary border-grey height-35"><i class="fa fa-chevron-right"></i>
                </button>
            </div>
        </div>

    </div>
    <div class="ml-3 align-self-center">
        <?php $__currentLoopData = $employeeShifts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <span class="p-1 badge badge-info f-11" style="background-color: <?php echo e($item->color); ?>">
                <?php echo e($item->shift_short_code); ?> : <?php echo e($item->shift_name); ?></span>
            <?php echo e(!$loop->last ? ' | ' : ''); ?>

        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
       | <i class="fa fa-star text-primary"></i> : <?php echo app('translator')->get('app.menu.holiday'); ?>
    </div>
</div>


<div class="table-responsive">
    <?php if (isset($component)) { $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7d9f6e0b9001f5841f72577781b2d17f = $attributes; } ?>
<?php $component = App\View\Components\Table::resolve(['headType' => 'thead-light'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('table'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Table::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'mt-3 table-bordered table-hover']); ?>
         <?php $__env->slot('thead', null, []); ?> 
            <th class="px-2" style="vertical-align: middle;"><?php echo app('translator')->get('app.employee'); ?></th>
            <?php $__currentLoopData = $weekPeriod->toArray(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $date): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <th class="px-1">
                    <div class="d-flex">
                        <div class="mr-2 f-27 align-self-center"><?php echo e($date->day); ?></div>
                        <div class="text-lightest f-11 text-uppercase"><?php echo e($date->translatedFormat('l')); ?> <br><?php echo e($date->translatedFormat('M')); ?></div>
                    </div>
                </th>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
         <?php $__env->endSlot(); ?>

        <?php $__currentLoopData = $employeeAttendence; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $attendance): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php
                $userId = explode('#', $key);
                $userId = $userId[0];
                $count = 1;
                $isActive = '';

                if(in_array($userId,$employeeIdsInactive)){
                    $isActive = 'no';
                }

            ?>
            <tr>
                <td class="px-1"> <?php echo end($attendance); ?> </td>
                <?php $__currentLoopData = $attendance; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key2 => $day): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($count + 1 <= count($attendance)): ?>
                        <?php
                            $attendanceDate = \Carbon\Carbon::parse($key2);
                        ?>
                        <td class="px-1">
                            <?php if($day == 'Leave'): ?>
                                <?php
                                    // Retrieve the leave type for the current employee and date
                                    $currentLeaveType = isset($leaveType[$userId][$key2]) ? $leaveType[$userId][$key2] : __('modules.attendance.leave');
                                ?>
                                <div data-toggle="tooltip" class="p-1 py-4 border badge badge-light f-10 border-danger w-100" data-original-title="<?php echo app('translator')->get('modules.attendance.leave'); ?>"><i
                                        class="mr-2 fa fa-plane-departure text-red"></i><?php echo e($currentLeaveType); ?></div>
                                <?php elseif($day == 'Half Day'): ?>
                                    <?php if($attendanceDate->isFuture()): ?>
                                        <div data-toggle="tooltip" class="p-1 py-4 border badge badge-warning f-10 border-danger w-100" data-original-title="<?php echo app('translator')->get('modules.attendance.halfDay'); ?>"><i
                                            class="mr-2 fa fa-star-half-alt text-red"></i><?php echo app('translator')->get('modules.attendance.halfDay'); ?></div>
                                    <?php else: ?>
                                        <a href="javascript:;" class="py-4 change-shift-week<?php echo e($isActive); ?> w-100" data-user-id="<?php echo e($userId); ?>"
                                                data-attendance-date="<?php echo e($key2); ?>">
                                            <span data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('modules.attendance.halfDay'); ?>"><i
                                                    class="mr-2 fa fa-star-half-alt text-red"></i><?php echo app('translator')->get('modules.attendance.halfDay'); ?></span>
                                        </a>
                                    <?php endif; ?>
                                <?php elseif($day == 'EMPTY'): ?>
                                    <button type="button" class="p-1 py-4 border change-shift-week<?php echo e($isActive); ?> badge badge-light f-14 w-100"  data-user-id="<?php echo e($userId); ?>"
                                        data-attendance-date="<?php echo e($key2); ?>">
                                        <?php if(in_array($manageEmployeeShifts, ['all'])): ?>
                                        <i class="fa fa-plus-circle text-primary"></i>
                                        <?php else: ?>
                                        <i class="fa fa-ban text-red"></i>
                                        <?php endif; ?></button>
                                <?php elseif($day == 'Holiday'): ?>
                                <div data-toggle="tooltip" class="p-1 py-4 border badge badge-light f-10 border-primary w-100 change-shift-week<?php echo e($isActive); ?>"
                                    data-original-title="<?php echo app('translator')->get('modules.attendance.holiday'); ?>" data-user-id="<?php echo e($userId); ?>" data-attendance-date="<?php echo e($key2); ?>"> <i class="fa fa-star text-primary"></i>
                                    <?php echo e($holidayOccasions[$key2]); ?></div>
                            <?php else: ?>
                                <?php echo $day; ?>

                            <?php endif; ?>
                        </td>
                    <?php endif; ?>
                    <?php
                        $count++;
                    ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7d9f6e0b9001f5841f72577781b2d17f)): ?>
<?php $attributes = $__attributesOriginal7d9f6e0b9001f5841f72577781b2d17f; ?>
<?php unset($__attributesOriginal7d9f6e0b9001f5841f72577781b2d17f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f)): ?>
<?php $component = $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f; ?>
<?php unset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f); ?>
<?php endif; ?>
</div>
<?php /**PATH /home/smartdigitants/public_html/oneops.co.uk/oneops.ai/resources/views/shift-rosters/ajax/week_summary_data.blade.php ENDPATH**/ ?>