%PDF- %PDF-
Direktori : /www/loslex/production/storage/framework/views/ |
Current File : //www/loslex/production/storage/framework/views/4efa419ce620ac5fb1433c5153649dad.php |
<div x-data="{ <?php $__currentLoopData = $contest->divisionCounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $div => $count): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>highlight<?php echo e($div); ?>: false, <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> hlpaid: sessionStorage.getItem('hlpaid') == 'true'}" x-init="$watch('hlpaid', (val) => { sessionStorage.setItem('hlpaid', val)})"> <?php if($contest->registrations->isNotEmpty() && $contest->contest_category): ?> <div class="p-1 text-sm flex flex-row"> <div class="inline w-full flex flex-wrap gap-1"> <?php $__currentLoopData = $contest->divisionCounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $div => $count): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div @click="highlight<?php echo e($div); ?> = !highlight<?php echo e($div); ?>" class="whitespace-nowrap cursor-pointer inline p-1 border rounded select-none" :class="highlight<?php echo e($div); ?> ? 'division-active' : ''"><?php echo e($div); ?>: <?php echo e($count); ?></div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('update', $contest)): ?> <div> <div @click="hlpaid = !hlpaid" class="text-sm whitespace-nowrap cursor-pointer p-1 border rounded select-none" :class="hlpaid ? 'registration-paid' : ''"><?php echo e(__('Paid')); ?></div> </div> <?php endif; ?> </div> <?php endif; ?> <div class="border rounded p-2"> <div class="flex flex-row flex-wrap gap-2 justify-around"> <?php for($i = 1; $i <= $contest->squads; $i++): ?> <div class="border rounded text-center p-2 grow basis-0"> <?php if (isset($component)) { $__componentOriginale3da9d84bb64e4bc2eeebaafabfb2581 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginale3da9d84bb64e4bc2eeebaafabfb2581 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.input-label','data' => ['class' => 'font-bold','value' => 'Squad '.e($i).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input-label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'font-bold','value' => 'Squad '.e($i).'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginale3da9d84bb64e4bc2eeebaafabfb2581)): ?> <?php $attributes = $__attributesOriginale3da9d84bb64e4bc2eeebaafabfb2581; ?> <?php unset($__attributesOriginale3da9d84bb64e4bc2eeebaafabfb2581); ?> <?php endif; ?> <?php if (isset($__componentOriginale3da9d84bb64e4bc2eeebaafabfb2581)): ?> <?php $component = $__componentOriginale3da9d84bb64e4bc2eeebaafabfb2581; ?> <?php unset($__componentOriginale3da9d84bb64e4bc2eeebaafabfb2581); ?> <?php endif; ?> <div class="mt-1 text-xs"><?php echo e($contest->registrations->where('squad', $i)->count()); ?> / <?php echo e($contest->squadSize[$i]); ?></div> <div class="w-full mt-2 text-sm gap-2 flex flex-row flex-wrap justify-center"> <?php $__currentLoopData = $contest->registrations->where('squad', $i)->sortBy('user.lastname'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $reg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="<?php echo \Illuminate\Support\Arr::toCssClasses(['whitespace-nowrap p-1 border rounded select-none', 'registration-own' => isset($registration) && $reg->id == $registration->id ]); ?>" :class="highlight<?php echo e($reg->division?->bgdivision); ?> ? 'division-active' :<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('update', $contest)): ?> hlpaid && <?php echo e($reg->paid); ?> ? 'registration-paid' :<?php endif; ?> ''" title="<?php echo e($reg->division?->division); ?>"> <?php if(auth()->guard()->check()): ?> <?php echo e($reg->user->displayname); ?><?php if($reg->notcomp): ?> <?php echo e(__('(NC)')); ?><?php endif; ?> <div class="text-xxs italic"><?php echo e($reg->user->username); ?></div><?php endif; ?> <?php if(auth()->guard()->guest()): ?> <?php echo e($reg->user->displayanonname); ?><?php if($reg->notcomp): ?> <?php echo e(__('(NC)')); ?><?php endif; ?> <?php endif; ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php endfor; ?> </div> <div class="mt-2 flex flex-row flex-wrap justify-around"> <div class="border rounded text-center p-2 grow"> <?php if (isset($component)) { $__componentOriginale3da9d84bb64e4bc2eeebaafabfb2581 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginale3da9d84bb64e4bc2eeebaafabfb2581 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.input-label','data' => ['class' => 'font-bold','value' => 'Squad R']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input-label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'font-bold','value' => 'Squad R']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginale3da9d84bb64e4bc2eeebaafabfb2581)): ?> <?php $attributes = $__attributesOriginale3da9d84bb64e4bc2eeebaafabfb2581; ?> <?php unset($__attributesOriginale3da9d84bb64e4bc2eeebaafabfb2581); ?> <?php endif; ?> <?php if (isset($__componentOriginale3da9d84bb64e4bc2eeebaafabfb2581)): ?> <?php $component = $__componentOriginale3da9d84bb64e4bc2eeebaafabfb2581; ?> <?php unset($__componentOriginale3da9d84bb64e4bc2eeebaafabfb2581); ?> <?php endif; ?> <div class="w-full mt-2 text-sm gap-2 flex flex-row flex-wrap justify-center"> <?php $__currentLoopData = $contest->registrations->where('squad', 0)->sortBy('user.lastname'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $reg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="<?php echo \Illuminate\Support\Arr::toCssClasses(['whitespace-nowrap p-1 border rounded select-none', 'registration-own' => isset($registration) && $reg->id == $registration->id ]); ?>" :class="highlight<?php echo e($reg->division?->bgdivision); ?> ? 'division-active' :<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('update', $contest)): ?> hlpaid && <?php echo e($reg->paid); ?> ? 'registration-paid' :<?php endif; ?> ''" title="<?php echo e($reg->division?->division); ?>"> <?php if(auth()->guard()->check()): ?> <?php echo e($reg->user->displayname); ?><?php if($reg->notcomp): ?> <?php echo e(__('(NC)')); ?><?php endif; ?> <div class="text-xxs italic"><?php echo e($reg->user->username); ?></div><?php endif; ?> <?php if(auth()->guard()->guest()): ?> <?php echo e($reg->user->displayanonname); ?><?php if($reg->notcomp): ?> <?php echo e(__('(NC)')); ?><?php endif; ?> <?php endif; ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <?php if (isset($component)) { $__componentOriginalf94ed9c5393ef72725d159fe01139746 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf94ed9c5393ef72725d159fe01139746 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.input-error','data' => ['class' => 'mt-2','messages' => $errors->get('squad')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input-error'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'mt-2','messages' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($errors->get('squad'))]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalf94ed9c5393ef72725d159fe01139746)): ?> <?php $attributes = $__attributesOriginalf94ed9c5393ef72725d159fe01139746; ?> <?php unset($__attributesOriginalf94ed9c5393ef72725d159fe01139746); ?> <?php endif; ?> <?php if (isset($__componentOriginalf94ed9c5393ef72725d159fe01139746)): ?> <?php $component = $__componentOriginalf94ed9c5393ef72725d159fe01139746; ?> <?php unset($__componentOriginalf94ed9c5393ef72725d159fe01139746); ?> <?php endif; ?> </div> </div> <?php /**PATH /www/loslex/production/resources/views/contests/regoverview.blade.php ENDPATH**/ ?>