
<?php $__env->startSection('content'); ?>
<div class="page-content">
	<div class="container">
		<div class="row gutter-lg">
			<div class="main-content">
				<div class="product product-single row">
					<div class="col-md-6 mb-6">
						<div class="product-gallery product-gallery-sticky">
							<div
								class="product-single-carousel owl-carousel owl-theme owl-nav-inner row cols-1 gutter-no">
								<figure class="product-image">
									<img style="border: 1px solid #eeeeee;" src="<?php echo e(URL::to($pro_data->image)); ?>" data-zoom-image="<?php echo e(URL::to($pro_data->image)); ?>" width="100%" height="auto">
								</figure>
							</div>
						</div>
					</div>
					<div class="col-md-6 mb-4 mb-md-6">
						<div style="border: 1px solid #eeeeee;padding: 15px;" class="product-details" data-sticky-options="{'minWidth': 767}">
							<h4><?php echo e($pro_data->title); ?></h4>
							<div class="product-bm-wrapper">
								<div class="product-meta">
									<div class="product-categories">
										Category: <span class="product-category"><a href="#"><?php echo e($cat_data->cat_name); ?> </a></span>
									</div>
								</div>
							</div>

							<hr class="product-divider">

							<div class="product-price">
								<ins class="new-price">Tk. <?php echo e($pro_data->price); ?></ins> 
								<?php if(!is_null($pro_data->regu_price)): ?> 
								<del class="old-price">Tk. <?php echo e($pro_data->regu_price); ?></del> 
								<?php endif; ?>
							</div>

							<hr class="product-divider">
							
							<div class="fix-bottom product-sticky-content sticky-content">
								<div class="product-form container">
									<form style="display:flex;height: 42px;width: 100%;" action="<?php echo e(url('addtocart')); ?>" method="post"><?php echo csrf_field(); ?>
										<input type="hidden" name="pro_id" value="<?php echo e($pro_data->id); ?>">

										<div class="product-qty-form">
											<div class="input-group">
												<button style="left: 14px;" class="quantity-minus w-icon-minus"></button>
												<input style="text-align: center;" class="quantity form-control" id="product-qty" name="qty" type="number" min="1"max="<?php echo e($pro_data->stock); ?>" required>
												<button class="quantity-plus w-icon-plus"></button>
												
											</div>
										</div>
										<button style="height: 44px;border-radius: 4px;" type="submit" class="btn btn-primary">Add to Cart</button>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
				
                <div class="accordion accordion-simple mb-9">
                    <div class="card">
                        <div class="card-header ls-normal">
                            <a href="#product-tab-description" class="collapse">Description</a>
                        </div>
                        <div class="card-body expanded" id="product-tab-description">
                            <div class="row">
                                <div class="col-md-6">
									<p><?php echo $pro_data->details; ?></p>
								</div>
                            </div>
                        </div>
                    </div>
                </div>	
			</div>
			

			<aside class="sidebar product-sidebar sidebar-fixed right-sidebar sticky-sidebar-wrapper">
				<div class="sidebar-overlay"></div>
				<a class="sidebar-close" href="#"><i class="close-icon"></i></a>
				<a href="#" class="sidebar-toggle d-flex d-lg-none"><i class="fas fa-chevron-left"></i></a>
				<div class="sidebar-content scrollable">
					<div class="sticky-sidebar">
						<div class="widget widget-icon-box mb-6">
							<div class="icon-box icon-box-side">
								<span class="icon-box-icon text-dark">
									<i class="w-icon-truck"></i>
								</span>
								<div class="icon-box-content">
									<h4 class="icon-box-title">Free Shipping (Delivery) </h4>
									<p>Free courier in Bangladesh for any Orders Over 100 RP </p>
								</div>
							</div>
							<div class="icon-box icon-box-side">
								<span class="icon-box-icon text-dark">
									<i class="w-icon-bag"></i>
								</span>
								<div class="icon-box-content">
									<h4 class="icon-box-title">Secure Payment Gateway</h4>
									<p>We ensure secure payment by Bkash, Rocket & Card </p>
								</div>
							</div>
							<div class="icon-box icon-box-side">
								<span class="icon-box-icon text-dark">
									<i class="w-icon-money"></i>
								</span>
								<div class="icon-box-content">
									<h4 class="icon-box-title">Money Back Guarantee</h4>
									<p>Any back within 3 days (T&C)</p>
								</div>
							</div>
						</div>

						<div class="widget widget-banner mb-9">
							<div class="banner banner-fixed br-sm">
								<figure>
									<a href="#"><img src="<?php echo e(asset('web/images/banner/banner3.jpg')); ?>" width="266"
										height="220" style="background-color: #1D2D44;" ></a>
								</figure>
								<div class="banner-content">
									<div style="color: #d5ffad;" class="banner-price-info font-weight-bolder lh-1 ls-25">40<sup class="font-weight-bold">%</sup><sub class="font-weight-bold text-uppercase ls-25">Off</sub>
									</div>
									<h4 style="color: #FFEB3B;" class="banner-subtitle font-weight-bolder text-uppercase mb-0">Ultimate Sale</h4>
								</div>
							</div>
						</div>
						<!-- End of Widget Banner -->

						<div class="widget widget-products">
							<div class="title-link-wrapper mb-2">
								<h4 class="title title-link font-weight-bold">More Products</h4>
							</div>

							<div class="owl-carousel owl-theme owl-nav-top" data-owl-options="{'nav': true, 'dots': false, 'items': 1, 'margin': 20 }">
							
								<div class="widget-col">
									<?php $__currentLoopData = $mpros; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $mpr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<div class="product product-widget" style="padding: 0;">
										<figure class="product-media">
											<a href="<?php echo e(url('prodetails/'.$mpr->id)); ?>"><center style="background-color:#e4e7ec;"><img class="lazy" src="<?php echo e(URL::to($mpr->image)); ?>" alt="Product" style="height:83px;width:100%;"></center>														
											</a>
										</figure>
										<div class="product-details">
											<h4 class="product-name">
												<a href="<?php echo e(url('prodetails/'.$mpr->id)); ?>"><?php echo e($mpr->title); ?></a>
											</h4>
											<div class="product-price">Tk. <?php echo e($mpr->price); ?></div>
										</div>
									</div>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>	
								</div>
							</div>
						</div>
					</div>
				</div>
			</aside>
		</div>
	</div>
	<div class="container">
		<div class="row gutter-lg">	
            <div class="accordion accordion-simple mb-12">
				<section class="related-product-section">
					<div class="title-link-wrapper mb-4"><h5>More Related Products</h5></div>				
					<div class="owl-carousel owl-theme appear-animate row cols-lg-5 cols-md-4 cols-sm-3 cols-2 mb-6"
							data-owl-options="{'nav': false, 'dots': true, 'margin': 20, 'responsive': {'0': {'items': 2}, '576': {'items': 3}, '768': {'items': 5}, '992': {'items': 6}}}">
						<?php $__currentLoopData = $rpros; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $reps): $__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($reps->image)); ?>"></center>
	                                    <?php if(!is_null($reps->regu_price)): ?>
	                                    <div class="product-label-group">
	                                        <label class="product-label label-discount"><?php echo number_format((($reps->regu_price-$reps->price)/$reps->regu_price)*100); ?>% Off</label>
	                                    </div>
	                                    <?php endif; ?>
	                                
	                                    <div class="product-action-vertical">
	                                        <a href="#" class="btn-product-icon btn-compare"><i class="fa fa-eye"></i>
	                                        </a>
	                                    </div>
	                            </figure>
								<div class="product-details">
	                                <h3 class="product-name">
	                                    <a href="<?php echo e(url('prodetails/'.$reps->id)); ?>"><?php echo e($reps->title); ?></a>
	                                </h3>

	                                 
	                                <div class="product-pa-wrapper" style="margin-top:3px;">
	                                    <div class="product-price">
	                                        <ins class="new-price">Tk. <?php echo e($reps->price); ?></ins><?php if(!is_null($reps->regu_price)): ?> <del class="old-price">Tk. <?php echo e($reps->regu_price); ?></del> <?php endif; ?>
	                                    </div>                      
	                                    <div class="product-action">
	                                        <a href="#" style="color: #fff; background: #009688; padding: 2px 8px;min-width: 140px;" class="btn-cart btn-product btn btn-link">Add To Cart</a>
	                                    </div>                      
	                                </div>
	                            </div>

							</div>
						</div>							
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					</div>
				</section>
			</div>	
		</div>
	</div>		
</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/prodetails.blade.php ENDPATH**/ ?>