Viewing file: b3f943021b8916b5ef5029cb661f3d8a.php (5.35 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div> <?php if($total != 0): ?> <div class="grid gap-6 grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-2 xl:grid-cols-3"> <?php $__currentLoopData = $ad_data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ad): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if (isset($component)) { $__componentOriginal1e475bc73450b1a01336b85f187fc6e2 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal1e475bc73450b1a01336b85f187fc6e2 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.ad-card.card','data' => ['ad' => $ad]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.ad-card.card'); ?> <?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(['ad' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($ad)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal1e475bc73450b1a01336b85f187fc6e2)): ?> <?php $attributes = $__attributesOriginal1e475bc73450b1a01336b85f187fc6e2; ?> <?php unset($__attributesOriginal1e475bc73450b1a01336b85f187fc6e2); ?> <?php endif; ?> <?php if (isset($__componentOriginal1e475bc73450b1a01336b85f187fc6e2)): ?> <?php $component = $__componentOriginal1e475bc73450b1a01336b85f187fc6e2; ?> <?php unset($__componentOriginal1e475bc73450b1a01336b85f187fc6e2); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php else: ?> <?php if (isset($component)) { $__componentOriginal1d4836cf2a383e6bf24022dc2d7bd279 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal1d4836cf2a383e6bf24022dc2d7bd279 = $attributes; } ?> <?php $component = App\View\Components\NotFound2::resolve(['message' => ''.e(__('no_ads_found')).''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('not-found2'); ?> <?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\NotFound2::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($__attributesOriginal1d4836cf2a383e6bf24022dc2d7bd279)): ?> <?php $attributes = $__attributesOriginal1d4836cf2a383e6bf24022dc2d7bd279; ?> <?php unset($__attributesOriginal1d4836cf2a383e6bf24022dc2d7bd279); ?> <?php endif; ?> <?php if (isset($__componentOriginal1d4836cf2a383e6bf24022dc2d7bd279)): ?> <?php $component = $__componentOriginal1d4836cf2a383e6bf24022dc2d7bd279; ?> <?php unset($__componentOriginal1d4836cf2a383e6bf24022dc2d7bd279); ?> <?php endif; ?> <?php endif; ?>
<?php if($ad_data->count() > 0): ?> <div class="load-more mt-6"> <?php if($loadButton && $total >= 9): ?> <?php if(count($ad_data) >= $total): ?> <div class="text-center"><?php echo e(__('no_more_ads_found')); ?></div> <?php else: ?> <div> <button wire:click="loadMore" wire:loading.attr="disabled" class="btn-load-more flex shrink-0 p-[0.5rem_1rem] justify-center items-center rounded-[0.375rem] border border-gray-100 shadow-[0px_1px_2px_0px_rgba(28, 33, 38, 0.05)] heading-08 text-gray-700 hover:text-white transition-all duration-100 hover:bg-primary-500 mx-auto"> <span wire:loading wire:target="loadMore"> <?php echo e(__('loading')); ?>... </span> <span wire:loading.remove> <span><?php echo e(__('load_more')); ?></span> </span> </button> </div> <?php endif; ?> <?php endif; ?> </div> <?php endif; ?>
</div> <?php $__env->startPush('js'); ?> <script> let isToastVisible = false;
window.addEventListener('alert', event => { if (!isToastVisible) { isToastVisible = true;
toastr.clear();
toastr.options = { "closeButton": true, "progressBar": false, "onHidden": function () { isToastVisible = false; } };
toastr[event.detail.type]( event.detail.message, event.detail.title ?? '' ); } }); </script> <?php $__env->stopPush(); ?> <?php /**PATH /home/picotech/domains/classify.picotech.app/public_html/resources/views/livewire/seller-ad.blade.php ENDPATH**/ ?>
|