Viewing file: 17cd4387d4aad4878c29f5d93a61b4c0.php (20.66 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', __('home')); ?>
<?php $__env->startSection('meta'); ?> <?php $data = metaData('home'); ?>
<meta name="title" content="<?php echo e($data->title); ?>"> <meta name="description" content="<?php echo e($data->description); ?>">
<meta property="og:image" content="<?php echo e($data->image_url); ?>" /> <meta property="og:site_name" content="<?php echo e(config('app.name')); ?>"> <meta property="og:title" content="<?php echo e($data->title); ?>"> <meta property="og:url" content="<?php echo e(route('frontend.index')); ?>"> <meta property="og:type" content="article"> <meta property="og:description" content="<?php echo e($data->description); ?>">
<meta name=twitter:card content=<?php echo e($data->image_url); ?> /> <meta name=twitter:site content="<?php echo e(config('app.name')); ?>" /> <meta name=twitter:url content="<?php echo e(route('frontend.index')); ?>" /> <meta name=twitter:title content="<?php echo e($data->title); ?>" /> <meta name=twitter:description content="<?php echo e($data->description); ?>" /> <meta name=twitter:image content="<?php echo e($data->image_url); ?>" /> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Hero Section --> <?php if($sliders->count() > 0): ?> <section class="home-slider dark:bg-gray-900"> <div class="container px-0 lg:px-[1rem]"> <div class="swiper hero-banner relative"> <div class="swiper-wrapper">
<?php $__currentLoopData = $sliders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slider): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="swiper-slide"> <img class="w-full xl:h-[420px] md:h-[350px] h-[280px] object-cover" src="<?php echo e($slider->ImageUrl); ?>" alt=""> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <div class="banner-slider-next absolute right-4 top-1/2 z-50 -translate-y-1/2 hover:shadow-md cursor-pointer inline-flex justify-end items-center bg-white w-[22px] h-[22px] rounded-full p-[5px]"> <?php if (isset($component)) { $__componentOriginald75b38ad4e9cbdf91069a76ddc2c7920 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginald75b38ad4e9cbdf91069a76ddc2c7920 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.right-icon','data' => ['stroke' => '#1768E0']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.right-icon'); ?> <?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(['stroke' => '#1768E0']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginald75b38ad4e9cbdf91069a76ddc2c7920)): ?> <?php $attributes = $__attributesOriginald75b38ad4e9cbdf91069a76ddc2c7920; ?> <?php unset($__attributesOriginald75b38ad4e9cbdf91069a76ddc2c7920); ?> <?php endif; ?> <?php if (isset($__componentOriginald75b38ad4e9cbdf91069a76ddc2c7920)): ?> <?php $component = $__componentOriginald75b38ad4e9cbdf91069a76ddc2c7920; ?> <?php unset($__componentOriginald75b38ad4e9cbdf91069a76ddc2c7920); ?> <?php endif; ?> </div> <div class="banner-slider-prev absolute left-4 top-1/2 z-50 -translate-y-1/2 hover:shadow-md cursor-pointer inline-flex justify-end items-center bg-white w-[22px] h-[22px] rounded-full p-[5px]"> <?php if (isset($component)) { $__componentOriginal34a73b4df429fd6e8cafe8369f64c087 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal34a73b4df429fd6e8cafe8369f64c087 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.left-icon','data' => ['stroke' => '#1768E0']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.left-icon'); ?> <?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(['stroke' => '#1768E0']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal34a73b4df429fd6e8cafe8369f64c087)): ?> <?php $attributes = $__attributesOriginal34a73b4df429fd6e8cafe8369f64c087; ?> <?php unset($__attributesOriginal34a73b4df429fd6e8cafe8369f64c087); ?> <?php endif; ?> <?php if (isset($__componentOriginal34a73b4df429fd6e8cafe8369f64c087)): ?> <?php $component = $__componentOriginal34a73b4df429fd6e8cafe8369f64c087; ?> <?php unset($__componentOriginal34a73b4df429fd6e8cafe8369f64c087); ?> <?php endif; ?> </div> <div class="banner-slider-pagination z-50 flex justify-center gap-2.5 !absolute !bottom-6 !left-1/2 -translate-x-1/2"> </div> </div> </div> </section> <?php endif; ?>
<!-- Category Section Start --> <?php if($topCategories->count() > 0): ?> <section class="py-16 bg-gray-50 dark:bg-gray-800"> <div class="container"> <h2 class="text-center heading-03 text-gray-900 dark:text-white mb-8"><?php echo e(__('top_category')); ?></h2> <div class="grid xl:grid-cols-4 lg:grid-cols-3 sm:grid-cols-2 gap-6"> <?php $__currentLoopData = $topCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a href="<?php echo e(route('frontend.ads.category', $category['slug'])); ?>" class="p-4 transition-all duration-300 hover:shadow-sm flex gap-3.5 items-center rounded-lg border border-primary-50 dark:border-gray-500 hover:-translate-y-1 bg-white dark:bg-white/10 hover:border-primary-100 hover:bg-primary-50 hover:dark:bg-gray-500"> <img class="w-14 h-14 object-contain" src="<?php echo e($category->image); ?>" alt=""> <div> <h3 class="heading-07 dark:text-white line-clamp-1"><?php echo e($category->name); ?></h3> <p class="body-base-400 dark:text-white mt-2"><?php echo e($category->ad_count ?? 0); ?> <?php echo e(__('ads')); ?></p> </div> </a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </section> <?php endif; ?> <!-- Category Section End -->
<!-- google adsense area --> <?php if(advertisementCode('home_page_center')): ?> <div class="container my-4"> <?php echo advertisementCode('home_page_center'); ?>
</div> <?php endif; ?>
<!-- google adsense area end -->
<!-- Featured Listing Section --> <?php if($featured_ads->count() > 0): ?> <section class="py-16 bg-white dark:bg-gray-900"> <div class="container"> <h2 class="heading-03 text-center dark:text-white mb-8"><?php echo e(__('featured_listing')); ?></h2> <div class="grid gap-6 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"> <?php $__empty_1 = true; $__currentLoopData = $featured_ads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ad): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <?php if($loop->index == 2): ?> <!-- google adsense area --> <?php if(advertisementCode('ad_listing_page_inside_ad')): ?> <div class="h-[400px] max-h-[400px]"> <?php echo advertisementCode('ad_listing_page_inside_ad'); ?>
</div> <?php endif; ?> <?php elseif($loop->index == 9): ?> <?php if(advertisementCode('ad_listing_page_left')): ?> <div class="h-[400px] max-h-[400px]"> <?php echo advertisementCode('ad_listing_page_left'); ?>
</div> <?php endif; ?> <?php else: ?> <?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' => ['featured' => $ad->featured,'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(['featured' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($ad->featured),'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 endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <div class="col-span-full flex justify-center items-center"> <?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; ?> </div> <?php endif; ?> </div> </div> </section> <?php endif; ?> <!-- Latest Listing Section --> <?php if($latest_ads->count() > 0): ?> <section class="pt-16 dark:pb-16 bg-gray-50 dark:bg-gray-800"> <div class="container"> <h2 class="heading-03 text-center dark:text-white mb-8"><?php echo e(__('latest_ads')); ?></h2> <div class="grid gap-6 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"> <?php $__currentLoopData = $latest_ads; $__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' => ['featured' => $ad->featured,'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(['featured' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($ad->featured),'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> <div class="mt-8 text-center"> <a href="<?php echo e(route('frontend.ads')); ?>" class="btn-secondary"> <?php if (isset($component)) { $__componentOriginalaff82f5e25571a3aa5db317d7fd41a9a = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalaff82f5e25571a3aa5db317d7fd41a9a = $attributes; } ?> <?php $component = App\View\Components\Svg\SearchIcon::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.search-icon'); ?> <?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\Svg\SearchIcon::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($__attributesOriginalaff82f5e25571a3aa5db317d7fd41a9a)): ?> <?php $attributes = $__attributesOriginalaff82f5e25571a3aa5db317d7fd41a9a; ?> <?php unset($__attributesOriginalaff82f5e25571a3aa5db317d7fd41a9a); ?> <?php endif; ?> <?php if (isset($__componentOriginalaff82f5e25571a3aa5db317d7fd41a9a)): ?> <?php $component = $__componentOriginalaff82f5e25571a3aa5db317d7fd41a9a; ?> <?php unset($__componentOriginalaff82f5e25571a3aa5db317d7fd41a9a); ?> <?php endif; ?> <span><?php echo e(__('browse_all')); ?></span> </a> </div> </div> </section> <?php endif; ?> <!-- CTA Section --> <section class="py-16 dark:bg-gray-800"> <div class="container"> <div class="cta-area p-10 max-w-[984px] mx-auto rounded-2xl"> <div class="flex flex-col md:flex-row gap-6 items-center"> <img src="<?php echo e(asset('frontend/images/cta-illustartion.png')); ?>" alt=""> <div> <h2 class="mb-4 heading-03 text-gray-900 dark:text-gray-50"><?php echo e(__('sell_your_product_with_great_deals')); ?></h2> <p class="mb-6 body-lg-400 text-gray-900 dark:text-gray-100"> <?php echo e(__('pass_on_your_unuse_product_information_to_someone_who_needs_it_more_at_a_fantastic_price_let_us_handle_the_process_while_you_stay_focused_on_your_tasks')); ?>
</p> <a href="<?php echo e(route('frontend.post')); ?>" class="btn-primary !text-base px-5 py-3"> <?php if (isset($component)) { $__componentOriginal8d60e9734f08088023fa1e38c743407d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal8d60e9734f08088023fa1e38c743407d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.plus-circle-icon','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.plus-circle-icon'); ?> <?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($__attributesOriginal8d60e9734f08088023fa1e38c743407d)): ?> <?php $attributes = $__attributesOriginal8d60e9734f08088023fa1e38c743407d; ?> <?php unset($__attributesOriginal8d60e9734f08088023fa1e38c743407d); ?> <?php endif; ?> <?php if (isset($__componentOriginal8d60e9734f08088023fa1e38c743407d)): ?> <?php $component = $__componentOriginal8d60e9734f08088023fa1e38c743407d; ?> <?php unset($__componentOriginal8d60e9734f08088023fa1e38c743407d); ?> <?php endif; ?> <span><?php echo e(__('post_your_listing')); ?></span> </a> </div> </div> </div> </div> </section> <?php $__env->stopSection(); ?>
<?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 echo $__env->make('frontend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\add listing 8-9-25\addListing\resources\views/frontend/homepage/index.blade.php ENDPATH**/ ?>
|