<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
		<meta name="description" content="">
		<meta name="author" content="">
		<link rel="shortcut icon" href="#" type="image/png">
		<title>Truck Management System</title>
		<link href="<?php echo base_url();?>public_html/admin_assets/css/style.css" rel="stylesheet">
		<link href="<?php echo base_url();?>public_html/admin_assets/css/style-responsive.css" rel="stylesheet">

		<script src="<?php echo base_url();?>public_html/admin_assets/js/jquery-1.10.2.min.js"></script>

		<!-- toastr pulgin -->			
		<link href="<?php echo base_url();?>public_html/admin_assets/plugins/toastr/build/toastr.min.css" rel="stylesheet">
		<script src="<?php echo base_url();?>public_html/admin_assets/plugins/toastr/build/toastr.min.js"></script>

		<!-- Time picker -->
		<link rel='stylesheet' type='text/css'href='<?php echo base_url();?>public_html/admin_assets/plugins/time_picker/css/timepicki.css'/>
		<script type='text/javascript'src='<?php echo base_url();?>public_html/admin_assets/plugins/time_picker/js/timepicki.js'></script>
		
		
		<style>
			.title a{
				color:#fff;
				font-weight:bold;
			}
		</style>
	</head>
	<body class="horizontal-menu-page">
		<section>
			<nav class="navbar navbar-default" role="navigation">
				<div class="container-fluid">
					<!-- Brand and toggle get grouped for better mobile display -->
					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="<?php echo base_url();?>login_ctrl/index">
							<img src="<?php echo base_url();?>public_html/admin_assets/images/logo.png" alt="">
							<!-- <h3 style="color:#fff;margin-top: 6px;">Truck Management System</h3> -->
						</a>
					</div>
					<!-- Collect the nav links, forms, and other content for toggling -->
					<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
						<ul class="nav navbar-nav">
							<li class=" <?php if($active_cls=="dash"){echo "active";}?> ">
								<a href="<?php echo base_url();?>admin_login_ctrl/index">
									<?php
										if($this->user['panel_type']=='0'){
											echo "Admin";
										}
									?>
									Dashboard
								</a>
							</li>
							<?php
								if($this->user['panel_type']=='0'){
							?>
									
									<li class="dropdown <?php if($active_cls=="userrr_cls"){echo "active";}?>">
										<a href="#" class="dropdown-toggle" data-toggle="dropdown">Users <b class="caret"></b></a>
										<ul class="dropdown-menu">
											<li>
												<a href="<?php echo base_url();?>users/module_users_ctrl/users_list/icd">Users List</a>
											</li>

											<li>
												<a href="<?php echo base_url();?>users/module_users_ctrl/add_user_details/icd">Add Users </a>
											</li>

										</ul>
									</li>

									<li class="<?php if($active_cls=="serv_cls"){echo "active";}?> ">
										<a href="<?php echo base_url();?>icd/Admin_icd_common_ctrl/icd_service_list/icd">Service List</a>
									</li>

									<li class="<?php if($active_cls=="agnt_cls"){echo "active";}?> ">
										<a href="<?php echo base_url();?>icd/Admin_icd_common_ctrl/agent_list">Agent List</a>
									</li>

									<li class="dropdown <?php if($active_cls=="trans_cls"){echo "active";}?>">
										<a href="#" class="dropdown-toggle" data-toggle="dropdown">Transporter <b class="caret"></b></a>
										<ul class="dropdown-menu">
											<li>
												<a href="<?php echo base_url();?>transporter_ctrl/transporter_list/icd">Transporter List</a>
											</li>

											<li>
												<a href="<?php echo base_url();?>transporter_ctrl/add_transporter_details/icd">Add Transporter </a>
											</li>
										</ul>
									</li>


									
							<?php
								}
							?>
							

						</ul>
						<ul class="nav navbar-nav navbar-right">
							<!-- <li>
								<form class="navbar-form navbar-left" role="search">
									<div class="form-group">
										<input type="text" class="form-control" placeholder="Search">
									</div>
								</form>
							</li> -->
							<li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <img alt="" src="images/photos/user-avatar.png"> <?php echo $this->user['l_user_name'];?> <b class="caret"></b></a>
								<ul class="dropdown-menu">
									<!-- <li><a href="#">Profile</a></li>
									<li><a href="#">Settings</a></li> -->
									<li>
									<?php
										if($this->user['panel_type']=='0'){
									?>
											<a href="<?php echo base_url();?>admin_login_ctrl/logout">Log Out</a>
									<?php
										}
										if($this->user['panel_type']!='0'){
									?>
											<a href="<?php echo base_url();?>icd/Icd_login_ctrl/logout">Log Out</a>
									<?php
										}
									?>
									</li>
								</ul>
							</li>
						</ul>
					</div>
					<!-- /.navbar-collapse -->
				</div>
				<!-- /.container-fluid -->
			</nav>
			<!--body wrapper start-->
			<div class="wrapper">
				<div class="row">
					<?php 
						if(isset($subview)&&isset($sdata)) 
							$this->load->view(''.$subview,$sdata);
						// else  $this->load->view('subviews/dashboard');
					?>
				</div>
			</div>
			<!--body wrapper end-->
			<!--footer section start-->
			<footer class="sticky-footer">
				<p> Designed and Developed by <a href="http://gravityinnovativesolutions.in/" target="_blank">Ahead Africa Solution Ltd</a></p>
			</footer>
			<!--footer section end-->
		</section>
		<!-- Placed js at the end of the document so the pages load faster -->
		<script src="<?php echo base_url();?>public_html/admin_assets/js/jquery-ui-1.9.2.custom.min.js"></script>
		<script src="<?php echo base_url();?>public_html/admin_assets/js/jquery-migrate-1.2.1.min.js"></script>
		<script src="<?php echo base_url();?>public_html/admin_assets/js/bootstrap.min.js"></script>
		<script src="<?php echo base_url();?>public_html/admin_assets/js/modernizr.min.js"></script>
		<script src="<?php echo base_url();?>public_html/admin_assets/js/jquery.nicescroll.js"></script>
		<!--common scripts for all pages-->
		<script src="<?php echo base_url();?>public_html/admin_assets/js/scripts.js"></script>

		<script type="text/javascript">
			tos_success 	= '<?php echo $this->session->flashdata('tos_success');?>';
			tos_error 		= '<?php echo $this->session->flashdata('tos_error');?>';
			tos_warning 	= '<?php echo $this->session->flashdata('tos_warning');?>';
			if(tos_success!=''){
				toastr.success(''+tos_success+'', '')
			}
			
			if(tos_error!=''){
				toastr.error(''+tos_error+'', '')
			}
			
			if(tos_warning!=''){
				toastr.warning(''+tos_warning+'', '')
			}
		</script>
	</body>
</html>