%PDF- %PDF-
Direktori : /www/loslex/production/storage/framework/views/ |
Current File : //www/loslex/production/storage/framework/views/fb048e343fe3d6bde251bc2acbb22de8.php |
<div wire:key="<?php echo e($contest->id); ?>" class="<?php echo \Illuminate\Support\Arr::toCssClasses(['w-full md:w-4/5 border hover:border-sky-600 dark:border-gray-500 rounded-md mx-auto mb-1 p-2 grid grid-cols-contest md:grid-cols-contestmd gap-2', 'bg-gray-100 dark:bg-gray-700' => $contest->published != \App\Enums\ContestPublicationStatusEnum::PUBLISHED]); ?>"> <div class="uppercase text-center whitespace-nowrap"> <div class="font-semibold hidden md:block"><?php echo e($contest->date->isoFormat('LL')); ?></div> <div class="text-xs hidden md:block"><?php echo e($contest->dateDow); ?></div> <div class="font-semibold text-xl block md:hidden"><?php echo e($contest->dateDay); ?></div> <div class="font-semibold text-sm block md:hidden"><?php echo e($contest->dateMth); ?></div> <div class="text-xs block md:hidden"><?php echo e($contest->dateDow); ?></div> </div> <div> <div class="items-baseline gap-x-4"> <?php if($contest->results_published): ?><span class="text-amber-400 fa-solid fa-medal" title="<?php echo e(__('Results')); ?>"></span><?php endif; ?> <a class="<?php echo \Illuminate\Support\Arr::toCssClasses(['min-w-max font-semibold uppercase', 'italic' => $contest->isAfterContest]); ?>" href="<?php echo e(route('contest.show', $contest->id)); ?>"><?php echo e($contest->contestname); ?></a> <?php if($contest->published != \App\Enums\ContestPublicationStatusEnum::PUBLISHED): ?> <div class="min-w-max text-xs">(<?php echo e(__('contest.' . $contest->published->name)); ?>)</div> <?php endif; ?> </div> <div class="flex flex-row flex-wrap gap-x-2"> <div><span class="text-xs text-gray-600 dark:text-gray-400 fa-solid fa-people-group"></span> <?php echo e($contest->organizer_group->name); ?></div> <div><span class="text-xs text-gray-600 dark:text-gray-400 fa-solid fa-location-crosshairs"></span> <?php echo e($contest->range->name); ?></div> <?php if($contest->range->region): ?><div><?php echo e(__('region.' . \App\Enums\RangeRegionEnum::from($contest->range->region)->name)); ?></div><?php endif; ?> </div> <div class="flex flex-row flex-wrap gap-2 text-sm"> <div><?php echo e(__('contest.' . $contest->contest_level?->name)); ?> <?php if(!is_null($contest->contest_category)): ?>, <?php echo e(__('contest.' . $contest->contest_category?->name)); ?><?php endif; ?></div> <?php if($contest->registration_type == \App\Enums\ContestRegistrationEnum::ONLINE && ($contest->isRegActive || $contest->isAfterReg) && !$contest->results_published): ?> <div title="<?php echo e(__('Registered shooters')); ?>" class="whitespace-nowrap <?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); ?> <?php if($contest->isRegActive): ?><div class="fa-solid fa-user-pen text-xs text-gray-600 dark:text-gray-400" title="<?php echo e(__('Registration in progress')); ?>"></div><?php endif; ?> </div> <?php else: ?> <div class="text-green-500"><?php echo e($contest->capacity); ?></div> <?php endif; ?> </div> </div> </div> <?php /**PATH /www/loslex/production/resources/views/contests/partials/contest-row.blade.php ENDPATH**/ ?>