<?php $__env->startSection('maincontent'); ?>
<?php $__env->startSection('title'); ?>
    <?php echo e(env('APP_NAME')); ?>-Best online shop in Bangladesh
<?php $__env->stopSection(); ?>

<?php $__env->startSection('meta'); ?>
    <meta name="description" content="Online shopping in Bangladesh for beauty products, men, women, kids, fashion items, clothes, electronics, home appliances, gadgets, watch, many more.">
    <meta name="keywords" content="<?php echo e(env('APP_NAME')); ?>, online store bd, online shop bd, Organic fruits, Thai, UK, Korea, China, cosmetics, Jewellery, bags, dress, mobile, accessories, automation Products,">


    <meta itemprop="name" content="Best Online Shopping in Bangladesh | <?php echo e(env('APP_NAME')); ?>">
    <meta itemprop="description" content="Best online shopping in Bangladesh for beauty products, men, women, kids, fashion items, clothes, electronics, home appliances, gadgets, watch, many more.">
    

    <meta property="og:url" content="<?php echo e(env('APP_URL')); ?>">
    <meta property="og:type" content="website">
    <meta property="og:title" content="Best Online Shopping in Bangladesh | <?php echo e(env('APP_NAME')); ?>">
    <meta property="og:description" content="Online shopping in BD for beauty products, men, women, kids, fashion items, clothes, electronics, home appliances, gadgets, watch, many more.">
     
<?php $__env->stopSection(); ?>
<style>
    .product{
            margin-top: 4px !important;

    }

    #featureimagess{
        width: 100%;
        padding: 0px;
        padding-top: 0;
        /*max-height:200px;*/
    }
    #checked {
        color: orange;
    }
    .star{
        font-size: 8px !important;
    }
</style>


<div class="p-0 row">
    <div class="col-12 col-lg-12">
        <div class="owl-carousel owl-theme" id="slider">
            <?php $__empty_1 = true; $__currentLoopData = $sliders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slider): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="item" style="margin:0 !important;">
                    <a href="<?php echo e($slider->slider_btn_link); ?>">
                    <img  src="<?php echo e(asset($slider->slider_image)); ?>">
                    </a>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <?php endif; ?>
        </div>

    </div> 
</div>




<div class="container p-0 mt-4 mb-2 mt-lg-4 pt-lg-4">
    <div class="row">
        <div class="col-12">
            <div class="owl-carousel " id="categorySlide">
                <?php $__empty_1 = true; $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <div class="item">
                        <a href="<?php echo e(url('products/category/' . $category->slug)); ?>" >
                            <div id="cath">
                                <div class="d-flex justify-content-center" >
                                    <img  src="<?php echo e(asset($category->category_icon)); ?>" id="catimg">
                                </div>

                                <p id="catp" style="font-weight:bold;color: black;"><?php echo e($category->category_name); ?></p>
                            </div>
                        </a>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>

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


