Viewing file: 5d4568526c42cbbf41f03a6341cee961.php (49.44 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="relative lg:pe-[80px] w-full rounded-lg p-4 shadow-[0px_2px_4px_0px_rgba(28,33,38,0.03)] flex flex-col lg:flex-row transition-all duration-100 gap-6 border border-gray-100 dark:border-gray-600 hover:listing-card-gradient" x-data="{ promoteModal: false }"> <div class="flex flex-col lg:flex-row flex-grow lg:items-center gap-4"> <a href="<?php echo e(route('frontend.addetails', $ad->slug)); ?>" class="w-full rounded-md overflow-hidden lg:max-w-[6rem]"> <img src="<?php echo e($ad->thumbnail); ?>" alt="listing img" class="w-full lg:h-auto h-[200px] object-contain" /> </a> <div class="sapce-y-2 lg:w-[400px] sm:mt-0 flex flex-col"> <span class="body-sm-500 text-primary-500 dark:text-primary-300"> <?php echo e($ad->category->name); ?>
</span>
<a href="<?php echo e(route('frontend.addetails', $ad->slug)); ?>"> <p class="heading-07 text-gray-900 dark:text-white line-clamp-1 pt-3 lg:pt-0"> <?php echo e($ad->title); ?>
</p> </a> <div class="body-sm-400 text-gray-700 dark:text-gray-300 flex items-center gap-x-1 mt-1 line-clamp-1"> <?php if (isset($component)) { $__componentOriginal7d35939b74b4e725bea0766c97035727 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal7d35939b74b4e725bea0766c97035727 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.locate','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.locate'); ?> <?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($__attributesOriginal7d35939b74b4e725bea0766c97035727)): ?> <?php $attributes = $__attributesOriginal7d35939b74b4e725bea0766c97035727; ?> <?php unset($__attributesOriginal7d35939b74b4e725bea0766c97035727); ?> <?php endif; ?> <?php if (isset($__componentOriginal7d35939b74b4e725bea0766c97035727)): ?> <?php $component = $__componentOriginal7d35939b74b4e725bea0766c97035727; ?> <?php unset($__componentOriginal7d35939b74b4e725bea0766c97035727); ?> <?php endif; ?> <?php echo e($ad->district ? $ad->district . ', ' : ''); ?>
<?php echo e($ad->region ? $ad->region . ', ' : ''); ?>
<?php echo e($ad->country ?? ''); ?>
</div> <div class="flex flex-wrap gap-2 mt-2">
<?php if($ad->featured && now() >= $ad->featured_at && now() <= $ad->featured_till): ?> <span class="text-xs bg-primary-100 dark:bg-gray-500 px-2 py-0.5 rounded"> <?php echo e(__('featured')); ?>
</span> <?php endif; ?>
<?php if($ad->urgent && now() >= $ad->urgent_at && now() <= $ad->urgent_till): ?> <span class="text-xs bg-primary-100 dark:bg-gray-500 px-2 py-0.5 rounded"> <?php echo e(__('urgent')); ?>
</span> <?php endif; ?>
<?php if($ad->highlight && now() >= $ad->highlight_at && now() <= $ad->highlight_till): ?> <span class="text-xs bg-primary-100 dark:bg-gray-500 px-2 py-0.5 rounded"> <?php echo e(__('highlight')); ?>
</span> <?php endif; ?>
<?php if($ad->top && now() >= $ad->top_at && now() <= $ad->top_till): ?> <span class="text-xs bg-primary-100 px-2 py-0.5 rounded"> <?php echo e(__('top')); ?>
</span> <?php endif; ?>
<?php if($ad->bump_up && now() >= $ad->bump_up_at && now() <= $ad->bump_up_till): ?> <span class="text-xs bg-primary-100 dark:bg-gray-500 px-2 py-0.5 rounded"> <?php echo e(__('bump_up')); ?>
</span> <?php endif; ?>
</div> </div> </div> <div class="flex-grow flex flex-col lg:flex-row gap-5 justify-between"> <div class="flex flex-wrap gap-x-6 lg:gap-x-12 gap-y-2.5 flex-grow justify-between items-center"> <div class="space-y-2 self-center"> <h5 class="heading-05 text-error-500 dark:text-error-700"><?php echo e(currentCurrencySymbol()); ?><?php echo e($ad->price); ?></h5> </div>
<div class="space-y-2 flex flex-col items-center justify-center"> <?php if($ad->status == 'active'): ?> <?php if (isset($component)) { $__componentOriginal23a97b2285de026ac0f294ec94e33878 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal23a97b2285de026ac0f294ec94e33878 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.my-listing.active-badge','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.my-listing.active-badge'); ?> <?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($__attributesOriginal23a97b2285de026ac0f294ec94e33878)): ?> <?php $attributes = $__attributesOriginal23a97b2285de026ac0f294ec94e33878; ?> <?php unset($__attributesOriginal23a97b2285de026ac0f294ec94e33878); ?> <?php endif; ?> <?php if (isset($__componentOriginal23a97b2285de026ac0f294ec94e33878)): ?> <?php $component = $__componentOriginal23a97b2285de026ac0f294ec94e33878; ?> <?php unset($__componentOriginal23a97b2285de026ac0f294ec94e33878); ?> <?php endif; ?> <?php elseif($ad->resubmission == '1'): ?> <?php if (isset($component)) { $__componentOriginalc8f8a4e06ea03d008f51b3a05f7b9bc9 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc8f8a4e06ea03d008f51b3a05f7b9bc9 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.my-listing.resubmission-badge','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.my-listing.resubmission-badge'); ?> <?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($__attributesOriginalc8f8a4e06ea03d008f51b3a05f7b9bc9)): ?> <?php $attributes = $__attributesOriginalc8f8a4e06ea03d008f51b3a05f7b9bc9; ?> <?php unset($__attributesOriginalc8f8a4e06ea03d008f51b3a05f7b9bc9); ?> <?php endif; ?> <?php if (isset($__componentOriginalc8f8a4e06ea03d008f51b3a05f7b9bc9)): ?> <?php $component = $__componentOriginalc8f8a4e06ea03d008f51b3a05f7b9bc9; ?> <?php unset($__componentOriginalc8f8a4e06ea03d008f51b3a05f7b9bc9); ?> <?php endif; ?> <?php else: ?> <?php if (isset($component)) { $__componentOriginal910a313de3445ce364ebdb1e9a058eb2 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal910a313de3445ce364ebdb1e9a058eb2 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.my-listing.status','data' => ['status' => $ad->status]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.my-listing.status'); ?> <?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(['status' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($ad->status)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal910a313de3445ce364ebdb1e9a058eb2)): ?> <?php $attributes = $__attributesOriginal910a313de3445ce364ebdb1e9a058eb2; ?> <?php unset($__attributesOriginal910a313de3445ce364ebdb1e9a058eb2); ?> <?php endif; ?> <?php if (isset($__componentOriginal910a313de3445ce364ebdb1e9a058eb2)): ?> <?php $component = $__componentOriginal910a313de3445ce364ebdb1e9a058eb2; ?> <?php unset($__componentOriginal910a313de3445ce364ebdb1e9a058eb2); ?> <?php endif; ?> <?php endif; ?> </div> <div class="body-md-400 whitespace-nowrap justify-end text-gray-700 dark:text-gray-300 flex flex-grow items-center"> <?php echo e($ad->created_at->diffForHumans()); ?>
</div> </div> <div class="absolute z-10 lg:end-5 end-6 lg:top-1/2 lg:-translate-y-1/2 top-[224px]"> <div class="relative group" x-data="{ showMenu: false }" x-init @click.outside="showMenu = false"> <button type="button" @click="showMenu = !showMenu" class="flex items-center justify-center ms-auto text-white bg-gray-100 lg:bg-transparent rounded-full w-9 h-9 lg:hover:bg-gray-100 "> <?php if (isset($component)) { $__componentOriginalfd1a3958364126c3ff5b11cbbe252c6b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalfd1a3958364126c3ff5b11cbbe252c6b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.horizontal-dots','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.horizontal-dots'); ?> <?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($__attributesOriginalfd1a3958364126c3ff5b11cbbe252c6b)): ?> <?php $attributes = $__attributesOriginalfd1a3958364126c3ff5b11cbbe252c6b; ?> <?php unset($__attributesOriginalfd1a3958364126c3ff5b11cbbe252c6b); ?> <?php endif; ?> <?php if (isset($__componentOriginalfd1a3958364126c3ff5b11cbbe252c6b)): ?> <?php $component = $__componentOriginalfd1a3958364126c3ff5b11cbbe252c6b; ?> <?php unset($__componentOriginalfd1a3958364126c3ff5b11cbbe252c6b); ?> <?php endif; ?> </button> <div class="absolute !z-[9999] top-9 right-0" x-cloak x-show="showMenu" x-transition> <ul class=" bg-white dark:bg-gray-900 border border-gray-100 dark:border-gray-600 min-w-[15rem] sm:min-w-[18.3rem] py-3 rounded-lg shadow-[0px_4px_6px_-2px_rgba(16,24,40,0.03),0px_12px_16px_-4px_rgba(16,24,40,0.08)]"> <li> <a href="<?php echo e(route('frontend.addetails', $ad->slug)); ?>" class="btn gap-x-[0.5rem] body-md-400 text-gray-700 dark:text-gray-300 hover:text-gray-900 hover:dark:text-gray-100 hover:bg-primary-50 hover:dark:bg-gray-700 transition-all duration-150 flex items-center px-4 py-[0.62rem]"> <?php if (isset($component)) { $__componentOriginal953cc71ce1820a3af86bd3a841593fc3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal953cc71ce1820a3af86bd3a841593fc3 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.eye','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.eye'); ?> <?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($__attributesOriginal953cc71ce1820a3af86bd3a841593fc3)): ?> <?php $attributes = $__attributesOriginal953cc71ce1820a3af86bd3a841593fc3; ?> <?php unset($__attributesOriginal953cc71ce1820a3af86bd3a841593fc3); ?> <?php endif; ?> <?php if (isset($__componentOriginal953cc71ce1820a3af86bd3a841593fc3)): ?> <?php $component = $__componentOriginal953cc71ce1820a3af86bd3a841593fc3; ?> <?php unset($__componentOriginal953cc71ce1820a3af86bd3a841593fc3); ?> <?php endif; ?> <span class="text-sm font-medium"><?php echo e(__('view_listing_details')); ?></span> </a> </li> <?php if($ad->status == 'active'): ?> <li> <form action="<?php echo e(route('frontend.myad.status', $ad->id)); ?>" method="POST"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <button onclick="return confirm('<?php echo e(__('are_you_sure_you_want_to_sold_this_item')); ?>?');" type="submit" class="gap-x-[0.5rem] w-full body-md-400 text-gray-700 dark:text-gray-300 hover:text-gray-900 hover:dark:text-gray-100 hover:bg-primary-50 hover:dark:bg-gray-700 transition-all duration-150 flex items-center px-4 py-[0.62rem]"> <?php if (isset($component)) { $__componentOriginal3174964cc5a4e0b340fbb2211b642f34 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal3174964cc5a4e0b340fbb2211b642f34 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.cross','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.cross'); ?> <?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($__attributesOriginal3174964cc5a4e0b340fbb2211b642f34)): ?> <?php $attributes = $__attributesOriginal3174964cc5a4e0b340fbb2211b642f34; ?> <?php unset($__attributesOriginal3174964cc5a4e0b340fbb2211b642f34); ?> <?php endif; ?> <?php if (isset($__componentOriginal3174964cc5a4e0b340fbb2211b642f34)): ?> <?php $component = $__componentOriginal3174964cc5a4e0b340fbb2211b642f34; ?> <?php unset($__componentOriginal3174964cc5a4e0b340fbb2211b642f34); ?> <?php endif; ?> <span class="text-sm font-medium"><?php echo e(__('mark_as_sold')); ?></span> </button> </form> </li> <?php endif; ?> <?php if($ad->status == 'sold'): ?> <li> <form action="<?php echo e(route('frontend.myad.status', $ad->id)); ?>" method="POST"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <button onclick="return confirm('<?php echo e(__('are_you_sure_you_want_to_active_this_item')); ?>?');" type="submit" class="gap-x-[0.5rem] w-full body-md-400 text-gray-700 dark:text-gray-300 hover:text-gray-900 hover:dark:text-gray-100 hover:bg-primary-50 hover:dark:bg-gray-700 transition-all duration-150 flex items-center px-4 py-[0.62rem]"> <?php if (isset($component)) { $__componentOriginal21d2b28c467828e300e4204335f4bfb3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal21d2b28c467828e300e4204335f4bfb3 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.check','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.check'); ?> <?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($__attributesOriginal21d2b28c467828e300e4204335f4bfb3)): ?> <?php $attributes = $__attributesOriginal21d2b28c467828e300e4204335f4bfb3; ?> <?php unset($__attributesOriginal21d2b28c467828e300e4204335f4bfb3); ?> <?php endif; ?> <?php if (isset($__componentOriginal21d2b28c467828e300e4204335f4bfb3)): ?> <?php $component = $__componentOriginal21d2b28c467828e300e4204335f4bfb3; ?> <?php unset($__componentOriginal21d2b28c467828e300e4204335f4bfb3); ?> <?php endif; ?> <span class="text-sm font-medium"><?php echo e(__('mark_as_active')); ?></span> </button> </form> </li> <?php endif; ?>
<li> <button @click="showMenu = false" data-modal-target="promote-modal" data-modal-toggle="promote-modal" class="gap-x-[0.5rem] w-full body-md-400 text-gray-700 dark:text-gray-300 hover:text-gray-900 hover:dark:text-gray-100 hover:bg-primary-50 hover:dark:bg-gray-700 transition-all duration-150 flex items-center px-4 py-[0.62rem]"> <?php if (isset($component)) { $__componentOriginal7a2704b2ea05a5d2467cee08ea591efd = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal7a2704b2ea05a5d2467cee08ea591efd = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.promote','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.promote'); ?> <?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($__attributesOriginal7a2704b2ea05a5d2467cee08ea591efd)): ?> <?php $attributes = $__attributesOriginal7a2704b2ea05a5d2467cee08ea591efd; ?> <?php unset($__attributesOriginal7a2704b2ea05a5d2467cee08ea591efd); ?> <?php endif; ?> <?php if (isset($__componentOriginal7a2704b2ea05a5d2467cee08ea591efd)): ?> <?php $component = $__componentOriginal7a2704b2ea05a5d2467cee08ea591efd; ?> <?php unset($__componentOriginal7a2704b2ea05a5d2467cee08ea591efd); ?> <?php endif; ?> <span class="text-sm font-medium"><?php echo e(__('promote_listing')); ?></span> </button> </li> <li> <a href="<?php echo e(route('frontend.post.edit', $ad->slug)); ?>" class="btn gap-x-[0.5rem] body-md-400 text-gray-700 dark:text-gray-300 hover:text-gray-900 hover:dark:text-gray-100 hover:bg-primary-50 hover:dark:bg-gray-700 transition-all duration-150 flex items-center px-4 py-[0.62rem]"> <?php if (isset($component)) { $__componentOriginal517b517e37b9549d06dbae124fb2767e = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal517b517e37b9549d06dbae124fb2767e = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.edit','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.edit'); ?> <?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($__attributesOriginal517b517e37b9549d06dbae124fb2767e)): ?> <?php $attributes = $__attributesOriginal517b517e37b9549d06dbae124fb2767e; ?> <?php unset($__attributesOriginal517b517e37b9549d06dbae124fb2767e); ?> <?php endif; ?> <?php if (isset($__componentOriginal517b517e37b9549d06dbae124fb2767e)): ?> <?php $component = $__componentOriginal517b517e37b9549d06dbae124fb2767e; ?> <?php unset($__componentOriginal517b517e37b9549d06dbae124fb2767e); ?> <?php endif; ?> <span class="text-sm font-medium"><?php echo e(__('edit')); ?></span> </a> </li> <li> <form method="POST" action="<?php echo e(route('frontend.post.delete', $ad->slug)); ?>"> <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?> <button onclick="return confirm('<?php echo e(__('are_you_sure_you_want_to_delete_this_item')); ?>?');" type="submit" class="gap-x-[0.5rem] w-full body-md-400 text-gray-700 dark:text-gray-300 hover:text-gray-900 hover:dark:text-gray-100 hover:bg-primary-50 hover:dark:bg-gray-700 transition-all duration-150 flex items-center px-4 py-[0.62rem]"> <?php if (isset($component)) { $__componentOriginalf13e81c3f89565e61fa03032a7e4143a = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf13e81c3f89565e61fa03032a7e4143a = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.trash','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.trash'); ?> <?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($__attributesOriginalf13e81c3f89565e61fa03032a7e4143a)): ?> <?php $attributes = $__attributesOriginalf13e81c3f89565e61fa03032a7e4143a; ?> <?php unset($__attributesOriginalf13e81c3f89565e61fa03032a7e4143a); ?> <?php endif; ?> <?php if (isset($__componentOriginalf13e81c3f89565e61fa03032a7e4143a)): ?> <?php $component = $__componentOriginalf13e81c3f89565e61fa03032a7e4143a; ?> <?php unset($__componentOriginalf13e81c3f89565e61fa03032a7e4143a); ?> <?php endif; ?> <span class="text-sm font-medium"><?php echo e(__('delete')); ?></span> </button> </form> </li> </ul> </div> </div> </div>
<!-- Promote Listing Modal Start --> <div id="promote-modal" tabindex="-1" aria-hidden="true" class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full"> <div @click.outside="promoteModal = false" class="bg-white p-6 rounded-lg relative w-full max-h-[96vh] my-12 overflow-y-auto max-w-2xl" x-data="{ selectPromote: '' }"> <div class="flex flex-wrap gap-6 justify-between items-center mb-6"> <h2 class="heading-05"><?php echo e(__('choose_promotion_type')); ?></h2> <button data-modal-hide="promote-modal" type="button" class="p-1.5 bg-white hover:bg-primary-50 border border-gray-100 rounded-full"> <?php if (isset($component)) { $__componentOriginalc304dd74657337d378bc05e4f74a1f1b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc304dd74657337d378bc05e4f74a1f1b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.close','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.close'); ?> <?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($__attributesOriginalc304dd74657337d378bc05e4f74a1f1b)): ?> <?php $attributes = $__attributesOriginalc304dd74657337d378bc05e4f74a1f1b; ?> <?php unset($__attributesOriginalc304dd74657337d378bc05e4f74a1f1b); ?> <?php endif; ?> <?php if (isset($__componentOriginalc304dd74657337d378bc05e4f74a1f1b)): ?> <?php $component = $__componentOriginalc304dd74657337d378bc05e4f74a1f1b; ?> <?php unset($__componentOriginalc304dd74657337d378bc05e4f74a1f1b); ?> <?php endif; ?> </button> </div>
<form method="POST" action="<?php echo e(route('frontend.promote-listing', $ad->slug)); ?>"> <?php echo csrf_field(); ?> <div class="promotions-wrapper">
<!-- Promotion Item Start --> <div class="promotion-item mt-3 mb-3"> <input name="featured" type="hidden" value="0"> <?php if($userPlan->featured_limit > 0): ?> <label for="featured" class="flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-gray-50 w-full"> <input <?php if($ad?->featured == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="featured" id="featured" value="1"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/featured-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07"><?php echo e(__('featured_listing')); ?></h3> <p class=""> <?php echo e(__('select_this_promotion_to_make_listing_featured')); ?>
<?php echo e(__('for')); ?>
<?php echo e($plan->featured_duration < 1 ? __('lifetime') : $plan->featured_duration); ?>
<?php if($plan->featured_duration == 1): ?> <?php echo e(__('day')); ?>
<?php else: ?> <?php echo e(__('days')); ?>
<?php endif; ?> </p> </div> </div> </label> <?php else: ?> <label for="featured" class="flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-red-50 w-full"> <input disabled <?php if(old('featured', $ad?->featured ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="featured" id="featured" value="0"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/featured-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07 !text-red-500"> <?php echo e(__('featured_limit')); ?> <?php echo e(__('crossed')); ?>, <a href="<?php echo e(route('frontend.plans-billing')); ?>" class="underline text-blue-500"><?php echo e(__('please_upgrade_plan')); ?></a> </h3> <h3 class="heading-07"><?php echo e(__('featured_listing')); ?></h3> <p class=""> <?php echo e(__('select_this_promotion_to_make_listing_featured')); ?></p> </div> </div> </label> <?php endif; ?> </div> <!-- Promotion Item End -->
<!-- Promotion Item Start --> <div class="promotion-item mt-3 mb-3"> <input name="urgent" type="hidden" value="0"> <?php if($userPlan->urgent_limit > 0): ?> <label for="urgent" class="flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-gray-50 w-full"> <input <?php if($ad?->urgent == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="urgent" id="urgent" value="1"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/urgent-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07"><?php echo e(__('urgent_listing')); ?></h3> <p class=""><?php echo e(__('select_this_promotion_to_make_listing_urgent')); ?>
<?php echo e(__('for')); ?>
<?php echo e($plan->urgent_duration < 1 ? __('lifetime') : $plan->urgent_duration); ?>
<?php if($plan->urgent_duration == 1): ?> <?php echo e(__('day')); ?>
<?php else: ?> <?php echo e(__('days')); ?>
<?php endif; ?> </p> </div> </div> </label> <?php else: ?> <label for="urgent" class="flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-red-50 w-full"> <input disabled <?php if(old('urgent', $ad?->urgent ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="urgent" id="urgent" value="0"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/urgent-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07 !text-red-500"> <?php echo e(__('urgent_limit')); ?> <?php echo e(__('crossed')); ?>, <a href="<?php echo e(route('frontend.plans-billing')); ?>" class="underline text-blue-500"><?php echo e(__('please_upgrade_plan')); ?></a> </h3> <h3 class="heading-07"><?php echo e(__('urgent_listing')); ?></h3> <p class=""><?php echo e(__('select_this_promotion_to_make_listing_urgent')); ?>
</p> </div> </div> </label> <?php endif; ?> </div> <!-- Promotion Item End -->
<!-- Promotion Item Start --> <div class="promotion-item mt-3 mb-3"> <input name="highlight" type="hidden" value="0"> <?php if($userPlan->highlight_limit > 0): ?> <label for="highlight" class="flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-gray-50 w-full"> <input <?php if($ad?->highlight == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="highlight" id="highlight" value="1"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/highlight-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07"><?php echo e(__('highlight_listing')); ?></h3> <p class=""> <?php echo e(__('select_this_promotion_to_make_listing_highlight')); ?>
<?php echo e(__('for')); ?>
<?php echo e($plan->highlight_duration < 1 ? __('lifetime') : $plan->urgent_duration); ?>
<?php if($plan->highlight_duration == 1): ?> <?php echo e(__('day')); ?>
<?php else: ?> <?php echo e(__('days')); ?>
<?php endif; ?> </p> </div> </div> </label> <?php else: ?> <label for="highlight" class="flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-red-50 w-full"> <input disabled <?php if(old('highlight', $ad?->highlight ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="featured" id="featured" value="0"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/highlight-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07 !text-red-500"> <?php echo e(__('highlight_limit')); ?> <?php echo e(__('crossed')); ?>, <a href="<?php echo e(route('frontend.plans-billing')); ?>" class="underline text-blue-500"><?php echo e(__('please_upgrade_plan')); ?></a> </h3> <h3 class="heading-07"><?php echo e(__('highlight_listing')); ?></h3> <p class=""> <?php echo e(__('select_this_promotion_to_make_listing_highlight')); ?></p> </div> </div> </label> <?php endif; ?> </div> <!-- Promotion Item End -->
<!-- Promotion Item Start --> <div class="promotion-item mt-3 mb-3"> <input name="top" type="hidden" value="0"> <?php if($userPlan->top_limit > 0): ?> <label for="top" class="flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-gray-50 w-full"> <input <?php if($ad?->top == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="top" id="top" value="1"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/top-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07"><?php echo e(__('top_listing')); ?></h3> <p class=""><?php echo e(__('select_this_promotion_to_make_listing_top')); ?>
<?php echo e(__('for')); ?>
<?php echo e($plan->top_duration < 1 ? __('lifetime') : $plan->top_duration); ?>
<?php if($plan->top_duration == 1): ?> <?php echo e(__('day')); ?>
<?php else: ?> <?php echo e(__('days')); ?>
<?php endif; ?> </p> </div> </div> </label> <?php else: ?> <label for="top" class="flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-red-50 w-full"> <input disabled <?php if(old('top', $ad?->top ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="top" id="top" value="0"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/top-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07 !text-red-500"> <?php echo e(__('top_limit')); ?> <?php echo e(__('crossed')); ?>, <a href="<?php echo e(route('frontend.plans-billing')); ?>" class="underline text-blue-500"><?php echo e(__('please_upgrade_plan')); ?></a> </h3> <h3 class="heading-07"><?php echo e(__('top_listing')); ?></h3> <p class=""><?php echo e(__('select_this_promotion_to_make_listing_top')); ?>
</p> </div> </div> </label> <?php endif; ?> </div> <!-- Promotion Item End -->
<!-- Promotion Item Start --> <div class="promotion-item mt-3 mb-3"> <input name="bump_up" type="hidden" value="0"> <?php if($userPlan->bump_up_limit > 0): ?> <label for="bump_up" class="flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-gray-50 w-full"> <input <?php if($ad?->bump_up == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="bump_up" id="bump_up" value="1"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/bumpup-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07"><?php echo e(__('bump_up_listing')); ?></h3> <p class=""> <?php echo e(__('select_this_promotion_to_make_listing_bump_up')); ?>
<?php echo e(__('for')); ?>
<?php echo e($plan->bump_up_duration < 1 ? __('lifetime') : $plan->bump_up_duration); ?>
<?php if($plan->bump_up_duration == 1): ?> <?php echo e(__('day')); ?>
<?php else: ?> <?php echo e(__('days')); ?>
<?php endif; ?> </p> </div> </div> </label> <?php else: ?> <label for="bump_up" class="flex promote-ad border-2 border-transparent px-4 py-3 rounded-md bg-red-50 w-full"> <input disabled <?php if(old('bump_up', $ad?->bump_up ?? '') == 1): echo 'checked'; endif; ?> type="checkbox" class="hidden" name="bump_up" id="bump_up" value="0"> <div class="flex align-center"> <img class="h-14" src="<?php echo e(asset('frontend/images/promotions-img/bumpup-promote.svg')); ?>" alt=""> <div class="text-left grow ml-3"> <h3 class="heading-07 !text-red-500"> <?php echo e(__('bump_up_limit')); ?> <?php echo e(__('crossed')); ?>, <a href="<?php echo e(route('frontend.plans-billing')); ?>" class="underline text-blue-500"><?php echo e(__('please_upgrade_plan')); ?></a> </h3> <h3 class="heading-07"><?php echo e(__('bump_up_listing')); ?></h3> <p class=""> <?php echo e(__('select_this_promotion_to_make_listing_bump_up')); ?></p> </div> </div> </label> <?php endif; ?> </div> <!-- Promotion Item End -->
</div>
<div class="mt-4 flex justify-end gap-3 items-center"> <button type="submit" class="btn-primary capitalize"><?php echo e(__('promote_now')); ?></button> <button type="button" class="btn-secondary" data-modal-hide="promote-modal" type="button">Cancel</button> </div> </form> </div> </div> <!-- Promote Listing Modal Start -->
</div> </div>
<?php $__env->startPush('css'); ?> <style> .promote-ad { min-width: 150px; text-align: center; }
.promote-ad:has(input:checked) { border-color: var(--primary-500); background: var(--primary-50); } </style> <?php $__env->stopPush(); ?> <?php /**PATH E:\add listing 8-9-25\addListing\resources\views/components/frontend/my-listing/listing-card.blade.php ENDPATH**/ ?>
|