%PDF- %PDF-
Direktori : /www/loslex/production/storage/framework/views/ |
Current File : //www/loslex/production/storage/framework/views/99bb72ad373444778836295343a6ecba.php |
<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?> <?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('app-layout'); ?> <?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\AppLayout::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php $__env->slot('pagetitle', null, []); ?> <?php echo e($contest->contestname); ?> <?php $__env->endSlot(); ?> <?php $__env->slot('header', null, []); ?> <h2 class="text-gray-800 dark:text-gray-200 leading-tight"><?php echo e($contest->contestname); ?></h2> <?php $__env->endSlot(); ?> <div class="w-full lg:w-3/4 m-auto"> <div class="justify-center items-baseline text-xl font-bold flex"> <?php echo e($contest->contestname); ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('update', $contest)): ?> <?php if (isset($component)) { $__componentOriginaldf8083d4a852c446488d8d384bbc7cbe = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaldf8083d4a852c446488d8d384bbc7cbe = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dropdown','data' => ['width' => 'fit','align' => 'right']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('dropdown'); ?> <?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(['width' => 'fit','align' => 'right']); ?> <?php $__env->slot('trigger', null, []); ?> <button class="ml-2 test-xs fa-solid fa-gear"></button> <?php $__env->endSlot(); ?> <?php $__env->slot('content', null, []); ?> <?php if (isset($component)) { $__componentOriginal68cb1971a2b92c9735f83359058f7108 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal68cb1971a2b92c9735f83359058f7108 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dropdown-link','data' => ['href' => route('contest.edit', $contest->id)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('dropdown-link'); ?> <?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(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('contest.edit', $contest->id))]); ?><?php echo e(__('Edit contest')); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal68cb1971a2b92c9735f83359058f7108)): ?> <?php $attributes = $__attributesOriginal68cb1971a2b92c9735f83359058f7108; ?> <?php unset($__attributesOriginal68cb1971a2b92c9735f83359058f7108); ?> <?php endif; ?> <?php if (isset($__componentOriginal68cb1971a2b92c9735f83359058f7108)): ?> <?php $component = $__componentOriginal68cb1971a2b92c9735f83359058f7108; ?> <?php unset($__componentOriginal68cb1971a2b92c9735f83359058f7108); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal68cb1971a2b92c9735f83359058f7108 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal68cb1971a2b92c9735f83359058f7108 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dropdown-link','data' => ['href' => route('contest.maintain', $contest->id)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('dropdown-link'); ?> <?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(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('contest.maintain', $contest->id))]); ?><?php echo e(__('Contest maintenance')); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal68cb1971a2b92c9735f83359058f7108)): ?> <?php $attributes = $__attributesOriginal68cb1971a2b92c9735f83359058f7108; ?> <?php unset($__attributesOriginal68cb1971a2b92c9735f83359058f7108); ?> <?php endif; ?> <?php if (isset($__componentOriginal68cb1971a2b92c9735f83359058f7108)): ?> <?php $component = $__componentOriginal68cb1971a2b92c9735f83359058f7108; ?> <?php unset($__componentOriginal68cb1971a2b92c9735f83359058f7108); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal9b930b6f644c9552981f43642e7c52b1 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9b930b6f644c9552981f43642e7c52b1 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dropdown-divider','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('dropdown-divider'); ?> <?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([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9b930b6f644c9552981f43642e7c52b1)): ?> <?php $attributes = $__attributesOriginal9b930b6f644c9552981f43642e7c52b1; ?> <?php unset($__attributesOriginal9b930b6f644c9552981f43642e7c52b1); ?> <?php endif; ?> <?php if (isset($__componentOriginal9b930b6f644c9552981f43642e7c52b1)): ?> <?php $component = $__componentOriginal9b930b6f644c9552981f43642e7c52b1; ?> <?php unset($__componentOriginal9b930b6f644c9552981f43642e7c52b1); ?> <?php endif; ?> <?php $__currentLoopData = \App\Enums\ContestPublicationStatusEnum::cases(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $case): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($contest->published != $case): ?> <?php if (isset($component)) { $__componentOriginal68cb1971a2b92c9735f83359058f7108 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal68cb1971a2b92c9735f83359058f7108 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dropdown-link','data' => ['href' => route('contest.publish', ['contest' => $contest->id, 'status' => $case->value])]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('dropdown-link'); ?> <?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(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('contest.publish', ['contest' => $contest->id, 'status' => $case->value]))]); ?><?php echo e(__('Set contest status to :status', ['status' => __('contest.' . $case->name)])); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal68cb1971a2b92c9735f83359058f7108)): ?> <?php $attributes = $__attributesOriginal68cb1971a2b92c9735f83359058f7108; ?> <?php unset($__attributesOriginal68cb1971a2b92c9735f83359058f7108); ?> <?php endif; ?> <?php if (isset($__componentOriginal68cb1971a2b92c9735f83359058f7108)): ?> <?php $component = $__componentOriginal68cb1971a2b92c9735f83359058f7108; ?> <?php unset($__componentOriginal68cb1971a2b92c9735f83359058f7108); ?> <?php endif; ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php $__env->endSlot(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaldf8083d4a852c446488d8d384bbc7cbe)): ?> <?php $attributes = $__attributesOriginaldf8083d4a852c446488d8d384bbc7cbe; ?> <?php unset($__attributesOriginaldf8083d4a852c446488d8d384bbc7cbe); ?> <?php endif; ?> <?php if (isset($__componentOriginaldf8083d4a852c446488d8d384bbc7cbe)): ?> <?php $component = $__componentOriginaldf8083d4a852c446488d8d384bbc7cbe; ?> <?php unset($__componentOriginaldf8083d4a852c446488d8d384bbc7cbe); ?> <?php endif; ?> <?php endif; ?> </div> <div class="grid grid-cols-auto lg:grid-cols-fitfirst gap-x-2 lg:gap-x-4 gap-y-2"> <div class="text-right font-bold align-top"><?php echo e(__('Range')); ?>:</div> <div><a href="<?php echo e(route('range.show', $contest->range->id)); ?>"><?php echo e($contest->range->name); ?></a></div> <div class="text-right font-bold align-top"><?php echo e(__('Organizer')); ?>:</div> <div> <?php echo e($contest->organizer_group->name); ?> <?php if(auth()->guard()->check()): ?> <span class="text-sm">(<a href="mailto:<?php echo e($contest->organizerEmail ?? $contest->director?->email); ?>" target="_blank"><?php echo e($contest->organizerEmail ?? $contest->director?->email); ?></a>)</span> <?php endif; ?> </div> <div class="text-right font-bold align-top"><?php echo e(__('Contest visibility')); ?>:</div> <div><?php echo e(__('contest.' . $contest->published->name)); ?></div> <div class="text-right font-bold align-top"><?php echo e(__('Contest category')); ?>:</div> <div> <?php echo e(__('contest.' . $contest->contest_level?->name)); ?><?php if($contest->contest_category): ?>, <?php echo e(__('contest.' . $contest->contest_category?->name)); ?> <?php endif; ?> </div> <div class="text-right font-bold align-top"><?php echo e(__('Contest date')); ?>:</div> <div><?php echo e($contest->date->isoFormat('LL')); ?></div> <?php if($contest->director): ?> <div class="text-right font-bold align-top"><?php echo e(__('Contest director')); ?>:</div> <div><?php echo e($contest->director?->displayname); ?></div> <?php endif; ?> <?php if($contest->rangemaster || $contest->rangemaster_id == 0): ?> <div class="text-right font-bold align-top"><?php echo e(__('Range master')); ?>:</div> <div><?php echo e($contest->rangemaster_id != 0 ? $contest->rangemaster->displayname : __('Will be appointed')); ?></div> <?php endif; ?> <div class="text-right font-bold align-top"><?php echo e(__('Entry fees')); ?>:</div> <div> <div><?php echo e(__('LEX members')); ?>: <?php echo e($contest->feelex); ?> Kč</div> <div><?php echo e(__('Other contestants')); ?>: <?php echo e($contest->feeothers); ?> Kč</div> </div> <?php if(!$contest->isAfterContest): ?> <?php if($contest->accountnumber): ?> <div class="text-right font-bold align-top"><?php echo e(__('Bank payment information')); ?>:</div> <div> <div> <span class="font-semibold"><?php echo e(__('Account number')); ?></span>: <?php echo e($contest->accountnumber); ?> <?php if (isset($component)) { $__componentOriginal0ca8e501fe8ee81d24be258681a56140 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal0ca8e501fe8ee81d24be258681a56140 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.button-clipboard','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('button-clipboard'); ?> <?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([]); ?><?php echo e($contest->accountnumber); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal0ca8e501fe8ee81d24be258681a56140)): ?> <?php $attributes = $__attributesOriginal0ca8e501fe8ee81d24be258681a56140; ?> <?php unset($__attributesOriginal0ca8e501fe8ee81d24be258681a56140); ?> <?php endif; ?> <?php if (isset($__componentOriginal0ca8e501fe8ee81d24be258681a56140)): ?> <?php $component = $__componentOriginal0ca8e501fe8ee81d24be258681a56140; ?> <?php unset($__componentOriginal0ca8e501fe8ee81d24be258681a56140); ?> <?php endif; ?> </div> <?php if($contest->accvarsym): ?> <div> <span class="font-semibold"><?php echo e(__('Variable symbol')); ?></span>: <?php echo e($contest->accvarsym); ?> <?php if (isset($component)) { $__componentOriginal0ca8e501fe8ee81d24be258681a56140 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal0ca8e501fe8ee81d24be258681a56140 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.button-clipboard','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('button-clipboard'); ?> <?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([]); ?><?php echo e($contest->accvarsym); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal0ca8e501fe8ee81d24be258681a56140)): ?> <?php $attributes = $__attributesOriginal0ca8e501fe8ee81d24be258681a56140; ?> <?php unset($__attributesOriginal0ca8e501fe8ee81d24be258681a56140); ?> <?php endif; ?> <?php if (isset($__componentOriginal0ca8e501fe8ee81d24be258681a56140)): ?> <?php $component = $__componentOriginal0ca8e501fe8ee81d24be258681a56140; ?> <?php unset($__componentOriginal0ca8e501fe8ee81d24be258681a56140); ?> <?php endif; ?> </div> <?php endif; ?> <?php if($contest->accnote): ?> <div> <span class="font-semibold"><?php echo e(__('Payment note')); ?></span>: <?php echo e($contest->paymentnote); ?> <?php if (isset($component)) { $__componentOriginal0ca8e501fe8ee81d24be258681a56140 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal0ca8e501fe8ee81d24be258681a56140 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.button-clipboard','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('button-clipboard'); ?> <?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([]); ?><?php echo e($contest->paymentnote); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal0ca8e501fe8ee81d24be258681a56140)): ?> <?php $attributes = $__attributesOriginal0ca8e501fe8ee81d24be258681a56140; ?> <?php unset($__attributesOriginal0ca8e501fe8ee81d24be258681a56140); ?> <?php endif; ?> <?php if (isset($__componentOriginal0ca8e501fe8ee81d24be258681a56140)): ?> <?php $component = $__componentOriginal0ca8e501fe8ee81d24be258681a56140; ?> <?php unset($__componentOriginal0ca8e501fe8ee81d24be258681a56140); ?> <?php endif; ?> </div> <?php endif; ?> </div> <?php endif; ?> <?php if($contest->acccondition): ?> <div class="text-right font-bold align-top"><?php echo e(__('Payment conditions')); ?>:</div> <div><?php echo e($contest->acccondition); ?></div> <?php endif; ?> <?php endif; ?> <div class="text-right font-bold align-top"><?php echo e(__('Number of stages')); ?>:</div> <div><?php echo e($contest->stages); ?></div> <div class="text-right font-bold align-top"><?php echo e(__('Presentation')); ?>:</div> <div> <?php if($contest->squadshootstyle == 'together'): ?> <?php echo e($contest->presentation_start[0]); ?> - <?php echo e($contest->presentation_end[0]); ?><br/> <?php else: ?> <?php for($i = 1; $i <= $contest->squads; $i++): ?> Squad <?php echo e($i); ?>: <?php echo e($contest->presentation_start[$i]); ?> - <?php echo e($contest->presentation_end[$i]); ?><br/> <?php endfor; ?> <?php endif; ?> </div> <div class="text-right font-bold align-top"><?php echo e(__('Contest duration')); ?>:</div> <div> <?php if($contest->squadshootstyle == 'together'): ?> <?php echo e($contest->contest_start[0]); ?> - <?php echo e($contest->contest_end[0]); ?><br/> <?php else: ?> <?php for($i = 1; $i <= $contest->squads; $i++): ?> Squad <?php echo e($i); ?>: <?php echo e($contest->contest_start[$i]); ?> - <?php echo e($contest->contest_end[$i]); ?><br/> <?php endfor; ?> <?php endif; ?> </div> <?php if(($contest->isRegActive || $contest->isAfterReg) && !$contest->results_published): ?> <div class="text-right font-bold align-top"><?php echo e(__('Registered shooters')); ?>:</div> <div class="<?php echo e($contest->registrations->where('squad', '>', 0)->count() <= round(0.8 * $contest->capacity) ? 'text-green-500' : ($contest->registrations->where('squad', '>', 0)->count() < $contest->capacity ? 'text-amber-500' : 'text-red-600')); ?>"> <?php echo e($contest->registrations->where('squad', '>', 0)->count()); ?> / <?php echo e($contest->capacity); ?> <span class="text-xs"><?php echo e(__('(plus referees: :cnt)', ['cnt' => $contest->registrations->where('squad', 0)->count()])); ?></span> </div> <?php else: ?> <div class="text-right font-bold align-top"><?php echo e(__('Capacity')); ?>:</div> <div><?php echo e($contest->capacity); ?> <span class="text-xs"><?php echo e(__('(plus referees)')); ?></span></div> <?php endif; ?> <div class="text-right font-bold align-top"><?php echo e(__('Registration')); ?>:</div> <div> <?php switch($contest->registration_type): case (\App\Enums\ContestRegistrationEnum::ONLINE): ?> <?php if($contest->isBeforeReg): ?> <?php echo e(__('Registration will start on :date', ['date' => $contest->registration_start?->isoFormat('LL HH:mm')])); ?> <?php elseif($contest->isAfterReg): ?> <?php echo e(__('Registration finished.')); ?> <?php else: ?> <?php echo e(__('Registration will end on :date', ['date' => $contest->registration_end?->isoFormat('LL HH:mm')])); ?> <br/> ( <?php if (isset($component)) { $__componentOriginal56adb1b6deed215ed16a669b82b80bad = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal56adb1b6deed215ed16a669b82b80bad = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.countdown','data' => ['class' => '!inline text-xs','expires' => $contest->registration_end]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('countdown'); ?> <?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' => '!inline text-xs','expires' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($contest->registration_end)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal56adb1b6deed215ed16a669b82b80bad)): ?> <?php $attributes = $__attributesOriginal56adb1b6deed215ed16a669b82b80bad; ?> <?php unset($__attributesOriginal56adb1b6deed215ed16a669b82b80bad); ?> <?php endif; ?> <?php if (isset($__componentOriginal56adb1b6deed215ed16a669b82b80bad)): ?> <?php $component = $__componentOriginal56adb1b6deed215ed16a669b82b80bad; ?> <?php unset($__componentOriginal56adb1b6deed215ed16a669b82b80bad); ?> <?php endif; ?>) <?php endif; ?> <?php if(auth()->guard()->guest()): ?> <?php if(!$contest->isAfterReg): ?> <div class="text-sm"> <?php echo __('To register for the contest you need to :loginlinkopen log in :loginlinkclose or :registerlinkopen create new account :registerlinkclose', [ 'loginlinkopen' => '<span x-data="" x-on:click.prevent="$dispatch(\'open-modal\', \'login-form\')" class="font-bold cursor-pointer underline underline-offset-4">', 'loginlinkclose' => '</span>', 'registerlinkopen' => '<a class="font-bold" href="' . route('register') . '">', 'registerlinkclose' => '</a>' ]); ?> </div> <?php endif; ?> <?php endif; ?> <?php break; ?> <?php case (\App\Enums\ContestRegistrationEnum::OFFSITE): ?> <?php echo __('External at <a target="_blank" href=":url">:url</a>', ['url' => $contest->offsiteregurl]); ?> <?php break; ?> <?php case (\App\Enums\ContestRegistrationEnum::BEFORECONTEST): ?> <?php echo e(__('contest.BEFORECONTEST')); ?> <?php break; ?> <?php case (\App\Enums\ContestRegistrationEnum::OTHER): ?> <?php echo e(__('contest.OTHER')); ?> <?php break; ?> <?php endswitch; ?> </div> <div class="text-right font-bold align-top"><?php echo e(__('Calibration weapon')); ?>:</div> <div><?php echo e($contest->calibrationwpn); ?></div> <?php if($contest->caliberlimit): ?> <div class="text-right font-bold align-top"><?php echo e(__('Caliber or power limitation')); ?>:</div> <div><?php echo e($contest->caliberlimit); ?></div> <?php endif; ?> <?php if(!$contest->isAfterContest): ?> <div class="text-right font-bold align-top"><?php echo e(__('Protest deposit')); ?></div> <div class="inline-flex items-center"><?php echo e($contest->protestdeposit); ?> Kč</div> <?php endif; ?> <div class="text-right font-bold align-top"><?php echo e(__('Secret stages')); ?>:</div> <div class="inline-flex items-center"><?php echo e(__('contest.' . \App\Enums\ContestOptionsEnum::from($contest->secretstages)->name)); ?></div> <div class="text-right font-bold align-top"><?php echo e(__('Flashlight needed')); ?>:</div> <div class="inline-flex items-center"><?php echo e(__('contest.' . \App\Enums\ContestOptionsEnum::from($contest->flashlight)->name)); ?></div> <?php if(!$contest->isAfterContest): ?> <div class="text-right font-bold align-top"><?php echo e(__('Canteen available')); ?>:</div> <div class="inline-flex items-center"><?php echo e(__('contest.' . \App\Enums\ContestOptionsEnum::from($contest->canteen)->name)); ?></div> <div class="text-right font-bold align-top"><?php echo e(__('Toilet available')); ?>:</div> <div class="inline-flex items-center"><?php echo e(__('contest.' . \App\Enums\ContestOptionsEnum::from($contest->toilet)->name)); ?></div> <?php endif; ?> <div class="font-bold col-span-2 lg:col-span-1 lg:text-right"><?php echo e(__('Instructions')); ?>:</div> <div class="col-span-2 lg:col-span-1" x-data="{open : false}"> <?php if(substr_count($contest->instructions, "\n") <= 4 && Str::wordCount($contest->instructions) < 100): ?> <div class="text-sm overflow-x-auto"><?php echo nl2br($contest->instructions); ?></div> <?php else: ?> <div class="text-sm overflow-x-auto pt-1" :class="open ? 'line-clamp-none' : 'line-clamp-5'"> <div class="text-center lg:text-left italic cursor-pointer mb-2 font-semibold" x-show="!open" x-on:click="open = !open"><span class="italic fa-solid fa-angles-down mr-1"></span><?php echo e(__('Click to expand...')); ?> </div> <?php echo nl2br($contest->instructions); ?> <div class="text-center lg:text-left italic cursor-pointer mt-2 font-semibold" x-show="open" x-on:click="open = !open"><span class="italic fa-solid fa-angles-up mr-1"></span><?php echo e(__('Click to shrink...')); ?></div> </div> <?php endif; ?> </div> <?php if(!empty($contest->legend)): ?> <div class="font-bold col-span-2 lg:col-span-1 lg:text-right"><?php echo e(__('Legend or stages description')); ?>: </div> <div class="col-span-2 lg:col-span-1" x-data="{open : false}"> <?php if(substr_count($contest->legend, "\n") <= 4 && Str::wordCount($contest->legend) < 100): ?> <div class="text-sm overflow-x-auto"><?php echo nl2br($contest->legend); ?></div> <?php else: ?> <div class="text-sm overflow-x-auto pt-1" :class="open ? 'line-clamp-none' : 'line-clamp-5'"> <div class="text-center lg:text-left italic cursor-pointer mb-2 font-semibold" x-show="!open" x-on:click="open = !open"><span class="italic fa-solid fa-angles-down mr-1"></span><?php echo e(__('Click to expand...')); ?> </div> <?php echo nl2br($contest->legend); ?> <div class="text-center lg:text-left italic cursor-pointer mt-2 font-semibold" x-show="open" x-on:click="open = !open"><span class="italic fa-solid fa-angles-up mr-1"></span><?php echo e(__('Click to shrink...')); ?> </div> </div> <?php endif; ?> </div> <?php endif; ?> <?php if(!empty($contest->restrictionstext)): ?> <div class="font-bold col-span-2 lg:col-span-1 lg:text-right"><?php echo e(__('Other requirements or restrictions')); ?> : </div> <div class="col-span-2 lg:col-span-1"> <div class="pt-1 text-sm overflow-x-auto"><?php echo nl2br($contest->restrictionstext); ?></div> </div> <?php endif; ?> <?php if($contest->partnersArr): ?> <div class="font-bold col-span-2 lg:col-span-1 lg:text-right"><?php echo e(__('Partners or sponsors')); ?>:</div> <div class="col-span-2 lg:col-span-1"> <div class="pt-1"> <?php $__currentLoopData = $contest->partnersArr; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $partner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(array_key_exists('url', $partner)): ?> <div class="text-sm"><a target="_blank" class="font-bold underline" href="<?php echo e($partner['url']); ?>"><?php echo e($partner['name']); ?></a></div> <?php else: ?> <div class="text-sm"><?php echo e($partner['name']); ?></div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php endif; ?> </div> <?php if(!$contest->isAfterContest && $contest->registrations->where('user_id', Auth::user()?->id)->isNotEmpty()): ?> <div class="text-lg text-center font-bold border-t pt-2 mt-6 mb-2"><?php echo e(__('Your registrations')); ?></div> <ul class="list-none text-center"> <?php $__currentLoopData = $contest->registrations->where('user_id', Auth::user()?->id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $regs): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li> <a href="<?php echo e(route('registration.show', $regs->id)); ?>"> <?php echo e(__('Squad')); ?>: <?php echo e($regs->squad == 0 ? 'R' : $regs->squad); ?>; <?php if($regs->division): ?> <?php echo e(__('Division')); ?>: <?php echo e(__('contest.' . $regs->division->division)); ?><?php if($regs->notcomp): ?> ; <?php echo e(__('Not competing')); ?> <?php endif; ?>; <?php endif; ?> <?php if($regs->paid): ?> <?php echo e(__('Paid')); ?> <?php else: ?> <?php echo e(__('Not paid')); ?> <?php endif; ?> </a> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <?php endif; ?> </div> <div class="w-full lg:w-3/4 mt-6 m-auto"> <?php if(isset($results)): ?> <?php $template = 'contests.results.overview'; switch ($contest->contest_level_id) { case \App\Enums\ContestLevelEnum::SZSCLASSIFICATION->value: $template = 'contests.results.szclassification'; break; } ?> <?php if($contest->results_published): ?> <div class="border-t"><?php echo $__env->make($template, $results, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></div> <?php else: ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('update', $contest)): ?> <div class="border-t"><?php echo $__env->make($template, $results, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></div> <?php endif; ?> <?php endif; ?> <?php else: ?> <?php if($contest->isRegActive): ?> <?php if(auth()->guard()->check()): ?> <div class="border-t"><?php echo $__env->make('contests.registration', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></div> <?php else: ?> <div class="border-t"><?php echo $__env->make('contests.regoverview', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></div> <?php endif; ?> <?php elseif($contest->isAfterReg && !$contest->isAfterContest): ?> <div class="border-t"><?php echo $__env->make('contests.regoverview', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></div> <?php endif; ?> <?php endif; ?> </div> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?> <?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?> <?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?> <?php endif; ?> <?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?> <?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?> <?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?> <?php endif; ?> <?php /**PATH /www/loslex/production/resources/views/contests/show.blade.php ENDPATH**/ ?>