<?php $__env->startSection('maincontent'); ?>
<?php $__env->startSection('title'); ?>
    <?php echo e(App\Models\Basicinfo::first()->meta_tittle); ?> | <?php echo e(App\Models\Basicinfo::first()->site_sologan); ?>

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

<?php $__env->startSection('meta'); ?>
<?php
	$basicinfo=DB::table('basicinfos')->first();
?>
    <meta name="description" content="<?php echo e(App\Models\Basicinfo::first()->meta_description); ?>">
    <meta name="keywords" content="<?php echo e(App\Models\Basicinfo::first()->meta_keyword); ?>">
    <meta itemprop="name" content="<?php echo e(App\Models\Basicinfo::first()->site_sologan); ?>">
    <meta itemprop="description" content="<?php echo e(App\Models\Basicinfo::first()->meta_description); ?>">
    <meta itemprop="image" content="<?php echo e(asset($basicinfo->og_images ??'')); ?>">
    <meta property="og:url" content="<?php echo e(url('/')); ?>">
    <meta property="og:type" content="website">
    <meta property="og:title" content="<?php echo e(App\Models\Basicinfo::first()->meta_tittle); ?>">
    <meta property="og:description" content="<?php echo e(App\Models\Basicinfo::first()->meta_description); ?>">
    <meta property="og:image" content="<?php echo e(asset($basicinfo->og_images ??'')); ?>">
    <meta property="image" content="<?php echo e(asset($basicinfo->og_images ??'')); ?>" />
	<meta property="image" content="<?php echo e(asset($basicinfo->og_images ??'')); ?>" />
    <meta property="url" content="<?php echo e(url('/')); ?>">
    <meta itemprop="image" content="<?php echo e(asset($basicinfo->og_images ??'')); ?>">
    <meta property="twitter:card" content="<?php echo e(asset($basicinfo->og_images ??'')); ?>" />
    <meta property="twitter:title" content="<?php echo e(App\Models\Basicinfo::first()->meta_tittle); ?>" />
    <meta property="twitter:url" content="<?php echo e(url('/')); ?>">
    <meta name="twitter:image" content="<?php echo e(asset($basicinfo->og_images ??'')); ?>">
<?php $__env->stopSection(); ?>
<style>
    .product{
            margin-top: 4px !important;

    }

    #featureimagess{
        width: 100%;
        padding: 2px;
        padding-top: 0;
        max-height:200px;
    }
</style>
<div class="container-fluid" style="padding:0;background:#24a86c">
    <div class="container">
    <div class="row" style="background:#24a86c">
        <div class="col-lg-3 d-none d-lg-block sidebar pe-0 ps-0">
            <div class="side-menu animate-dropdown">
                <div class="head"><i class="icon fas fa-align-justify fa-fw"></i> Categories</div>
            </div>
        </div>
        <div class="col-lg-9 col-12 ps-0 pe-0" id="mainslider">
            <div class="col-lg-12 position-static order-2 order-lg-0 d-none d-lg-block" style="background: #24a86c;">
                <div id="menu">
                    <ul>
                        <li><a href="<?php echo e(url('/')); ?>">Home</a></li>
                        <li><a href="<?php echo e(url('/combo-offer')); ?>">Combo Offer</a></li>
                        <li><a href="<?php echo e(url('/')); ?>">News Feed</a></li>
                        <li><a href="<?php echo e(url('/track-order')); ?>">Order Track</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</div>

<div class="container">
    <div class="row bg-white">
        <div class="col-lg-3 d-none d-lg-block sidebar pe-0 ps-0">
            <div class="side-menu animate-dropdown outer-bottom-xs">
                <nav class="yamm megamenu-horizontal" role="navigation" style="padding-top: 6px;">
                    <ul class="nav m-0">
                        <?php $__empty_1 = true; $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $maincategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <?php if(count($maincategory->subcategories) > 0): ?>
                                <li class="dropdown menu-item">
                                    <a href="<?php echo e(url('products/category/' . $maincategory->slug)); ?>"
                                        class="dropdown-toggle" data-bs-hover="dropdown"> <img
                                            src="<?php echo e(asset($maincategory->category_icon)); ?>"
                                            alt="<?php echo e($maincategory->category_name); ?>"
                                            style="width: 22px !important;margin-top: -5px;">
                                        <span style="margin-left:6px"><?php echo e($maincategory->category_name); ?></span></a>
                                    <ul class="dropdown-menu mega-menu">
                                        <li class="yamm-content" style="padding-bottom: 5px;padding-top: 5px;">
                                            <ul class="links list-unstyled">
                                                <div class="row">
                                                    <?php $__currentLoopData = $maincategory->subcategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <div class="col-sm-12 col-md-4 pt-1 pb-1" id="subcategoryhover" style="width: 100%;">
                                                            <li><a href="<?php echo e(url('products/sub/category/' . $subcategory->slug)); ?>"
                                                                    style="color:#666666"><?php echo e($subcategory->sub_category_name); ?></a>
                                                            </li>
                                                        </div>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </div>
                                            </ul>
                                            <!-- /.row -->
                                        </li>
                                        <!-- /.yamm-content -->
                                    </ul>
                                    <!-- /.dropdown-menu -->
                                </li>
                            <?php else: ?>
                                <li class="dropdown menu-item">
                                    <a href="<?php echo e(url('products/category/' . $maincategory->slug)); ?>"
                                        class="dropdown-toggle text-truncate" data-bs-hover="dropdown"><img
                                            src="<?php echo e(asset($maincategory->category_icon)); ?>"
                                            alt="<?php echo e($maincategory->category_name); ?>"
                                            style="width: 22px !important;margin-top: -5px;"><span style="margin-left:6px"><?php echo e($maincategory->category_name); ?></span></a>
                                    <!-- /.dropdown-menu -->
                                </li>
                            <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <?php endif; ?>
                    </ul>
                </nav>
            </div>
        </div>
        <div class="col-lg-9 col-12 ps-0 pe-0" id="mainslider">

            <div class="col-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;">
                            <img  src="<?php echo e(asset($slider->slider_image)); ?>"
                                alt="<?php echo e($slider->slider_title); ?>">
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <?php endif; ?>
                </div>

            </div>
        </div>
    </div>
