12345678910111213141516171819202122232425262728 |
- <?php
- $best_selling_products = Cache::remember('best_selling_products', 86400, function () {
- return filter_products(\App\Models\Product::query()->from("products as p")->where('published', 1)->orderBy('num_of_sale', 'desc'))->limit(20)->get();
- });
- ?>
- <?php if(get_setting('best_selling') == 1): ?>
- <section class="mb-4">
- <div class="container">
- <div class="px-2 py-4 px-md-4 py-md-3 bg-white shadow-sm rounded">
- <div class="d-flex mb-3 align-items-baseline border-bottom">
- <h3 class="h5 fw-700 mb-0">
- <span class="border-bottom border-primary border-width-2 pb-3 d-inline-block"><?php echo e(translate('Best Selling')); ?></span>
- </h3>
- <a href="javascript:void(0)" class="ml-auto mr-0 btn btn-primary btn-sm shadow-md"><?php echo e(translate('Top 20')); ?></a>
- </div>
- <div class="aiz-carousel gutters-10 half-outside-arrow" data-items="6" data-xl-items="5" data-lg-items="4" data-md-items="3" data-sm-items="2" data-xs-items="2" data-arrows='true' data-infinite='true'>
- <?php $__currentLoopData = $best_selling_products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- <div class="carousel-box">
- <?php echo $__env->make('frontend.partials.product_box_1',['product' => $product], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
- </div>
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- </div>
- </div>
- </div>
- </section>
- <?php endif; ?>
- <?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/frontend/partials/best_selling_section.blade.php ENDPATH**/ ?>
|