<div class="osahan-breadcrumb">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?php echo base_url(); ?>"><i class="icofont icofont-ui-home"></i> Home</a></li>
<li class="breadcrumb-item active">Checkout</li>
</ol>
</div>
</div>
</div>
</div>
<!-- ========================= SECTION INTRO END// ========================= -->
	<div class="container">
  <div class="py-5 text-center">
      <h2>Please fill up your Shipping details</h2>
    </div>
    <div class="row">
        <div class="col">
            <div class="card">
                <div class="card-header bg-primary text-white"><i class="fa fa-envelope"></i> Checkout.
                </div>
                <div class="card-body">
             <form action="<?php echo base_url('Order/add_order'); ?>" method="post">
                 <?php if(isset($ord)){ ?>
                        <div class="form-group">
                            <input type="hidden" value="<?php echo $ord; ?>" name="product_slug" class="form-control">
                        </div>
                    <?php } ?>
                         <div class="row g-3">

                                       <div class="col-sm-6">
                                            <label for="fullname" class="form-label">Your Name *</label>
                                            <input type="text" id="name" placeholder="Enter Your Full Name" required=""  class="form-control" required="" name="fullname" />
                                        </div>
										<div class="col-sm-6">
                                            <label for="phone" class="form-label">Phone Number *</label>
                                            <input type="number" placeholder="Enter Your Contact Number" class="form-control" id="ph" required="" name="phone" />
                                        </div>
                                        	<div class="col-sm-6">
                                            <label for="city" class="form-label">City *</label>
                                            <input type="text" placeholder="Enter Your City/Town" class="form-control" id="city" required="" name="city" />
                                        </div>
                                       	<div class="col-sm-6">
                                            <label for="email" class="form-label">Email *</label>
                                            <input type="email" placeholder="Enter Your Email " required=""  class="form-control" name="email" id="em">
                                        </div>
                                         <div class="col-12">
                                            <label for="address" class="form-label">Address*</label>
                                       <textarea placeholder="Enter Your Complete Address " id="dl" required="" class="form-control"  name="address"></textarea>
                                        </div>
                                       <div class="col-12">
                                            <label for="qnt" class="form-label">Add Quantity *</label>
 <input type="Number" min="1" max="15" required="" class="form-control" id="qn"
                                   name="qnt" placeholder="Enter Quantity">                                        </div>
                                    </div>
                                    <br>
                                  <button class="w-100 btn btn-primary btn-lg" type="submit">Submit Now</button>

                    </form>
                </div>
            </div>
        </div>
        <div class="col-12 col-sm-4">
            <div class="card bg-light mb-3">
                <div class="card-header bg-success text-white text-uppercase"><i class="fa fa-home"></i> Your Order Details</div>
                <div class="card-body">
                    <?php
                    $slg  = $ord;
                    $this->db->where('slug', $slg);
                    $query = $this->db->get('product');
                    if($query->num_rows() > 0){
                        $orderdata = $query->row();
                 ?>
                   <ul class="list-group mb-3">
          <li class="list-group-item d-flex justify-content-between lh-sm">
            <div>
              <h6 class="my-0"><?php echo
                                                $orderdata->name; ?></h6>
            
            </div>
					<input type="hidden" id="sail_price" value="<?php echo $orderdata->sail_price;?> ">
                        <input type="hidden" id="charg" value="<?php echo $orderdata->dliveryfee;?> ">
            <span class="text-muted">Rs <?php echo $orderdata->sail_price;?></span>
          </li>
          <li class="list-group-item d-flex justify-content-between bg-light">
            <div class="text-success">
              <h6 class="my-0">Shipping Charges</h6>
            </div>
            <span class="text-success"> <?php echo $orderdata->dliveryfee;?></span>
          </li>
          <li class="list-group-item d-flex justify-content-between">
            <span>Total (PKR)</span>
            <strong>RS <span id="totalbill"></span></strong>
          </li>
        </ul>
                </div>
 <?php }?>

            </div>
        </div>
    </div>
</div>
<script src="<?php echo base_url('assets/js/jquery-2.0.0.min.js'); ?>" type="text/javascript"></script>