</div>

<div class="container mt-lg-4 mt-2 p-0 mb-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"><?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>
 

<?php if(count($featuredproducts)>0): ?>
<!-- Promotional Products -->
<div class="container pt-0 pb-4">
    <div class="row bg-white pb-4">
        <div class="col-12" style="border-bottom: 1px solid #24a86c;padding-left: 0;display: flex;justify-content: space-between;">
            <div class="px-2 p-md-3 pt-0 d-flex justify-content-between" style="padding-bottom:4px !important;padding-top: 8px !important;">
                <h4 class="m-0"><b>Featured Products</b></h4>
            </div>
            <a href="<?php echo e(url('featured/products')); ?>" class="btn btn-danger btn-sm mb-0" style="padding: 2px;height: 26px;color: white;font-weight: bold;margin-top:9px;background:#24a86c;border:1px solid #24a86c">VIEW ALL</a>
        </div>
        <div class="col-12">
            <div class="owl-carousel " id="featuredProductSlide">
                <?php $__empty_1 = true; $__currentLoopData = $featuredproducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $promotional): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <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="image text-center">
                                                    <a href="<?php echo e(url('product/' . $promotional->ProductSlug)); ?>">
                                                        <img src="<?php echo e(asset($promotional->ViewProductImage)); ?>"
                                                            alt="<?php echo e($promotional->ProductName); ?>" id="featureimagess" style="height: 175px">
                                                    </a>
                                                </div>
                                                <span id="discountpart"> <span id="discountparttwo"> <p id="pdis">-<?php echo e($promotional->Discount); ?>%</p> </span></span>
                                            </div>
                                            <!-- /.product-image -->
                                        </div>
                                        <!-- /.col -->
                                        <div class="col-12">
                                            <div class="infofe p-md-3 p-2" style="padding-bottom: 4px !important;">
                                                <div class="product-info">
                                                    <h2 class="name text-truncate" id="f_name"><a
                                                            href="<?php echo e(url('product/' . $promotional->ProductSlug)); ?>"
                                                            id="f_pro_name"><?php echo e($promotional->ProductName); ?>s</a></h2>
                                                </div>
                                                <div class="price-box">
                                                    <!--<del class="old-product-price strong-400">৳<?php echo e(round($promotional->ProductRegularPrice)); ?></del>-->
                                                    <span
                                                        class="product-price strong-600">৳<?php echo e(round($promotional->ProductSalePrice)); ?></span>
                                                </div>
                                            </div>
                                            <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($promotional->id); ?>"
                                                    hidden>
                                                <input type="text" name="qty" value="1" id="qtyor" hidden>
                                                <button class="btn btn-danger btn-sm mb-0 btn-block"
                                                        style="width: 100%;border-radius: 0%;" id="purcheseBtn">অর্ডার করুন</button>
                                            </form>

                                        </div>
                                        <!-- /.col -->
                                    </div>
                                    <!-- /.product-micro-row -->
                                </div>
                                <!-- /.product-micro -->

                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>
<?php else: ?>

<?php endif; ?>

<!-- add section -->
<div class="container mb-lg-3 mb-2">
    <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-0">
                    <div class="media-banner mb-1 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="media-banner mb-1 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 if(count($topproducts)>0): ?>
