/home/brandsfa/www/storage/framework/views/12f4d478d0b57acd6fa5cd1bb8c11d86.php
<?php if(isset($product)): ?>
    <div class="container rtl">
        <div class="row g-4 pt-2 mt-0 pb-2 __deal-of align-items-start">
            <div class="col-xl-3 col-md-4">
                <div class="deal_of_the_day h-100 bg--light">
                    <?php if(isset($deal_of_the_day->product)): ?>
                        <div class="d-flex justify-content-center align-items-center py-4">
                            <h4 class="font-bold fs-16 m-0 align-items-center text-uppercase text-center px-2 web-text-primary">
                                <?php echo e(translate('deal_of_the_day')); ?>

                            </h4>
                        </div>
                        <div class="recommended-product-card mt-0 min-height-auto">
                            <div class="d-flex justify-content-center align-items-center __pt-20 __m-20-r">
                                <div class="position-relative">
                                    <img class="__rounded-top aspect-1 h-auto" alt=""
                                         src="<?php echo e(getValidImage(path: 'storage/app/public/product/thumbnail/'.$deal_of_the_day->product['thumbnail'], type: 'product')); ?>">
                                    <?php if($deal_of_the_day->discount > 0): ?>
                                        <span class="for-discount-value p-1 pl-2 pr-2 font-bold fs-13">
                                            <span class="direction-ltr d-block">
                                                <?php if($deal_of_the_day->discount_type == 'percent'): ?>
                                                    -<?php echo e(round($deal_of_the_day->discount,(!empty($decimal_point_settings) ? $decimal_point_settings: 0))); ?>%
                                                <?php elseif($deal_of_the_day->discount_type =='flat'): ?>
                                                    -<?php echo e(webCurrencyConverter(amount: $deal_of_the_day->discount)); ?>

                                                <?php endif; ?>
                                            </span>
                                        </span>
                                    <?php endif; ?>
                                </div>
                            </div>
                            <div class="__i-1 bg-transparent text-center mb-0">
                                <div class="px-0">
                                    <?php ($overallRating = getOverallRating($deal_of_the_day->product['reviews'])); ?>
                                    <?php if($overallRating[0] != 0 ): ?>
                                        <div class="rating-show">
                                            <span class="d-inline-block font-size-sm text-body">
                                                <?php for($inc=1;$inc<=5;$inc++): ?>
                                                    <?php if($inc <= (int)$overallRating[0]): ?>
                                                        <i class="tio-star text-warning"></i>
                                                    <?php elseif($overallRating[0] != 0 && $inc <= (int)$overallRating[0] + 1.1): ?>
                                                        <i class="tio-star-half text-warning"></i>
                                                    <?php else: ?>
                                                        <i class="tio-star-outlined text-warning"></i>
                                                    <?php endif; ?>
                                                <?php endfor; ?>
                                                <label class="badge-style">( <?php echo e(count($deal_of_the_day->product['reviews'])); ?> )</label>
                                            </span>
                                        </div>
                                    <?php endif; ?>
                                    <h6 class="font-semibold pt-1">
                                        <?php echo e(Str::limit($deal_of_the_day->product['name'], 80)); ?>

                                    </h6>
                                    <div class="mb-4 pt-1 d-flex flex-wrap justify-content-center align-items-center text-center gap-8">

                                        <?php if($deal_of_the_day->product->discount > 0): ?>
                                            <del class="fs-14 font-semibold __color-9B9B9B">
                                                <?php echo e(webCurrencyConverter(amount: $deal_of_the_day->product->unit_price)); ?>

                                            </del>
                                        <?php endif; ?>
                                        <span class="text-accent fs-18 font-bold text-dark">
                                            <?php echo e(webCurrencyConverter(amount:
                                                $deal_of_the_day->product->unit_price-(getProductDiscount(product: $deal_of_the_day->product, price: $deal_of_the_day->product->unit_price))
                                            )); ?>

                                        </span>
                                    </div>
                                    <button class="btn btn--primary font-bold px-4 rounded-10 text-uppercase get-view-by-onclick"
                                            data-link="<?php echo e(route('product',$deal_of_the_day->product->slug)); ?>">
                                            <?php echo e(translate('buy_now')); ?>

                                    </button>

                                </div>
                            </div>
                        </div>
                    <?php else: ?>
                        <?php if(isset($product)): ?>
                            <div class="d-flex justify-content-center align-items-center py-4">
                                <h4 class="font-bold fs-16 m-0 align-items-center text-uppercase text-center px-2 web-text-primary">
                                    <?php echo e(translate('recommended_product')); ?>

                                </h4>
                            </div>
                            <div class="recommended-product-card mt-0">

                                <div class="d-flex justify-content-center align-items-center __pt-20 __m-20-r">
                                    <div class="position-relative">
                                        <img src="<?php echo e(getValidImage(path: 'storage/app/public/product/thumbnail/'.$product['thumbnail'], type: 'product')); ?>"
                                            alt="">
                                        <?php if($product->discount > 0): ?>
                                            <span class="for-discount-value p-1 pl-2 pr-2 font-bold fs-13">
                                                <span class="direction-ltr d-block">
                                                    <?php if($product->discount_type == 'percent'): ?>
                                                        -<?php echo e(round($product->discount,(!empty($decimal_point_settings) ? $decimal_point_settings: 0))); ?>%
                                                    <?php elseif($product->discount_type =='flat'): ?>
                                                        -<?php echo e(webCurrencyConverter(amount: $product->discount)); ?>

                                                    <?php endif; ?>
                                                </span>
                                            </span>
                                        <?php endif; ?>
                                    </div>
                                </div>
                                <div class="__i-1 bg-transparent text-center mb-0 min-height-auto">
                                    <div class="px-0 pb-0">
                                        <?php ($overallRating = getOverallRating($product['reviews'])); ?>
                                        <?php if($overallRating[0] != 0 ): ?>
                                            <div class="rating-show">
                                                <span class="d-inline-block font-size-sm text-body">
                                                    <?php for($inc=0;$inc<5;$inc++): ?>
                                                        <?php if($inc <= (int)$overallRating[0]): ?>
                                                            <i class="tio-star text-warning"></i>
                                                        <?php elseif($overallRating[0] != 0 && $inc <= (int)$overallRating[0] + 1.1 && $overallRating[0] > ((int)$overallRating[0])): ?>
                                                            <i class="tio-star-half text-warning"></i>
                                                        <?php else: ?>
                                                            <i class="tio-star-outlined text-warning"></i>
                                                        <?php endif; ?>
                                                    <?php endfor; ?>
                                                    <label class="badge-style">( <?php echo e(count($product->reviews)); ?> )</label>
                                                </span>

                                            </div>
                                        <?php endif; ?>
                                        <h6 class="font-semibold pt-1">
                                            <?php echo e(Str::limit($product['name'],30)); ?>

                                        </h6>
                                        <div class="mb-4 pt-1 d-flex flex-wrap justify-content-center align-items-center text-center gap-8">
                                            <?php if($product->discount > 0): ?>
                                                <del class="__text-12px __color-9B9B9B">
                                                    <?php echo e(webCurrencyConverter(amount: $product->unit_price)); ?>

                                                </del>
                                            <?php endif; ?>
                                            <span class="text-accent __text-22px text-dark">
                                                <?php echo e(webCurrencyConverter(amount:
                                                    $product->unit_price-(getProductDiscount(product: $product, price: $product->unit_price))
                                                )); ?>

                                            </span>
                                        </div>
                                        <button class="btn btn--primary font-bold px-4 rounded-10 text-uppercase get-view-by-onclick"
                                                data-link="<?php echo e(route('product',$product->slug)); ?>">
                                            <?php echo e(translate('buy_now')); ?>

                                        </button>
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>
                    <?php endif; ?>
                </div>
            </div>

            <div class="col-xl-9 col-md-8">
                <div class="latest-product-margin">
                    <div class="d-flex justify-content-between mb-14px">
                        <div class="text-center">
                            <span class="for-feature-title __text-22px font-bold text-center">
                                <?php echo e(translate('latest_products')); ?>

                            </span>
                        </div>
                        <div class="mr-1">
                            <a class="text-capitalize view-all-text web-text-primary"
                               href="<?php echo e(route('products',['data_from'=>'latest'])); ?>">
                                <?php echo e(translate('view_all')); ?>

                                <i class="czi-arrow-<?php echo e(Session::get('direction') === "rtl" ? 'left mr-1 ml-n1 mt-1 float-left' : 'right ml-1 mr-n1'); ?>"></i>
                            </a>
                        </div>
                    </div>

                    <div class="row mt-0 g-2">
                        <?php $__currentLoopData = $latest_products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="col-xl-3 col-sm-4 col-md-6 col-lg-4 col-6">
                                <div>
                                    <?php echo $__env->make('web-views.partials._inline-single-product',['product'=>$product,'decimal_point_settings'=>$decimal_point_settings], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php endif; ?>
<?php /**PATH /home/amkworld/public_html/resources/themes/default/web-views/partials/_deal-of-the-day.blade.php ENDPATH**/ ?>