
<?php $__env->startSection('content'); ?>
	<!-- Page -->
	<div class="page-area cart-page spad">
		<div class="container">
			<div class="cart-table">
				<table>
					<thead>
						<tr>
							<th class="product-th">Product</th>
							<th>Price</th>
							<th>Quantity</th>
							<th class="total-th">Total</th>
							<th class="update-th">Update</th>
							<th class="update-th">Delete</th>
						</tr>
					</thead>
					
					<?php $__currentLoopData = Cart::content(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $contents): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<tbody>
							<tr>
								<td class="product-col">
									<img src="<?php echo e(asset($contents->options->img)); ?>" alt="" height="100">
									<div class="pc-title">
										<h4><?php echo e($contents->name); ?></h4>
										<!--<a href="#">Edit Product</a>-->
									</div>
								</td>
								<td class="price-col">R<?php echo e($contents->price); ?></td>

								<form method="post" action="/updatecart">
									<?php echo csrf_field(); ?>
									<td class="quy-col">
										<div class="quy-input">
											<span>Qty</span>
											<input type="number" value=<?php echo e($contents->qty); ?> name="qty">
										</div>
									</td>
									<td class="total-col">R<?php echo e($contents->price); ?></td>

									<input type="hidden" name="id" value=<?php echo e($contents->rowId); ?>>
									<td class="updat-col"><input type="submit" class="site-btn btn-line btn-update" value="Update"></td>
								</form>

								<form method="post" action="/delete">
									<?php echo csrf_field(); ?>
									<input type="hidden" name="id" value=<?php echo e($contents->rowId); ?>>
									<td class="updat-col"><input type="submit" class="site-btn btn-line btn-update" value="Delete"></td>
								</form>
							</tr>
						</tbody>
					<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
				</table>
			</div>
			<div class="row cart-buttons">
				<div class="col-lg-5 col-md-5">
					<a href="/products"><div class="site-btn">Continue shoping</div></a>
				</div>
				<div class="col-lg-7 col-md-7 text-lg-right text-left">
					<a href="/clear"><div class="site-btn btn-clear">Clear cart</div></a>
					<!--<div class="site-btn btn-line btn-update">Update Cart</div>-->
				</div>
			</div>
		</div>
		<div class="card-warp">
			<div class="container">
				<div class="row">
					<div class="col-lg-4">
						<div class="shipping-info">
							<!--<h4>Shipping method</h4>
							<p>Select the one you want</p>-->
							<!--<div class="shipping-chooes">
								<div class="sc-item">
									<input type="radio" name="sc" id="one">
									<label for="one">Next day delivery<span>R86.00</span></label>
								</div>
								<div class="sc-item">
									<input type="radio" name="sc" id="two">
									<label for="two">Standard delivery<span>R55.00</span></label>
								</div>
								<div class="sc-item">
									<input type="radio" name="sc" id="three">
									<label for="three">Personal Pickup<span>Free</span></label>
								</div>
							</div>-->
							<h4>Cupon code</h4>
							<p>Enter your cupone code</p>
							<div class="cupon-input">
								<input type="text">
								<button class="site-btn">Apply</button>
							</div>
						</div>
					</div>
					<div class="offset-lg-2 col-lg-6">
						<div class="cart-total-details">
							<h4>Cart total</h4>
							<p>Final Info</p>
							<ul class="cart-total-card">
								<li>Subtotal<span>R<?php echo e(Cart::subtotal()); ?></span></li>
								<!--<li>Shipping<span>Free</span></li>-->
								<li class="total">Total<span>R<?php echo e(Cart::total()); ?></span></li>
							</ul>
							<a class="site-btn btn-full" href="/checkout">Proceed to checkout</a>
						</div>
					</div>
				</div>
			</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/cart.blade.php ENDPATH**/ ?>