<div class="container" style="margin-top: 40px;">
	<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
		<center><img src="https://mandkstaffing.com/wp-content/uploads/2017/05/cropped-400dpiLogo.jpg" title="M & K Technovations"></center>
	</div>
	<div class="col-md-12">
	<?php if($_SESSION['is_errors'] != FALSE) { echo $_SESSION['error_messages']; } ?></div>
	<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
	<?php echo form_open('pay/processtransaction');?>
	<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
		<div class="form-group">
			<label class="control-label visible-ie8 visible-ie9">Customer Name <span class="text-danger">(Required)</span></label>
			<input class="form-control form-control-solid type="text" autocomplete="off" placeholder="Customer Name" name="cname"/>
		</div>
	</div>
	<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">	
		<div class="form-group">
			<label class="control-label">Customer E-Mail ID <span class="text-danger">(Required)</span></label>
			<input class="form-control form-control-solid" type="email" autocomplete="off" placeholder="Customer E-Mail ID" name="cemail"/>
		</div>
	</div>
	<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">	
        <div class="form-group">
			<label class="control-label">Plan</label>
			<input class="form-control form-control-solid" type="text" autocomplete="off" value="<?php echo $plan.'.99 $'; ?>" disabled />
			<input type="hidden" name="plan" value="<?php echo $plan; ?>">
		</div>
	</div>
	<?php 
		$discount = 0; 
		switch($plan){ 
			case 199: $discount = 5; break;
			case 299: $discount = 10; break;
			case 499: $discount = 15; break;
			default: $discount; break; 
		}
	?>
	<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">	
        <div class="form-group">
			<label class="control-label">Discount</label>
			<input class="form-control form-control-solid" type="text" autocomplete="off" value="<?php echo $discount.' %'; ?>" disabled />
			<input type="hidden" name="discount" value="<?php echo $discount; ?>">
		</div>
	</div>
	<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">	
        <div class="form-group">
			<label class="control-label">Employee ID <span class="text-danger">(Required)</span></label>
			<input class="form-control form-control-solid" type="text" autocomplete="off" placeholder="Employee ID" name="eid"/>
		</div>
	</div>
	<?php
		$grand_total = 0;
		if($plan == 99)
		{
			$grand_total = 99.99;
		}else{
			$grand_total = $plan - ($plan * ($discount/100));
		}
	?>
	<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
		<div class="form-group">	
	        <label>Grand Total</label>
	        <div id="subTotal"><b><?php echo $grand_total.' $';?></b></div>
	        <input type="hidden" name="grandtotal" value="<?php echo $grand_total; ?>">
	    </div>    
	</div>
	<div class="form-group">
		<div class="col-sm-8">	
			<button type="submit" class="btn btn-success uppercase" name="_order" value="order"><i class='fa fa-check'></i> <span>Finalize Order</span></button>
		</div>
		<div class="col-sm-4">	
			<button type="submit" class="btn btn-danger uppercase" name="_cancel" value="cancel"><i class='fa fa-remove'></i> <span>Cancel</span></button>
		</div>
	</div>
	<?php echo form_close();?>
	</div>
</div>