ok
Direktori : /home2/selectio/www/fms-worksuite/storage/framework/views/ |
Current File : /home2/selectio/www/fms-worksuite/storage/framework/views/239872a692e82ba20d76550fab5fcf14.php |
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?> <?php foreach($attributes->onlyProps([ 'checkedDays'=>[], 'fieldName'=>'', 'selectedWeek'=>'', 'fieldLabel'=>'', 'fieldRequired'=>false, 'type'=>'checkbox' ]) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> <?php $attributes = $attributes->exceptProps([ 'checkedDays'=>[], 'fieldName'=>'', 'selectedWeek'=>'', 'fieldLabel'=>'', 'fieldRequired'=>false, 'type'=>'checkbox' ]); ?> <?php foreach (array_filter(([ 'checkedDays'=>[], 'fieldName'=>'', 'selectedWeek'=>'', 'fieldLabel'=>'', 'fieldRequired'=>false, 'type'=>'checkbox' ]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> <?php $__defined_vars = get_defined_vars(); ?> <?php foreach ($attributes as $__key => $__value) { if (array_key_exists($__key, $__defined_vars)) unset($$__key); } ?> <?php unset($__defined_vars); ?> <?php if($type =='checkbox'): ?> <?php $__currentLoopData = range(0,\Carbon\Carbon::DAYS_PER_WEEK-1); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $day): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $index = ($day + attendance_setting()?->week_start_from)%7; ?> <div <?php echo e($attributes->merge(['class' => 'mr-3 mb-2'])); ?> > <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldLabel' => now()->startOfWeek($index)->translatedFormat('l'),'fieldName' => $fieldName,'checked' => in_array($index, $checkedDays),'fieldId' => 'open_'.$index,'fieldValue' => $index] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Forms\Checkbox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <?php if (isset($component)) { $__componentOriginal67cd5dc9866c6185ad92d933c387fa86 = $component; } ?> <?php $component = App\View\Components\Forms\Select::resolve(['fieldLabel' => $fieldLabel,'fieldName' => $fieldName,'fieldId' => $fieldName,'fieldRequired' => $fieldRequired] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.select'); ?> <?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\Forms\Select::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php $__currentLoopData = range(0,\Carbon\Carbon::DAYS_PER_WEEK-1); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $day): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $index = ($day + attendance_setting()?->week_start_from)%7; ?> <option value="<?php echo e($day); ?>" <?php if($selectedWeek == $day): echo 'selected'; endif; ?>> <?php echo e(now()->startOfWeek($day)->translatedFormat('l')); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86)): ?> <?php $component = $__componentOriginal67cd5dc9866c6185ad92d933c387fa86; ?> <?php unset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86); ?> <?php endif; ?> <?php endif; ?> <?php /**PATH /home2/selectio/public_html/fms-worksuite/resources/views/components/forms/weeks.blade.php ENDPATH**/ ?>