<!-- Promotional Products -->
<div class="container pt-0 pb-4">
    <div class="row bg-white pb-4">
        <div class="col-12" style="border-bottom: 1px solid #24a86c;padding-left: 0;display: flex;justify-content: space-between;">
            <div class="px-2 p-md-3 pt-0 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="btn btn-danger btn-sm mb-0" style="padding: 2px;height: 26px;color: white;font-weight: bold;margin-top:9px;">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; ?>
                    <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="image text-center">
                                                    <a href="<?php echo e(url('product/' . $promotional->ProductSlug)); ?>">
                                                        <img src="<?php echo e(asset($promotional->ViewProductImage)); ?>"
                                                            alt="<?php echo e($promotional->ProductName); ?>" id="featureimagess">
                                                    </a>
                                                </div>
                                                <span id="discountpart"> <span id="discountparttwo"> <p id="pdis">-<?php echo e($promotional->Discount); ?>%</p> </span></span>
                                            </div>
                                            <!-- /.product-image -->
                                        </div>
                                        <!-- /.col -->
                                        <div class="col-12">
                                            <div class="infofe p-md-3 p-2" style="padding-bottom: 4px !important;">
                                                <div class="product-info">
                                                    <h2 class="name text-truncate" id="f_name"><a
                                                            href="<?php echo e(url('product/' . $promotional->ProductSlug)); ?>"
                                                            id="f_pro_name"><?php echo e($promotional->ProductName); ?>s</a></h2>
                                                </div>
                                                <div class="price-box">
                                                    <!--<del class="old-product-price strong-400">৳<?php echo e(round($promotional->ProductRegularPrice)); ?></del>-->
                                                    <span
                                                        class="product-price strong-600">৳<?php echo e(round($promotional->ProductSalePrice)); ?></span>
                                                </div>
                                            </div>
                                            <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($promotional->id); ?>"
                                                    hidden>
                                                <input type="text" name="qty" value="1" id="qtyor" hidden>
                                                <button class="btn btn-danger btn-sm mb-0 btn-block"
                                                        style="width: 100%;border-radius: 0%;" id="purcheseBtn">অর্ডার করুন</button>
                                            </form>

                                        </div>
                                        <!-- /.col -->
                                    </div>
                                    <!-- /.product-micro-row -->
                                </div>
                                <!-- /.product-micro -->

                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>
<?php else: ?>

<?php endif; ?>

<?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->products) > 0): ?>
        <!-- Category Products -->
        <div class="container pt-0 pb-4">
            <div class="row bg-white pb-0">
                <div class="col-12" style="border-bottom: 1px solid #24a86c;padding-left: 0;display: flex;justify-content: space-between;">
                    <div class="px-2 p-md-3 pt-0 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="btn btn-danger btn-sm mb-0" style="padding: 2px;height: 26px;color: white;font-weight: bold;margin-top:9px;background: #24a86c;border: 1px solid #24a86c;">VIEW ALL</a>
                </div>


                <?php $__empty_2 = true; $__currentLoopData = $categoryproduct->products->take(12); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>
                    <div class="col-6 col-md-4 col-lg-2 mb-4">
                        <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="image text-center">
                                                    <a href="<?php echo e(url('product/' . $product->ProductSlug)); ?>">
                                                        <img src="<?php echo e(asset($product->ViewProductImage)); ?>"
                                                            alt="<?php echo e($product->ProductName); ?>" id="featureimage">
                                                    </a>
                                                </div>
                                                <span id="discountpart"> <span id="discountparttwo"> <p id="pdis">-<?php echo e($product->Discount); ?>%</p> </span></span>
                                                <!-- /.image -->
                                            </div>
                                            <!-- /.product-image -->
                                        </div>
                                        <!-- /.col -->
                                        <div class="col-12">
                                            <div class="infofe p-md-3 p-2" style="border: 1px solid #e3e1e1;border-top:none;">
                                                <div class="product-info">
                                                    <h2 class="name text-truncate" id="f_name"><a
                                                            href="<?php echo e(url('product/' . $product->ProductSlug)); ?>"
                                                            id="f_pro_name"><?php echo e($product->ProductName); ?></a>
                                                    </h2>
                                                </div>
                                                <div class="price-box">
                                                    <del class="old-product-price strong-400">৳
                                                        <?php echo e(round($product->ProductRegularPrice)); ?></del>
                                                    <span class="product-price strong-600">৳
                                                        <?php echo e(round($product->ProductSalePrice)); ?></span>
                                                </div>

                                            </div>

                                            <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($product->id); ?>"
                                                    hidden>
                                                <input type="text" name="qty" value="1" id="qtyor" hidden>
                                                <button class="btn btn-danger btn-sm mb-0 btn-block"
                                                        style="width: 100%;border-radius: 0%;" id="purcheseBtn">অর্ডার করুন</button>
                                            </form>
                                        </div>
                                        <!-- /.col -->
                                    </div>
                                    <!-- /.product-micro-row -->
                                </div>

                                <!-- /.product-micro -->

                            </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                <?php endif; ?>

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

<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<?php endif; ?>


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

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