 <?php $__empty_1 = true; $__currentLoopData = $categoryproducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $categoryproduct): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
    <?php
        $firstcatepro=App\Models\Product::with([
            'sizes' => function ($query) {
                $query->select('id','product_id','Discount','RegularPrice','SalePrice')->take(1);
            }
            ])->where('id',json_decode($categoryproduct->RelatedProductIds)[0]->productID)->select('id','ProductName')->first();

        $review = App\Models\Review::where('product_id', $firstcatepro->id)->avg(
                                        'rating',
                                    );
    ?>
    <?php if(isset($firstcatepro)): ?>
        <div class="mb-2 px-1 col-6 col-md-4 col-lg-2">
            <div class="product-micro-row">
                     <div class="product_item_inner">
                        <div class="product-image">
                            <a href="<?php echo e(url('view-product/' . $categoryproduct->ProductSlug)); ?>">
                                <img src="<?php echo e(asset($categoryproduct->ProductImage)); ?>">
                            </a>
                        </div>
                        <!-- /.product-image -->
                        <div class="product-text" style="padding-bottom: 4px !important;background: white;">
                            <div class="pro_name">
                             <a href="<?php echo e(url('view-product/' . $categoryproduct->ProductSlug)); ?>" id="f_pro_name"><?php echo e($categoryproduct->ProductName); ?></a>
                             
                            <div class="d-flex my-2" style="justify-content:center">
                                <div class="star" style="padding-top: 5px;" display="none!important;">
                                    <span style="font-weight: bold;color:black;font-size:10px">(<?php echo e(App\Models\Review::where('product_id', $categoryproduct->id)->get()->count()); ?>)</span>
                                    <span class="fas fa-star" id="checked"></span>
                                    <span class="fas fa-star" id="checked"></span>
                                    <span class="fas fa-star" id="checked"></span>
                                    <span class="fas fa-star" id="checked"></span>
                                    <span class="fas fa-star" id="checked"></span>
                                </div>
                            </div>
                            <div class="price-box">
                                <del class="old-product-price strong-400" style="color:red">৳
                                    <?php echo e(round($firstcatepro->sizes[0]->RegularPrice)); ?></del>
                                <span
                                    class="product-price strong-600" style="color:black">৳ <?php echo e(round($firstcatepro->sizes[0]->SalePrice)); ?></span>
                            </div>
                            
                          </div>
                        </div>
                        <div class="pro_btn">
                          <form name="form" action="<?php echo e(url('add-to-cart')); ?>" method="POST" enctype="multipart/form-data" style="width: 100%;float: left;text-align: center;">
                                <?php echo method_field('POST'); ?>
                                <?php echo csrf_field(); ?>
                                <input type="text" name="color" id="product_colorold" hidden>
                                <input type="text" name="size" id="product_sizeold" hidden>
                                <input type="text" name="product_id" value="<?php echo e($firstcatepro->id); ?>" hidden>
                                <input type="text" name="qty" value="1" id="qtyor" hidden>
                                Salman
                                <button class="btn  btn-sm mb-0 btn-block"  id="purcheseBtn">অর্ডার করুন</button>
                            </form>
                        </div>
                 </div>
                </div>
        </div>
    <?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<?php endif; ?>
<?php /**PATH /home/falconen/multivendor.falconenterprisebd.com/resources/views/webview/product.blade.php ENDPATH**/ ?>