<table class="table table-condensed table-bordered table-striped">


	<tr><th>Business/Firm Name</th><td><?php echo $user->first_name;?></td></tr>

	<tr><th>Contact Person</th><td><?php echo $user->ag_name;?></td></tr>
	<tr><th>Contact Phone</th><td><?php echo $user->ag_mobile;?></td></tr>
	<tr><th>Contact Email</th><td><?php echo $user->ag_email;?></td></tr>
	<tr><th>City</th><td><?php echo $user->city_name;?></td></tr>
	<tr><th>Address</th><td><?php echo $user->ag_address;?></td></tr>
	<tr><th>Aadhar Details</th><td><?php echo $user->aadhar_no;if($user->ag_ad_front!=''){?><br/>
    		<img class="img img-responsive" width="200px" src="<?php echo $user->ag_ad_front;?>" />
            <a href="<?php echo $user->ag_ad_front;?>" download class="btn btn-sm btn-success"><i class="fa fa-download"></i> Download</a><br/>
            <?php }if($user->ag_ad_back){?>
    		<img class="img img-responsive" width="200px" src="<?php echo $user->ag_ad_back;?>" />
            <a href="<?php echo $user->ag_ad_back;?>" download class="btn btn-sm btn-success"><i class="fa fa-download"></i> Download</a>
            <?php }?></td></tr>
	<tr><th>PAN Details</th><td><?php echo $user->pan_no;if($user->success!=''){?><br/>
    		<img class="img img-responsive" width="200px" src="<?php echo $user->pan_card;?>" />
            <a href="<?php echo $user->pan_card;?>" download class="btn btn-sm btn-success"><i class="fa fa-download"></i> Download</a>
            <?php }?></td></tr>
    <tr><th>KYC Remarks</th>
    	<th><form action="" method="post" id="kyc_remarks">
        	<input type="hidden" name="ag_id" value="<?php echo $user->ag_id;?>" />
        	<select class="form-control" name="kyc_approve" required>
            	<option value="">Select Status</option>
            	<option value="Pending" <?php if($user->kyc_approve=="Pending"){echo "selected";}?>>Pending</option>
            	<option value="Rejected" <?php if($user->kyc_approve=="Rejected"){echo "selected";}?>>Rejected</option>
            	<option value="Approved" <?php if($user->kyc_approve=="Approved"){echo "selected";}?>>Approved</option>
            </select> 
            <textarea class="form-control" name="kyc_remarks" rows="3"><?php echo $user->kyc_remarks;?></textarea>
            <button type="submit" class="btn btn-success">Submit</button>
  	      </form>
<script>
$(document).ready(function(){
	$("#kyc_remarks").submit(function(e){e.preventDefault();
		var formdata=$(this).serialize();
		$.ajax({
			 type: "POST",
			 url: '<?php echo base_url();?>admin/kyc_status_update',
			 data: {formdata:formdata},
			 success: function(res){//alert(res);
				alert(res);
				//	$(".view_detail_div").html(res);
			 }
		 });
	});
});
</script>
</table>