<?php
    $topSellingProducts = \App\Models\Product::topSales(12);
?>

<?php if($topSellingProducts->count()): ?>
    <?php
        $content = getContent('top_selling_products.content', true);
    ?>
    <section class="site-section best-selling-section my-60">
        <div class="container">
            <div class="section-header left-style">
                <h5 class="title"><?php echo e(__(@$content->data_values->title)); ?></h5>
            </div>
            <div class="top-selling-products">
                <?php $__currentLoopData = $topSellingProducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="best-sell-item">
                        <div class="best-sell-inner d-flex flex-wrap">
                            <div class="thumb">
                                <a href="<?php echo e($product->link()); ?>">
                                    <img src="<?php echo e(getImage(null)); ?>" data-src="<?php echo e($product->mainImage()); ?>" class="lazyload" alt="products">
                                </a>
                            </div>

                            <div class="content">
                                <h6 class="title">
                                    <a href="<?php echo e($product->link()); ?>"><?php echo e(__($product->name)); ?></a>
                                </h6>

                                <?php if(gs('product_review')): ?>
                                <div class="ratings-area mb-1">
                                    <span class="ratings">
                                        <?php echo displayRating($product->reviews_avg_rating) ?>
                                    </span>
                                    <?php if($product->reviews_count): ?>
                                    <span>(<?php echo e($product->reviews_count); ?>)</span>
                                    <?php endif; ?>
                                </div>
                                <?php endif; ?>

                                <div class="price fw-500">
                                    <?php
                                        echo $product->formattedPrice();
                                    ?>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
    </section>
<?php endif; ?>
<?php /**PATH /home/creativedesignbd/ecommerce8.creativedesign.com.bd/core/resources/views/templates/basic/sections/top_selling_products.blade.php ENDPATH**/ ?>