
<?php $__env->startSection('content'); ?>
<div class="page-content mb-10">
	<div class="shop-default-banner shop-boxed-banner banner d-flex align-items-center mb-6"
		style="background-image: url(web/images/banner/4.jpg); background-color: #607d8b;background-size: cover;background-position: right;">
		<div class="container banner-content">
			<h3 class="banner-title text-white text font-weight-bolder ls-10"><?php echo e($cat_data->cat_name); ?></h3>
		</div>
	</div>

	<?php if($pro_count > 0): ?>
	<div class="page-content">
        <div class="container-fluid">
			<div class="shop-content">
				<div class="main-content">
					<div class="product-wrapper row cols-xl-6 cols-lg-5 cols-md-4 cols-sm-3 cols-2">
						<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cps): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<div class="product-wrap grid-version">
							<div class="product text-center">
								<figure class="product-media  text-center"  style="border:1px solid #e4e7ec;">
	                                <center style="background-color:#e4e7ec;"><img class="lazy" src="<?php echo e(URL::to($cps->image)); ?>"></center>
	                                    <?php if(!is_null($cps->regu_price)): ?>
	                                    <div class="product-label-group">
	                                        <label class="product-label label-discount"><?php echo number_format((($cps->regu_price-$cps->price)/$cps->regu_price)*100); ?>% Off</label>
	                                    </div>
	                                    <?php endif; ?>
	                                
	                                    <div class="product-action-vertical">
	                                        <a href="#" class="btn-product-icon"><i class="fa fa-eye"></i>
	                                        </a>
	                                    </div>
	                            </figure>
								<div class="product-details">
	                                <h3 class="product-name">
	                                    <a href="<?php echo e(url('prodetails/'.$cps->id)); ?>"><?php echo e($cps->title); ?></a>
	                                </h3>

	                                 
	                                <div class="product-pa-wrapper" style="margin-top:3px;">
	                                    <div class="product-price">
	                                        <ins class="new-price">Tk. <?php echo e($cps->price); ?></ins><?php if(!is_null($cps->regu_price)): ?> <del class="old-price">Tk. <?php echo e($cps->regu_price); ?></del> <?php endif; ?>
	                                    </div>                      
	                                    <div class="product-action">
	                                        <form action="<?php echo e(url('addtocart')); ?>" method="post"><?php echo csrf_field(); ?>
				                                <input type="hidden" name="pro_id" value="<?php echo e($cps->id); ?>">
				                                <input type="hidden" name="qty" value="1">
				                                <button type="submit" style="color: #fff; background: #009688; padding: 2px 8px;" class="btn-product btn btn-link">Add To Cart</button>
				                            </form>
	                                    </div>                      
	                                </div>
	                            </div>

							</div>
						</div>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					</div>	
					<nav aria-label="Page navigation example">
			          <ul class="pagination">
			            <?php echo e($products->appends(['query'=>request('query')])->render()); ?>

			          </ul>
			        </nav>				 
				</div>
			</div>
        </div>
    </div>
    <?php else: ?>
    <div class="page-content">
        <div class="container" style="margin-bottom:150px">
        	<h2 style="color: #e394a2;">No Product Available!</h2>

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

</div>
<?php $__env->stopSection(); ?> 
<?php echo $__env->make('web.layout.mainx', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ebs/public_html/resources/views/web/catpro.blade.php ENDPATH**/ ?>