766a281bfc7c2f70a35128a930cf39067229e253.php 1.7 KB

1234567891011121314151617181920212223242526
  1. <?php
  2. $featured_products = Cache::remember('featured_products', 3600, function () {
  3. return filter_products(\App\Models\Product::query()->from("products as p")->where('published', 1)->where('featured', '1'))->limit(12)->get();
  4. });
  5. ?>
  6. <?php if(count($featured_products) > 0): ?>
  7. <section class="mb-4">
  8. <div class="container">
  9. <div class="px-2 py-4 px-md-4 py-md-3 bg-white shadow-sm rounded">
  10. <div class="d-flex mb-3 align-items-baseline border-bottom">
  11. <h3 class="h5 fw-700 mb-0">
  12. <span class="border-bottom border-primary border-width-2 pb-3 d-inline-block"><?php echo e(translate('Featured Products')); ?></span>
  13. </h3>
  14. </div>
  15. <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'>
  16. <?php $__currentLoopData = $featured_products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  17. <div class="carousel-box">
  18. <?php echo $__env->make('frontend.partials.product_box_1',['product' => $product], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  19. </div>
  20. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  21. </div>
  22. </div>
  23. </div>
  24. </section>
  25. <?php endif; ?><?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/frontend/partials/featured_products_section.blade.php ENDPATH**/ ?>