		<div id="navbar" class="navbar navbar-default    navbar-collapse       h-navbar ace-save-state">
			<div class="navbar-container ace-save-state" id="navbar-container">
				<div class="navbar-header pull-left">
					<a href="<?php echo base_url().'admin/utama';?>" class="navbar-brand" style="font-size:18px">
						<small>
							<i class="fa fa-university"></i>
						 Gedung Diklat Pemerintah Kota Madiun
						</small>
					</a>
					<button class="pull-right navbar-toggle navbar-toggle-img collapsed" type="button" data-toggle="collapse" data-target=".navbar-buttons,.navbar-menu">
						<span class="sr-only">Toggle user menu</span>
						<img src="<?php echo base_url().'assets_v2/images/avatars/user.jpg';?>" alt="Jason's Photo" />
					</button>
					<button class="pull-right navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#sidebar">
						<span class="sr-only">Toggle sidebar</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
				</div>
				<div class="navbar-buttons navbar-header pull-right  collapse navbar-collapse" role="navigation">
					<ul class="nav ace-nav">					
					<li class="red dropdown-modal">
							<a data-toggle="dropdown" class="dropdown-toggle" href="#">
								<i class="ace-icon fa fa-envelope icon-animated-vertical"></i>
								<span class="badge badge-success">				
									<?php 
									$this->load->model('m_home');
									$tgl =date('Y-m-d');
									$res = $this->m_home->jumlahditerima($tgl);
									echo $res ;
									?>
									</span>
							</a>

							<ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
								<li class="dropdown-header">
									<i class="ace-icon fa fa-envelope-o"></i>
								 <?php echo 'Ada '.$res .' Pemesanan Hari ini'; ?>
								</li>

								<li class="dropdown-content">
									<ul class="dropdown-menu dropdown-navbar">
										<?php 
										$status='1';
										$tgl =date('Y-m-d');
										$tampil= $this->m_home->pesantanggal($status, $tgl);	
										$no=0; foreach($tampil->result() as $row){ $no++;
										?>
										<li> 
											<a href="<?php echo base_url().'admin/pesan/ceknotif/'.$row->idpesan;?>" class="clearfix">
													<strong>Pemakai : </strong> <?php echo $row->namapemakai;?>
													<br />
														<i class="ace-icon fa fa-clock-o" ></i>
														<?php echo date('H:i', strtotime($row->tglpesan)); ?>
											</a>
										</li>											
										<?php  } if($res !=0){?>
										
										<li> 
											<a href="<?php echo base_url().'admin/pesan/kosongnotif/';?>" class="clearfix">
													<strong>Hapus Notifikasi</strong>
											</a>
										</li>
										<?php }?>
									</ul>
								</li>
						</ul>
						<li class="light-blue dropdown-modal user-min">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
								<img class="nav-user-photo" src="<?php echo base_url().'assets_v2/images/avatars/user.jpg';?>" alt="Jason's Photo" />
								<span class="user-info">
									<small>Welcome,</small>
									<?php  echo  $this->session->userdata('nama');?>
								</span>
								<i class="ace-icon fa fa-caret-down"></i>
							</a>
							<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
							<!-- 	<li>
									<a href="#">
										<i class="ace-icon fa fa-cog"></i>
										Settings
									</a>
								</li> -->
								<li class="divider"></li>
								<li>
									<a href="<?php echo base_url().'login/logout';?>">
										<i class="ace-icon fa fa-power-off"></i>
										Logout
									</a>
								</li>
							</ul>
						</li>
					</ul>
				</div>
			</div><!-- /.navbar-container -->
		</div>