ok

Mini Shell

Direktori : /home2/selectio/www/fms-worksuite/storage/framework/views/
Upload File :
Current File : /home2/selectio/www/fms-worksuite/storage/framework/views/f0733d4b44b1d28fffb1449f85afe8e3.php

<?php
$addAttendancePermission = user()->permission('add_attendance');
?>
<div class="table-responsive">
    <?php if (isset($component)) { $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f = $component; } ?>
<?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' => 'table-bordered mt-3 table-hover']); ?>
         <?php $__env->slot('thead', null, []); ?> 
            <th class="px-2" style="vertical-align: middle;"><?php echo app('translator')->get('app.employee'); ?></th>
            <?php for($i = 1; $i <= $daysInMonth; $i++): ?>
            <th class="pr-2 pl-1 f-11"><?php echo e($i); ?>

                <br>
                <span class="text-dark-grey f-10">
                    <?php echo e($weekMap[\Carbon\Carbon::parse(\Carbon\Carbon::parse($i . '-' . $month . '-' . $year))->dayOfWeek]); ?>

                </span></th>
            <?php endfor; ?>
            <th class="text-right px-2"><?php echo app('translator')->get('app.total'); ?></th>
         <?php $__env->endSlot(); ?>

        <?php $__currentLoopData = $employeeAttendence; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $attendance): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php
                $totalPresent = 0;
                $userId = explode('#', $key);
                $userId = $userId[0];
            ?>
            <tr>
                <td class="w-30 px-2"> <?php echo end($attendance); ?> </td>
                <?php $__currentLoopData = $attendance; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key2 => $day): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($key2 + 1 <= count($attendance)): ?>
                        <?php
                            $attendanceDate = \Carbon\Carbon::parse($year.'-'.$month.'-'.$key2);
                        ?>
                        <td class="px-1">
                            <?php if($day == 'Leave'): ?>
                                <span data-toggle="tooltip" data-original-title="<?php echo e($leaveReasons[$userId][$key2]); ?>"><i
                                        class="fa fa-plane-departure text-red"></i></span>
                            <?php elseif($day == 'Day Off'): ?>
                                <span data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('modules.attendance.dayOff'); ?>"><i
                                        class="fa fa-calendar-week text-red"></i></span>
                            <?php elseif($day == 'Half Day'): ?>
                                <?php if($attendanceDate->isFuture()): ?>
                                    <span data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('modules.attendance.halfDay'); ?>"><i
                                        class="fa fa-star-half-alt text-red"></i></span>
                                <?php else: ?>
                                    <a <?php if($addAttendancePermission == 'all'): ?> href="javascript:;" class="edit-attendance" <?php endif; ?> 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="fa fa-star-half-alt text-red"></i></span>
                                    </a>
                                <?php endif; ?>
                            <?php elseif($day == 'Absent'): ?>
                                <a <?php if($addAttendancePermission == 'all'): ?> href="javascript:;" class="edit-attendance" <?php endif; ?> data-user-id="<?php echo e($userId); ?>"
                                    data-attendance-date="<?php echo e($key2); ?>"><i
                                        class="fa fa-times text-lightest"></i></a>
                            <?php elseif($day == 'Holiday'): ?>
                                <a href="javascript:;" data-toggle="tooltip"
                                    data-original-title="<?php echo e($holidayOccasions[$key2]); ?>"
                                    data-user-id="<?php echo e($userId); ?>" data-attendance-date="<?php echo e($key2); ?>"><i
                                        class="fa fa-star text-warning"></i></a>
                            <?php else: ?>
                                <?php if($day != '-'): ?>
                                    <?php
                                        $totalPresent = $totalPresent + 1;
                                    ?>
                                <?php endif; ?>

                                <?php echo $day; ?>

                            <?php endif; ?>
                        </td>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <td class="text-dark f-w-500 text-right attendance-total px-2 w-100">
                    <?php echo $totalPresent . ' / <span class="text-lightest">' . (count($attendance) - 1) . '</span>'; ?></td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f)): ?>
<?php $component = $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f; ?>
<?php unset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f); ?>
<?php endif; ?>
</div>
<?php /**PATH /home2/selectio/public_html/fms-worksuite/resources/views/attendances/ajax/summary_data.blade.php ENDPATH**/ ?>

Zerion Mini Shell 1.0