<?php $__env->startSection('banner'); ?>
	<?php echo $__env->make('sections.banner-sm', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('contents'); ?>
	<section id="standard-content" class="cart-details">
		<div class="container">

			<p id="breadcrumb">
			    <a href="<?php echo e(url('/')); ?>"><i class="fa fa-home"></i></a>
			   <?php echo e($bread); ?>

			</p>

			<div class="container-wrapper">

				<div class="alert alert-info" id="emptyCartError" hidden>
					Your cart is currently empty! <a href="<?php echo e(url('/page/shop')); ?>" class="btn btn-xs btn-success">Shop now</a>
				</div>

				<?php if(sizeof($data['cart']) == 0): ?>
					<div class="alert alert-info">
						Your cart is currently empty! <a href="<?php echo e(url('/page/shop')); ?>" class="btn btn-xs btn-success">Shop now</a>
					</div>
				<?php else: ?>
					<div id="productList">
						<table class="table table-bordered">
							<tr>
								<th>Product ID</th>
								<th>Product Name</th>
								<th>Quantity</th>
								<th>Amount</th>
								<th>Total</th>
								<th></th>
							</tr>
							<?php foreach($data['cart'] as $p): ?>
								<tr class="row-<?php echo e($p->id); ?>">
									<td class="text-left"><?php echo e($p->id); ?></td>
									<td class="text-left"><?php echo e($p->name); ?></td>
									<td class="text-center qty-<?php echo e($p->id); ?>"><?php echo e($p->qty); ?></td>
									<td class="money"><?php echo e(money_format('%i', $p->price)); ?></td>
									<td class="money sub-<?php echo e($p->id); ?>"><?php echo e(money_format('%i', $p->subtotal)); ?></td>
									<td class="actionbtns">
										<div class="btn-group">
											<button class="increment btn btn-xs btn-default" data-rowid="<?php echo e($p->rowid); ?>" data-id="<?php echo e($p->id); ?>"><i class="fa fa-plus-circle"></i></button>
											<button class="decrement btn btn-xs btn-default" data-rowid="<?php echo e($p->rowid); ?>" data-id="<?php echo e($p->id); ?>"><i class="fa fa-minus-circle"></i></button>
											<button class="deleteitem btn btn-xs btn-danger" data-rowid="<?php echo e($p->rowid); ?>" data-id="<?php echo e($p->id); ?>"><i class="fa fa-trash"></i></button>
										</div>
									</td>
								</tr>
							<?php endforeach; ?>
							<tr>
								<td colspan="4" class="totaltext"><b>TOTAL</b></td>
								<td class="totalcell">&dollar; <?php echo e(money_format('%i', Cart::total())); ?></td>
							</tr>
						</table>

						<div class="well">
							<div class="text-right">
								<a href="<?php echo e(url('/shop/checkout')); ?>" class="btn btn-primary">Proceed to Checkout</a>
							</div>
						</div>

						<form action=""><input name="token" type="hidden" value="<?php echo e(csrf_token()); ?>"></form>
					</div>
						
				<?php endif; ?>

				<div class="clearfix"></div>
			</div>
		</div>
	</section>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
	<script type="text/javascript" src="<?php echo e(asset('/js/min/shop-min.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('masters.base', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>