
<?php $__env->startSection('content'); ?>
	<!-- Page -->
	<div class="page-area product-page spad">
		<div class="container">
			<div class="row">
				<div class="col-lg-6">
					<figure>
						<img class="product-big-img" src="<?php echo e(asset($product->image)); ?>" alt="" height="600">
					</figure>
					<div class="product-thumbs">
						<div class="product-thumbs-track">
							<div class="pt" data-imgbigurl="<?php echo e(asset($product->image)); ?>"><img src="<?php echo e(asset($product->image)); ?>" alt=""></div>
							<!--<div class="pt" data-imgbigurl="<?php echo e(asset('img/product/2.jpg')); ?>"><img src="<?php echo e(asset('img/product/thumb-2.jpg')); ?>" alt=""></div>
							<div class="pt" data-imgbigurl="<?php echo e(asset('img/product/3.jpg')); ?>"><img src="<?php echo e(asset('img/product/thumb-3.jpg')); ?>" alt=""></div>
							<div class="pt" data-imgbigurl="<?php echo e(asset('img/product/4.jpg')); ?>"><img src="<?php echo e(asset('img/product/thumb-4.jpg')); ?>" alt=""></div>-->
						</div>
					</div>
				</div>
				<div class="col-lg-6">
					<div class="product-content">
						<h2><?php echo e($product->Title); ?></h2>
						<div class="pc-meta">
							<h4 class="price">R<?php echo e($product->Price); ?></h4>
							<div class="review">
								<div class="rating">
									<i class="fa fa-star"></i>
									<i class="fa fa-star"></i>
									<i class="fa fa-star"></i>
									<i class="fa fa-star"></i>
									<i class="fa fa-star is-fade"></i>
								</div>
								<span>(2 reviews)</span>
							</div>
						</div>
						<p class="prdct-dscr"><?php echo e($product->Description); ?></p>

						<form method="POST" action="/addcart">
							<?php echo csrf_field(); ?>

							<?php $color = json_decode($product->color, true); ?>

							<?php $size = json_decode($product->size, true); ?>

							<div class="color-choose">
								<span>Colors:</span>

								<?php if($color['black'] > 0): ?>
									<div class="cs-item">
										<input type="radio" name="color" id="black-color" value="Black" checked>
										<label class="cs-black" for="black-color"></label>
									</div>
								<?php endif; ?>

								<?php if($color['blue'] > 0): ?>
									<div class="cs-item">
										<input type="radio" name="color" value="Blue" id="blue-color">
										<label class="cs-blue" for="blue-color"></label>
									</div>
								<?php endif; ?>


								<div class="cs-item">
									<input type="radio" name="color" value="Yellow" id="yollow-color">
									<label class="cs-yollow" for="yollow-color"></label>
								</div>

								<?php if($color['red'] > 0): ?>
									<div class="cs-item">
										<input type="radio" name="color" value="Orange" id="orange-color">
										<label class="cs-orange" for="orange-color"></label>
									</div>
								<?php endif; ?>

								<?php $__errorArgs = ['color'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
									<small class="text-danger"><?php echo e($message); ?></small>
								<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
							</div>

							<div class="size-choose">
								<span>Size:</span>

								<?php if($size['l'] > 0): ?>
									<div class="sc-item">
										<input type="radio" name="size" value="Larg" id="l-size" checked>
										<label for="l-size">L</label>
									</div>
								<?php endif; ?>

								<?php if($size['xl'] > 0): ?>
									<div class="sc-item">
										<input type="radio" name="size" value="Extra larg" id="xl-size">
										<label for="xl-size">XL</label>
									</div>
								<?php endif; ?>

								<?php if($size['xxl'] > 0): ?>
									<div class="sc-item">
										<input type="radio" name="size" value="Extra extra larg" id="xxl-size">
										<label for="xxl-size">XXL</label>
									</div>
								<?php endif; ?>

								<?php $__errorArgs = ['size'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
									<small class="text-danger"><?php echo e($message); ?></small>
								<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

							</div>


							<input type="hidden" name="id" value=<?php echo e($product->id); ?>>
							<input type="hidden" name="name" value=<?php echo e($product->Title); ?>>
							<input type="hidden" name="amount" value=<?php echo e($product->Price); ?>>
							<input type="hidden" name="img" value=<?php echo e($product->image); ?>>
							<input class="site-btn btn-line" type="submit" value="ADD TO CART">
						</form>
					</div>
				</div>
			</div>
			<div class="product-details">
				<div class="row">
					<div class="col-lg-10 offset-lg-1">
						<ul class="nav" role="tablist">
							<li class="nav-item">
								<a class="nav-link active" id="1-tab" data-toggle="tab" href="#tab-1" role="tab" aria-controls="tab-1" aria-selected="true">Description</a>
							</li>
							<li class="nav-item">
								<a class="nav-link" id="2-tab" data-toggle="tab" href="#tab-2" role="tab" aria-controls="tab-2" aria-selected="false">Additional information</a>
							</li>
							<li class="nav-item">
								<a class="nav-link" id="3-tab" data-toggle="tab" href="#tab-3" role="tab" aria-controls="tab-3" aria-selected="false">Reviews (0)</a>
							</li>
						</ul>
						<div class="tab-content">
							<!-- single tab content -->
							<div class="tab-pane fade show active" id="tab-1" role="tabpanel" aria-labelledby="tab-1">
								<p><?php echo e($product->Description); ?></p>
							</div>
							<div class="tab-pane fade" id="tab-2" role="tabpanel" aria-labelledby="tab-2">
								<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit</p>
							</div>
							<div class="tab-pane fade" id="tab-3" role="tabpanel" aria-labelledby="tab-3">
								
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="text-center rp-title">
				<h5>Related products</h5>
			</div>
			<div class="row">

				<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $productThis): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<?php if($productThis->category == $product->category && $productThis->id != $product->id): ?>
						<div class="col-lg-3">
							<a href="/product/<?php echo e($productThis->id); ?>">
								<div class="product-item">
									<figure>
										<img src="<?php echo e(asset($productThis->image)); ?>" alt="">
										<div class="pi-meta">
											<div class="pi-m-left">
												<img src="<?php echo e(asset('img/icons/eye.png')); ?>" alt="">
												<p>quick view</p>
											</div>
											<div class="pi-m-right">
												<img src="<?php echo e(asset('img/icons/heart.png')); ?>" alt="">
												<p>save</p>
											</div>
										</div>
									</figure>
									<div class="product-info">
										<h6><?php echo e($productThis->Title); ?></h6>
										<p>R<?php echo e($productThis->Price); ?></p>

										<form action="/addcart" method="POST">
										<?php echo csrf_field(); ?>
											<input type="hidden" name="color" value="black">
											<input type="hidden" name="size" value="larg">
											<input type="hidden" name="id" value=<?php echo e($productThis->id); ?>>
											<input type="hidden" name="name" value=<?php echo e($productThis->Title); ?>>
											<input type="hidden" name="amount" value=<?php echo e($productThis->Price); ?>>
											<input type="hidden" name="img" value=<?php echo e($productThis->image); ?>>
											<input type="submit" class="site-btn btn-line" value="ADD TO CART">
										</form>
									</div>
								</div>
							</a>
						</div>
					<?php endif; ?>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			</div>
		</div>
	</div> 
	<!-- Page end -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\example-app\resources\views/product.blade.php ENDPATH**/ ?>