Viewing file: 26d1ac37b89a4dc77bced83712dfaf54.php (17.32 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?> <?php foreach($attributes->onlyProps([ // 'featured' => false, // 'highlight' => false, // 'urgent' => false, 'top_ad' => false, 'bump_up' => false, 'ad' => null, ]) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> <?php $attributes = $attributes->exceptProps([ // 'featured' => false, // 'highlight' => false, // 'urgent' => false, 'top_ad' => false, 'bump_up' => false, 'ad' => null, ]); ?> <?php foreach (array_filter(([ // 'featured' => false, // 'highlight' => false, // 'urgent' => false, 'top_ad' => false, 'bump_up' => false, 'ad' => null, ]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> <?php $__defined_vars = get_defined_vars(); ?> <?php foreach ($attributes as $__key => $__value) { if (array_key_exists($__key, $__defined_vars)) unset($$__key); } ?> <?php unset($__defined_vars); ?>
<?php $today = now()->format('Y-m-d'); $allow_featured = $ad->featured && Carbon\Carbon::parse($ad->featured_till)->format('Y-m-d') >= $today; $allow_highlight = $ad->highlight && Carbon\Carbon::parse($ad->highlight_till)->format('Y-m-d') >= $today; $allow_urgent = $ad->urgent && Carbon\Carbon::parse($ad->urgent_till)->format('Y-m-d') >= $today; $allow_top_ad = $ad->top && Carbon\Carbon::parse($ad->top_till)->format('Y-m-d') >= $today; $allow_bump_up = $ad->bump_up && Carbon\Carbon::parse($ad->bump_up_till)->format('Y-m-d') >= $today; ?>
<a href="<?php echo e(route('frontend.addetails', $ad?->slug)); ?>" class="bg-white dark:bg-gray-700 group relative overflow-hidden flex flex-col gap-4 pb-4 listing-card w-full hover:-translate-y-1 <?php echo e(!$bump_up && !$top_ad && $allow_featured ? 'featured' : ''); ?>
<?php echo e($allow_highlight ? 'highlighted' : ''); ?>
<?php echo e($top_ad && $allow_top_ad ? 'highlighted' : ''); ?>
<?php echo e($bump_up && $allow_bump_up ? 'highlighted' : ''); ?>
"> <div class="w-full overflow-hidden relative"> <img class="w-full object-cover min-h-[220px] max-h-[220px]" src="<?php echo e($ad?->image_url ?? ''); ?>" alt=""> <button onclick="openModal(event)" class="absolute bottom-0 start-0 w-full bg-[rgba(23,104,224,0.8)] py-2 text-white text-center transition-all duration-300 translate-y-full invisible group-hover:visible group-hover:translate-y-0" type="button" data-drawer-target="ad-details_offcanvas_<?php echo e($ad->id); ?>" data-drawer-show="ad-details_offcanvas_<?php echo e($ad->id); ?>" data-drawer-placement="right" aria-controls="ad-details_offcanvas_<?php echo e($ad->id); ?>">Quick View</button> </div> <div class="w-full px-4 flex flex-col gap-2.5"> <div> <h2 class="heading-06 text-start text-error-500"> <?php echo e(changeCurrency($ad?->price)); ?>
</h2> <h3 class="body-md-500 text-start text-gray-900 dark:text-white line-clamp-1"> <?php echo e($ad?->title ?? ''); ?>
</h3> </div> <ul class="flex flex-col gap-2.5"> <li class="flex gap-1.5 items-center body-sm-400 text-gray-700 dark:text-white/70"> <?php if (isset($component)) { $__componentOriginalffc30f6972d79473ce8e823198379474 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalffc30f6972d79473ce8e823198379474 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.heroicons.location','data' => ['class' => 'w-5 h-5']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.heroicons.location'); ?> <?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-5 h-5']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalffc30f6972d79473ce8e823198379474)): ?> <?php $attributes = $__attributesOriginalffc30f6972d79473ce8e823198379474; ?> <?php unset($__attributesOriginalffc30f6972d79473ce8e823198379474); ?> <?php endif; ?> <?php if (isset($__componentOriginalffc30f6972d79473ce8e823198379474)): ?> <?php $component = $__componentOriginalffc30f6972d79473ce8e823198379474; ?> <?php unset($__componentOriginalffc30f6972d79473ce8e823198379474); ?> <?php endif; ?> <span class="line-clamp-1"> <?php echo e($ad?->country ?? ''); ?>
</span> </li> <li class="flex gap-1.5 items-center body-sm-400 text-gray-700 dark:text-white/70"> <?php if (isset($component)) { $__componentOriginale9647abb95c82e415fee83f87be0ee45 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginale9647abb95c82e415fee83f87be0ee45 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.heroicons.stack','data' => ['class' => 'w-5 h-5']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.heroicons.stack'); ?> <?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-5 h-5']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginale9647abb95c82e415fee83f87be0ee45)): ?> <?php $attributes = $__attributesOriginale9647abb95c82e415fee83f87be0ee45; ?> <?php unset($__attributesOriginale9647abb95c82e415fee83f87be0ee45); ?> <?php endif; ?> <?php if (isset($__componentOriginale9647abb95c82e415fee83f87be0ee45)): ?> <?php $component = $__componentOriginale9647abb95c82e415fee83f87be0ee45; ?> <?php unset($__componentOriginale9647abb95c82e415fee83f87be0ee45); ?> <?php endif; ?> <span class="line-clamp-1"> <?php echo e($ad?->category?->name ?? ''); ?>
</span> </li> </ul> </div> <div class="w-full px-4 flex justify-between items-center"> <p class="body-xs-400 text-gray-500 dark:text-white/50"> <?php echo e(humanTime($ad?->created_at)); ?>
</p> <div class="flex gap-2 items-center"> <?php if(!$bump_up && !$top_ad && $allow_featured): ?> <p class="inline-flex gap-1 text-primary-500 caption-04 items-center"> <?php if (isset($component)) { $__componentOriginal6ecb0acbff6403d7d881bc5f7caea75a = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal6ecb0acbff6403d7d881bc5f7caea75a = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.heroicons.featured','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.heroicons.featured'); ?> <?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($__attributesOriginal6ecb0acbff6403d7d881bc5f7caea75a)): ?> <?php $attributes = $__attributesOriginal6ecb0acbff6403d7d881bc5f7caea75a; ?> <?php unset($__attributesOriginal6ecb0acbff6403d7d881bc5f7caea75a); ?> <?php endif; ?> <?php if (isset($__componentOriginal6ecb0acbff6403d7d881bc5f7caea75a)): ?> <?php $component = $__componentOriginal6ecb0acbff6403d7d881bc5f7caea75a; ?> <?php unset($__componentOriginal6ecb0acbff6403d7d881bc5f7caea75a); ?> <?php endif; ?> <span><?php echo e(__('fetaured')); ?></span> </p> <?php endif; ?>
<?php if($bump_up && $allow_bump_up): ?> <p class="inline-flex justify-center items-center" title="<?php echo e(__('bump_up_listing')); ?>"> <?php if (isset($component)) { $__componentOriginal4433bf6d5f2e0875ecf2bf52412ca7ff = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4433bf6d5f2e0875ecf2bf52412ca7ff = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.bump-up','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.bump-up'); ?> <?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($__attributesOriginal4433bf6d5f2e0875ecf2bf52412ca7ff)): ?> <?php $attributes = $__attributesOriginal4433bf6d5f2e0875ecf2bf52412ca7ff; ?> <?php unset($__attributesOriginal4433bf6d5f2e0875ecf2bf52412ca7ff); ?> <?php endif; ?> <?php if (isset($__componentOriginal4433bf6d5f2e0875ecf2bf52412ca7ff)): ?> <?php $component = $__componentOriginal4433bf6d5f2e0875ecf2bf52412ca7ff; ?> <?php unset($__componentOriginal4433bf6d5f2e0875ecf2bf52412ca7ff); ?> <?php endif; ?> </p> <?php endif; ?> </div> </div>
<?php if($allow_urgent): ?> <span class="urgent-ribbon" title="<?php echo e(__('urgent_listing')); ?>"><?php echo e(__('urgent')); ?></span> <?php endif; ?>
<?php if($top_ad && $allow_top_ad): ?> <span class="absolute top-3 left-3" title="<?php echo e(__('top_listing')); ?>"> <?php if (isset($component)) { $__componentOriginal402275ca84de651ad7354c934ffacedc = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal402275ca84de651ad7354c934ffacedc = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.top-ad','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.top-ad'); ?> <?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($__attributesOriginal402275ca84de651ad7354c934ffacedc)): ?> <?php $attributes = $__attributesOriginal402275ca84de651ad7354c934ffacedc; ?> <?php unset($__attributesOriginal402275ca84de651ad7354c934ffacedc); ?> <?php endif; ?> <?php if (isset($__componentOriginal402275ca84de651ad7354c934ffacedc)): ?> <?php $component = $__componentOriginal402275ca84de651ad7354c934ffacedc; ?> <?php unset($__componentOriginal402275ca84de651ad7354c934ffacedc); ?> <?php endif; ?> </span> <?php endif; ?> </a>
<!-- drawer component --> <?php if (isset($component)) { $__componentOriginalac68b42bba2fcd9d7a792bfcd590dccd = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalac68b42bba2fcd9d7a792bfcd590dccd = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.ad-card.card-drawer','data' => ['ad' => $ad]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.ad-card.card-drawer'); ?> <?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($__attributesOriginalac68b42bba2fcd9d7a792bfcd590dccd)): ?> <?php $attributes = $__attributesOriginalac68b42bba2fcd9d7a792bfcd590dccd; ?> <?php unset($__attributesOriginalac68b42bba2fcd9d7a792bfcd590dccd); ?> <?php endif; ?> <?php if (isset($__componentOriginalac68b42bba2fcd9d7a792bfcd590dccd)): ?> <?php $component = $__componentOriginalac68b42bba2fcd9d7a792bfcd590dccd; ?> <?php unset($__componentOriginalac68b42bba2fcd9d7a792bfcd590dccd); ?> <?php endif; ?>
<?php $__env->startPush('css'); ?> <style> .galleryView { height: 520px; width: 100%; }
@media (max-width: 767px) { .galleryView { height: 320px; } }
@media (max-width: 525px) { .galleryView { height: 250px; } }
.swiper.galleryList { height: 60px; box-sizing: border-box; padding: 0; }
.galleryList .swiper-slide { width: 80px !important; height: 100%; border-radius: 6px; border: 1px solid var(--gray-100); }
.galleryList .swiper-slide-thumb-active { opacity: 1; border: 3px solid var(--primary-500); }
.galleryList .swiper-slide img { height: 100%; object-fit: cover; }
.galleryList .swiper-slide { text-align: center; font-size: 18px; background: #fff; display: -webkit-box; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; -webkit-align-items: center; align-items: center; padding: 10px }
.galleryList .swiper-slide img { height: 100%; object-fit: cover; }
.galleryView .swiper-button-prev, .galleryView .swiper-button-next { width: 24px; height: 24px; border-radius: 124px; background: rgba(0, 0, 0, 0.50); padding: 6px; transition: all 0.4s ease-in; }
.galleryView .swiper-button-prev:hover, .galleryView .swiper-button-next:hover { background: var(--primary-500); }
.galleryView .swiper-button-next:after { content: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.125 2.25L7.875 6L4.125 9.75' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"); font-size: unset; }
.galleryView .swiper-button-prev:after { content: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.125 2.25L7.875 6L4.125 9.75' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"); font-size: unset; transform: rotate(180deg) } </style> <?php $__env->stopPush(); ?>
<?php $__env->startPush('js'); ?> <script> function openModal(event) { console.log(event); event.preventDefault(); } </script> <?php $__env->stopPush(); ?> <?php /**PATH /home/picotech/domains/classify.picotech.app/public_html/resources/views/components/frontend/ad-card/card.blade.php ENDPATH**/ ?>
|