 <link href="<?php echo base_url();?>admin_assets/plugins/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
  <div class="body-content">
                        <div class="card mb-4">
                            <div class="card-body">
                                <div class="table-responsive">
                                    <table class="table display table-bordered table-striped table-hover basic">
                                        <thead>
                                            <tr>
                                            	<th>S.No.</th>
                                                <th>Journey</th>
                                                <th>Cities</th>
                                                <th>Dates</th><th>Travellers</th>
                                                <th>Name/Email/Mobile</th>
                                                <th>RegDate</th>
                                                <th>Action</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        	<?php $i=1;foreach($users as $u){?>
                                            <tr>
                                        <td><?php echo $i;?></td>
                                        <td><?php echo $u->journey_type;?></td>
                                        <td><?php if($u->cities!=""){echo $u->cities;}else{echo $u->from_city.'<br/>'.$u->to_city;}?></td>
                                        <td><?php echo 'Journey Date - '.date("d M'Y",strtotime($u->start_date));
										 if($u->return_date!="0000-00-00"){echo '<br/> Return Date - '.date("d M'Y",strtotime($u->return_date));}?></td>
                                         <td><label class="badge badge-success">Adults <?php echo $u->adult;?></label>
                                         <label class="badge badge-info">Children <?php echo $u->children;?></label></td>
                                        <td><?php echo $u->firstname.' '.$u->lastname.'<br/>'.$u->email;?><br/><?php echo $u->mobile;?></td>
                                        <td><?php echo date("d M'Y",strtotime($u->log_date));?></td>
                                        <td>
<a href="#" id="<?php echo $u->id;?>" class="btn btn-sm btn-success cust_details" data-toggle="modal" data-target="#myModal"><i class="fa fa-eye"></i></a>
<a href="<?php echo base_url().'admin/new_visa/'.$u->id;?>" class="btn btn-sm btn-warning"><i class="fa fa-edit"></i></a>
<a href="#" id="<?php echo $u->id;?>" class="btn btn-sm btn-danger cus_delete"><i class="fa fa-trash"></i></a>
<a href="#" id="<?php echo $u->id;?>" class="btn btn-sm btn-primary logs" data-toggle="modal" data-target="#logs"><i class="fa fa-file"></i> Notes</a></td>
                                            </tr>
                                            <?php $i++;}?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                       
                        <!--Language - Comma decimal place-->
                        
                        <!--Language options-->
                        
                    </div><!--/.body content-->
                </div><!--/.main content-->
                <div id="logs" class="modal fade" role="dialog">
                  <div class="modal-dialog modal-lg">
                    <!-- Modal content-->
                    <div class="modal-content">
                      <div class="modal-header" style="background:#FC0;"><i class="fa fa-files-o"></i>&nbsp; Customer &nbsp;<b class="text-success"> Logs</b>
                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                      </div>
                      <div class="modal-body logs_div row">
                        <p>Loading History...</p>
                      </div>
                    </div>
                
                  </div>
                </div>
                <div id="vdocs" class="modal fade" role="dialog">
                  <div class="modal-dialog modal-lg">
                    <!-- Modal content-->
                    <div class="modal-content">
                      <div class="modal-header" style="background:#FC0;"><i class="fa fa-files-o"></i>&nbsp; Customer  &nbsp;<b class="text-success"> Documents</b>
                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                      </div>
                      <div class="modal-body alldocs">
                        <p>Loading Documents...</p>
                      </div>
                    </div>
                
                  </div>
                </div>
                <div id="myModal" class="modal fade" role="dialog">
                  <div class="modal-dialog">
                
                    <!-- Modal content-->
                    <div class="modal-content">
                      <div class="modal-header" style="background:#F90;">
                        <h5 class="modal-title">Journey Details</h5>
                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                      </div>
                      <div class="modal-body details">
                      	<h3 class="text-warning"><i class="fa fa-spin fa-spinner"></i> Loading Details</h3>
                      </div>
                    </div>
                
                  </div>
                </div>

                <footer class="footer-content">
                    <div class="footer-text d-flex align-items-center justify-content-between">
                        <div class="copy">© 2019 CRM</div>
                    </div>
                </footer><!--/.footer content-->
                <div class="overlay"></div>
            </div><!--/.wrapper-->
        </div>
        <!--Global script(used by all pages)-->
        <script src="<?php echo base_url();?>admin_assets/dist/js/popper.min.js"></script>
        <script>
		$(document).ready(function(){
			$(".logs").click(function(){
				var id=$(this).attr("id");
				//alert(id);
				$.ajax({
					 type: "POST",
					 url: '<?php echo base_url();?>admin/ajax_logs2',
					 data: {id:id},
					 success: function(res){
					 $(".logs_div").html(res);
					}
				 }); 
			});
			$(".cust_details").click(function(){
				var id=$(this).attr("id");
				//alert(id);
				$.ajax({
					 type: "POST",
					 url: '<?php echo base_url();?>admin/ajax_cust_details2',
					 data: {id:id},
					 success: function(res){
					 $(".details").html(res);
					}
				 }); 
			});
			$(".vdocs").click(function(){
				var id=$(this).attr('id');
				//alert(id);
				$.ajax({
					 type: "POST",
					 url: '<?php echo base_url();?>admin/ajax_vdocs',
					 data: {id:id},
					 success: function(res){
						 //alert(res);
						$(".alldocs").html(res);
					 }
				});
			});
			$(".cus_delete").click(function(e){e.preventDefault();
				if(!confirm("Sure you want to delete?")){
					  return false;
				}
				var id=$(this).attr("id");$(this).closest("tr").remove();
				$.ajax({
					 type: "POST",
					 url: '<?php echo base_url();?>admin/ajax_cust_delete2',
					 data: {id:id},
					 success: function(response){
						 //alert(response);
					 }
				});
			});
		});
		</script>
        <script src="<?php echo base_url();?>admin_assets/plugins/bootstrap/js/bootstrap.min.js"></script>
        <script src="<?php echo base_url();?>admin_assets/plugins/metisMenu/metisMenu.min.js"></script>
        <script src="<?php echo base_url();?>admin_assets/plugins/perfect-scrollbar/dist/perfect-scrollbar.min.js"></script>
        <!-- Third Party Scripts(used by this page)-->
        <script src="<?php echo base_url();?>admin_assets/plugins/datatables/dataTables.min.js"></script>
        <script src="<?php echo base_url();?>admin_assets/plugins/datatables/dataTables.bootstrap4.min.js"></script>
        <!--Page Active Scripts(used by this page)-->
        <script src="<?php echo base_url();?>admin_assets/plugins/datatables/data-basic.active.js"></script>
        <!--Page Scripts(used by all page)-->
        <script src="<?php echo base_url();?>admin_assets/dist/js/sidebar.js"></script>
    </body>

<!-- Mirrored from bhulua.thememinister.com/tables_data_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 28 Sep 2019 13:44:34 GMT -->
</html>