<div class="fd_bread_wrapper">
	<div class="container">
		<div class="row">
			<div class="col-lg-12">
				<div class="fd_bread">
					<h1 class="fd_page_title"><span>Your cart</span></h1>
					<nav aria-label="breadcrumb">
					  <ol class="breadcrumb">
						<li class="breadcrumb-item"><a href="<?php echo base_url(); ?>">Home</a></li>
						<li class="breadcrumb-item active" aria-current="page">cart</li>
					  </ol>
					</nav>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="fd_cart_wrapper">
		<div class="container"> 
			<div class="row">
				<div class="col-md-12 col-sm-12">
					<div class="cart_box table-responsive">
						<table>
							<thead>
								<tr>
									<th>product details</th>
									<th>price</th>
									<th>quantity</th>
									<th>total price</th>
									<th> </th>
								</tr>
							</thead>
							<tbody id="view_cart">
							</tbody>
						</table>
					</div>
				</div>
				<div class="col-md-6 col-sm-12">
					<div class="promo_code">
						<div class="cart_block_heading">
							<h3>Have a promo code?</h3>
						</div>
						<div class="promo_code_block">
							<div class="code_input">
								<input type="text" name="coupen_code" id="coupen_code"  placeholder="Enter Promo Code" class="promo_input" />
							</div>
							<div class="code_btn">
								<!--<a href="javascript:;" id="verify_coupen" class="fd_cart_btn">submit</a>-->
								<?php if(isset($_SESSION['userid'])){  ?>
								<button class="fd_cart_btn" id="verify_coupen">submit</button>
								<?php }else{ ?>
									<a href="#myModal1" class="fd_cart_btn" data-toggle="modal">submit</a>
							    <?php } ?>
							</div>
						</div>
					</div>
				</div>
				  <div class="col-md-6 col-sm-12">
					<div class="cart_summery">
						<div class="cart_block_heading">
							<h3>Cart Summary</h3>
							<div class="clear_cart">
								<a href="javascript:;" onclick="clear_cart();" class="fd_cart_btn">clear cart</a>
							</div>
						</div>
						<div class="cart_summery_block">
							<div class="price_summery">
								<h3>grand total</h3>
								
								<h5><span><?php echo $this->hs->getwebsettings('currency_symbol'); ?></span> <span id="grand_total"></span></h5>
							</div>
						</div>
						<div class="cart_summery_block" id="discount_amount_div">
						<?php if(isset($_SESSION['discount_amount'])){ ?>
							<div class="price_summery" >
								<h3>Discount Amount</h3>
								 
								<h5><span><?php echo $this->hs->getwebsettings('currency_symbol'); ?></span> <span id="discount_amount"><?php echo $_SESSION['discount_amount']; ?></span></h5>
							</div>
						<?php } ?>
						</div>
						<div class="cart_summery_block" id="final_amount_div">
						<?php if(isset($_SESSION['discount_amount'])){ ?>
							<div class="price_summery">
								<h3>Final Amount</h3>
								<h5><span><?php echo $this->hs->getwebsettings('currency_symbol'); ?></span> <span id="final_amount"><?php echo $this->cart->total() - $_SESSION['discount_amount']; ?></span></h5>
							</div>
						<?php } ?>
						</div>
						 
						<div class="checkout_block">
						<?php if(isset($_SESSION['userid'])){  ?>
							 <a href="<?php echo base_url().'checkout'; ?>" class="fd_cart_btn" id="checkout_btn">checkout</a>
						<?php 	 
						}else{ ?>
							<a href="#myModal1" class="fd_cart_btn" data-toggle="modal">checkout</a>
						<?php } ?>
						</div>
					</div>
				</div> 
			</div>
		</div>
	</div>