%PDF- %PDF-
Direktori : /www/loslex/test/storage/framework/views/ |
Current File : /www/loslex/test/storage/framework/views/bcf05d6b3384ee6aae9748ef07b76a86.php |
<?php $__env->startPush('styles'); ?> <style> /* ::placeholder { font-size: 80%; } */ </style> <?php $__env->stopPush(); ?> <?php $__env->startPush('scripts'); ?> <?php $__scriptKey = '2977520018-0'; ob_start(); ?> <script type="module"> $(document).ready(function() { $('#contestlevel').select2({ placeholder: '<?php echo e(__('All contest types')); ?>', width: 'element', language: { noResults: function() { return ' <?php echo e(__('No results found')); ?>'; }} }); $('#contestregion').select2({ placeholder: '<?php echo e(__('All regions')); ?>', width: 'element', language: { noResults: function() { return ' <?php echo e(__('No results found')); ?>'; }} }); $('#contestcategory').select2({ placeholder: '<?php echo e(__('All weapon types')); ?>', width: 'element', language: { noResults: function() { return ' <?php echo e(__('No results found')); ?>'; }} }); $('#contestrange').select2({ placeholder: '<?php echo e(__('All ranges')); ?>', width: 'element', language: { noResults: function() { return ' <?php echo e(__('No results found')); ?>'; }} }) $('#contestlevel').on('change', function() { $wire.set('fcLevel', $(this).val())}) $('#contestcategory').on('change', function() { $wire.set('fcCategory', $(this).val())}) $('#contestregion').on('change', function() { $wire.set('fcRegion', $(this).val())}) $('#contestrange').on('change', function() { $wire.set('fcRange', $(this).val())}) }); Livewire.on('resetSelects', postId => { $('#contestlevel').val('').change(); $('#contestcategory').val('').change(); $('#contestregion').val('').change(); $('#contestrange').val('').change(); }) </script> <?php $__output = ob_get_clean(); \Livewire\store($this)->push('scripts', $__output, $__scriptKey) ?> <?php $__env->stopPush(); ?> <div class="w-full md:w-4/5 mx-auto border dark:border-gray-500 rounded mb-4 p-2" x-data="{ open : $wire.entangle('openFilters').live }"> <div class="text-center cursor-pointer font-semibold text-sm" x-on:click="open = !open"> <div x-show="!open"> <div><span class="fa-solid fa-angles-down mr-1"></span><?php echo e(__('Show filters')); ?></div> <div class="text-xs font-normal" x-show="$wire.filterCount"><?php echo e(trans_choice('contest.filterCount', $filterCount, ['value' => $filterCount ])); ?></div> </div> <div x-show="open"><span class="fa-solid fa-angles-up mr-1"></span><?php echo e(__('Hide filters')); ?></div> </div> <div x-show="open" class="text-left mt-2" x-transition:enter="transition ease-out duration-200" x-transition:enter-start="transform opacity-0 scale-95" x-transition:enter-end="transform opacity-100 scale-100" x-transition:leave="transition ease-in duration-75" x-transition:leave-start="transform opacity-100 scale-100" x-transition:leave-end="transform opacity-0 scale-95"> <div class="mb-2 flex flex-wrap justify-center gap-1 gap-x-4"> <label class="toggleswitchlabel" for="fcHideHistory"><input type="checkbox" class="toggleswitch" id="fcHideHistory" wire:model.live="fcHideHistory" /><?php echo e(__('Hide past contests')); ?></label> <label class="toggleswitchlabel" for="fcregistration"><input type="checkbox" class="toggleswitch" id="fcregistration" wire:model.live="fcRegistration" /><?php echo e(__('Active registration only')); ?></label> </div> <div class="mb-2 grid grid-cols-1 md:grid-cols-2 gap-1 text-start" wire:ignore> <select wire:model="fcLevel" id="contestlevel" multiple> <?php $__currentLoopData = $contestlevels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cl): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option wire:key="<?php echo e($cl->id); ?>" value="<?php echo e($cl->id); ?>"><?php echo e(__('contest.' . $cl->name)); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <select wire:model="fcCategory" id="contestcategory" multiple> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ctg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option wire:key="<?php echo e($ctg->id); ?>" value="<?php echo e($ctg->id); ?>"><?php echo e(__('contest.' . $ctg->name)); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <select wire:model="fcRegion" id="contestregion" multiple> <?php $__currentLoopData = $regions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option wire:key="<?php echo e($rg->value); ?>" value="<?php echo e($rg->value); ?>"><?php echo e(__('region.' . $rg->name)); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <select wire:model="fcRange" id="contestrange" multiple> <?php $__currentLoopData = $ranges; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $range): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option wire:key="<?php echo e($range->id); ?>" value="<?php echo e($range->id); ?>"><?php echo e($range->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <div class="col-span-1 md:col-span-2"> <?php if (isset($component)) { $__componentOriginal18c21970322f9e5c938bc954620c12bb = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal18c21970322f9e5c938bc954620c12bb = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.text-input','data' => ['class' => 'w-full','placeholder' => ''.e(__('Search contest title')).'','wire:model.live.debounce.300ms' => 'fcName']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('text-input'); ?> <?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' => 'w-full','placeholder' => ''.e(__('Search contest title')).'','wire:model.live.debounce.300ms' => 'fcName']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal18c21970322f9e5c938bc954620c12bb)): ?> <?php $attributes = $__attributesOriginal18c21970322f9e5c938bc954620c12bb; ?> <?php unset($__attributesOriginal18c21970322f9e5c938bc954620c12bb); ?> <?php endif; ?> <?php if (isset($__componentOriginal18c21970322f9e5c938bc954620c12bb)): ?> <?php $component = $__componentOriginal18c21970322f9e5c938bc954620c12bb; ?> <?php unset($__componentOriginal18c21970322f9e5c938bc954620c12bb); ?> <?php endif; ?> </div> </div> <div class="flex justify-center"><?php if (isset($component)) { $__componentOriginald411d1792bd6cc877d687758b753742c = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginald411d1792bd6cc877d687758b753742c = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.primary-button','data' => ['wire:click' => 'clearFilter']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('primary-button'); ?> <?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(['wire:click' => 'clearFilter']); ?><?php echo e(__('Reset filters')); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginald411d1792bd6cc877d687758b753742c)): ?> <?php $attributes = $__attributesOriginald411d1792bd6cc877d687758b753742c; ?> <?php unset($__attributesOriginald411d1792bd6cc877d687758b753742c); ?> <?php endif; ?> <?php if (isset($__componentOriginald411d1792bd6cc877d687758b753742c)): ?> <?php $component = $__componentOriginald411d1792bd6cc877d687758b753742c; ?> <?php unset($__componentOriginald411d1792bd6cc877d687758b753742c); ?> <?php endif; ?></div> </div> <div x-show="debugData" x-data="{debugData : false}" x-on:click="debugData = !debugData" > <div>fcHideHistory: <?php echo e(print_r($this->fcHideHistory)); ?></div> <div>fcRegistration: <?php echo e(print_r($this->fcRegistration)); ?></div> <div>fcLevel: <?php echo e(print_r($this->fcLevel)); ?></div> <div>fcRegion: <?php echo e(print_r($this->fcRegion)); ?></div> <div>fcCategory: <?php echo e(print_r($this->fcCategory)); ?></div> <div>fcRange: <?php echo e(print_r($this->fcRange)); ?></div> <div>fcName: <?php echo e(print_r($this->fcName)); ?></div> </div> <div> </div> </div> <?php /**PATH /www/loslex/test/resources/views/livewire/components/contest-filter.blade.php ENDPATH**/ ?>