<!-- Promotional Products -->
<div class="container p-0 pb-2 ">
    <?php if(count($topproducts)>0): ?> 
        <div class="pb-2 bg-white row" style="background:#efefef !important;">
            <div class="col-12" style="border-bottom: 1px solid green;padding-left: 0;display: flex;justify-content: space-between;">
                <div class="px-2 pt-0 p-md-3 d-flex justify-content-between" style="padding-bottom:4px !important;padding-top: 8px !important;">
                    <h4 class="m-0"><b>Promotional Offers</b></h4>
                </div>
                <a href="<?php echo e(url('promotional/products')); ?>" class="mb-0 btn btn-sm" style="padding: 4px;height: 26px;color: white;font-weight: bold;margin-top:9px;font-size:12px; background:black;">VIEW ALL</a>
            </div>
            <div class="col-12">
                <div class="owl-carousel " id="promotionalofferSlide">
                    <?php $__empty_1 = true; $__currentLoopData = $topproducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $promotional): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <?php
                            $firstpro=App\Models\Product::with([
                                'sizes' => function ($query) {
                                    $query->select('id','product_id','Discount','RegularPrice','SalePrice')->take(1);
                                }
                                ])->where('id',json_decode($promotional->RelatedProductIds)[0]->productID)->select('id','ProductName')->first();
    
                           
                       ?>
                        <?php if(isset($firstpro)): ?>
                            <div class="item" id="featuredproduct">
                                <div class="products best-product">
                                    <div class="product">
                                        <div class="product-micro">
                                            <div class="row product-micro-row">
                                                <div class="col-12">
                                                    <div class="product-image" style="position: relative;">
                                                        <div class="text-center image">
                                                            <a href="<?php echo e(url('view-product/' . $promotional->ProductSlug)); ?>">
                                                                <img src="<?php echo e(asset($promotional->ProductImage)); ?>">
                                                            </a>
                                                        </div>
    
    
                                                        <span id="discountpart"> <p id="pdis">SAVE ৳<?php echo e(round($firstpro->sizes[0]->Discount)); ?></p></span>
                                                    </div>
                                                    <!-- /.product-image -->
                                                </div>
                                                <!-- /.col -->
                                                <div class="col-12">
                                                    <div class="p-2 infofe p-md-2" style="padding-bottom: 4px !important;background: white;">
                                                        <div class="product-info">
                                                            <h2 class="name text-truncate" id="f_name"><a
                                                                    href="<?php echo e(url('view-product/' . $promotional->ProductSlug)); ?>"
                                                                    id="f_pro_name"><?php echo e($promotional->ProductName); ?></a></h2>
                                                        </div>
    
    
                                                        <div class="d-flex" style="justify-content:space-between">
                                                            <div class="star" style="padding-top: 5px;">
                                                                
                                                                    <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">৳
                                                                <?php echo e(round($firstpro->sizes[0]->RegularPrice)); ?></del>
                                                            <span
                                                                class="product-price strong-600">৳ <?php echo e(round($firstpro->sizes[0]->SalePrice)); ?></span>
                                                        </div>
    
                                                    </div>
                                                    <a href="<?php echo e(url('view-product/' . $promotional->ProductSlug)); ?>">
                                                        <button class="mb-0 btn btn-danger btn-sm btn-block"
                                                                style="width: 100%;border-radius: 0%;" id="purcheseBtn">অর্ডার করুন</button>
                                                    </a>
    
                                                </div>
                                                <!-- /.col -->
                                            </div>
                                            <!-- /.product-micro-row -->
                                        </div>
                                        <!-- /.product-micro -->
    
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <?php endif; ?>
                </div>
            </div>
        </div> 
    <?php else: ?>
    
    <?php endif; ?> 

    <div class="row gutters-10">
        <?php if(count($adds) == '2'): ?>
            <?php $__empty_1 = true; $__currentLoopData = $adds; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $add): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="col-lg-6 col-6 ps-lg-0">
                    <div class="mb-1 media-banner mb-lg-0">
                        <a href="<?php echo e($add->add_link); ?>" target="_blank" class="banner-container">
                            <img src="<?php echo e(asset($add->add_image)); ?>" alt="<?php echo e(env('APP_NAME')); ?>"
                                class="img-fluid ls-is-cached lazyloaded">
                        </a>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <?php endif; ?>
        <?php else: ?>
            <?php $__empty_1 = true; $__currentLoopData = $adds; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $add): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="col-lg-12 col-12 ps-0">
                    <div class="mb-1 media-banner mb-lg-0">
                        <a href="<?php echo e($add->add_link); ?>" target="_blank" class="banner-container">
                            <img src="<?php echo e(asset($add->add_image)); ?>" alt="<?php echo e(env('APP_NAME')); ?>"
                                class="img-fluid ls-is-cached lazyloaded">
                        </a>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <?php endif; ?>
        <?php endif; ?>
    </div>
 
    <?php $__empty_1 = true; $__currentLoopData = $categoryproducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$categoryproduct): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
   
        <?php if(count($categoryproduct->mainproducts) > 0): ?>
            
                <div class="pb-0 bg-white row" style="background:#efefef !important;">
                    <div class="col-12" style="border-bottom: 1px solid #F27336;padding-left: 0;display: flex;justify-content: space-between;">
                        <div class="px-2 pt-0 p-md-3 d-flex justify-content-between" style="padding-bottom:4px !important;padding-top: 8px !important;">
                            <h4 class="m-0"><b><?php echo e($categoryproduct->category_name); ?></b></h4>
                        </div>
                        <a href="<?php echo e(url('products/category/'.$categoryproduct->slug)); ?>" class="mb-0 btn btn-danger btn-sm" style="padding: 4px;height: 26px;color: white;font-weight: bold;margin-top:9px;font-size:12px;background: black;border: 1px solid black;">VIEW ALL</a>
                    </div>
    
    
                    <?php $__empty_2 = true; $__currentLoopData = $categoryproduct->mainproducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>
                        <?php
                            $firstcatepro=App\Models\Product::with([
                                'sizes' => function ($query) {
                                    $query->select('id','product_id','Discount','RegularPrice','SalePrice')->take(1);
                                }
                                ])->where('id',json_decode($product->RelatedProductIds)[0]->productID)->select('id','ProductName')->first();
    
                          
                        ?>
                        <?php if(isset($firstcatepro)): ?>
                            <div class="mb-2 col-6 col-md-4 col-lg-2">
                                <div class="product">
                                        <div class="product-micro">
                                            <div class="row product-micro-row">
                                                <div class="col-12">
                                                    <div class="product-image" style="position: relative;">
                                                        <div class="text-center image">
                                                            <a href="<?php echo e(url('view-product/' . $product->ProductSlug)); ?>">
                                                                <img src="<?php echo e(asset($product->ProductImage)); ?>" >
                                                            </a>
                                                        </div>
                                                        <span id="discountpart"> <p id="pdis">SAVE ৳<?php echo e(round($firstcatepro->sizes[0]->Discount)); ?></p></span>
    
                                                    </div>
                                                    <!-- /.product-image -->
                                                </div>
                                                <!-- /.col -->
                                                <div class="col-12">
                                                    <div class="p-2 infofe p-md-2" style="border-top:none;background: white;">
                                                        <div class="product-info">
                                                            <h2 class="name text-truncate" id="f_name"><a
                                                                    href="<?php echo e(url('view-product/' . $product->ProductSlug)); ?>"
                                                                    id="f_pro_name"><?php echo e($firstcatepro->ProductName); ?></a>
                                                            </h2>
                                                        </div>
    
                                                        <div class="d-flex" style="justify-content:space-between">
                                                            <div class="star" style="padding-top: 5px;">
                                                                
                                                                    <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">৳
                                                                <?php echo e(round($firstcatepro->sizes[0]->RegularPrice)); ?></del>
                                                            <span
                                                                class="product-price strong-600">৳ <?php echo e(round($firstcatepro->sizes[0]->SalePrice)); ?></span>
                                                        </div>
    
                                                    </div>
    
                                                    <a href="<?php echo e(url('view-product/' . $product->ProductSlug)); ?>">
                                                        <button class="mb-0 btn btn-danger btn-sm btn-block"
                                                                style="width: 100%;border-radius: 0%;" id="purcheseBtn">অর্ডার করুন</button>
                                                    </a>
                                                </div>
                                                <!-- /.col -->
                                            </div>
                                            <!-- /.product-micro-row -->
                                        </div>
    
                                        <!-- /.product-micro -->
    
                                    </div>
                            </div>
                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                    <?php endif; ?>
    
              
                </div>
            
        <?php else: ?>
        <?php endif; ?>
    
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
    <?php endif; ?>

    <div class="row gutters-10">
        <?php if(count($addbottoms) == '2'): ?>
            <?php $__empty_1 = true; $__currentLoopData = $addbottoms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $add): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="col-lg-6 col-6 ps-lg-0">
                    <div class="mb-1 media-banner mb-lg-0">
                        <a href="<?php echo e($add->add_link); ?>" target="_blank" class="banner-container">
                            <img src="<?php echo e(asset($add->add_image)); ?>" alt="<?php echo e(env('APP_NAME')); ?>"
                                class="img-fluid ls-is-cached lazyloaded">
                        </a>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <?php endif; ?>
        <?php else: ?>
            <?php $__empty_1 = true; $__currentLoopData = $addbottoms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $add): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="col-lg-12 col-12 pr-lg-0">
                    <div class="mb-1 media-banner mb-lg-0">
                        <a href="<?php echo e($add->add_link); ?>" target="_blank" class="banner-container">
                            <img src="<?php echo e(asset($add->add_image)); ?>" alt="<?php echo e(env('APP_NAME')); ?>"
                                class="img-fluid ls-is-cached lazyloaded">
                        </a>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <?php endif; ?>
        <?php endif; ?> 
        
        
    </div>
    
</div>



<?php $__env->stopSection(); ?>

<?php echo $__env->make('webview.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/mayabot1/jaframart.com/resources/views/webview/content/maincontent.blade.php ENDPATH**/ ?>