

<?php $__env->startSection('title'); ?>
Products
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php
    if($category){
        $cat_img = $category->image;
        $cat_banner_img = $category->banner_img;
        $title = $category->category_name;
        $description = $category->description;
    }
    
     if($subcategory){
        $cat_img = $subcategory->image;
        $cat_banner_img = $subcategory->banner_img;
        $title = $subcategory->title;
        $description = $subcategory->description;
    }
    
    if($childCategory){
        $cat_img = $childCategory->image;
        $cat_banner_img = $childCategory->banner_img;
        $title = $childCategory->title;
        $description = $childCategory->description;
    }
   
?>

<!--Category Logo Section Start-->
<section id="category-logo" class="py-5" style="background-image: url('<?php echo e(asset('uploads/category_banner')); ?>/<?php echo e($cat_banner_img); ?>')">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <div class="category-content">
                      <h3 class="text-white"><?php echo e($title); ?></h3>
                    <!--<p class="cat-description text-white"><?php echo @$description; ?></p>-->
                </div>
            </div>
        </div>
    </div>
</section>
<!--Category Logo Section End-->

<?php if($description): ?>
<!--Category about Section Start-->
<section class="py-5">
    <div class="container">
            <h4 class="text-center pb-5">About <?php echo e($title); ?></h4>
        <div class="row">
            <div class="col-md-5">
               <img src="<?php echo e(asset('uploads/category')); ?>/<?php echo e($cat_img); ?>" class="img-fluid" alt="">
            </div>
            <div class="col-md-7">
                <p class="text-justify"><?php echo @$description; ?></p>
            </div>
        </div>
    </div>
</section>
<!--Category about Section End-->
<?php endif; ?>


<section id="product-categories" class="pt-1 my-md-3 my-3">
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <h3 style="color: <?php echo e($color->color_code); ?>">
                
                    All Products </h3>
                </div>
            </div>
            <div class="br"></div>
            <div class="row my-3">
                <?php $__empty_1 = true; $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="col-md-3 my-2">
                    <div class="card">
                        <div class="card-body pb-0">
                            <a href="<?php echo e(url('product_details')); ?>/<?php echo e($product->id); ?>">
                            <div class="card-img">
                                <img src="<?php echo e(asset('uploads/product')); ?>/<?php echo e($product->image); ?>" class="img-fluid" alt="">
                            </div>
                            </a>
                            <div class="card-title d-block">
                                <a href="<?php echo e(url('product_details')); ?>/<?php echo e($product->id); ?>"><p class="text-center mt-3" style="color: <?php echo e($color->color_code); ?>"><?php echo e(Illuminate\Support\Str::limit($product->product_name, 15)); ?></p></a>
                             
                            </div>
                        </div>
                    </div>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <div class="col-lg-12 no_product">
	                	<h5>No Product Available</h5>
                </div>
                <?php endif; ?>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.frontend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/shininga322/public_html/resources/views/frontend/products.blade.php ENDPATH**/ ?>