<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="robots" content="noindex, nofollow">
	<!-- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> -->
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	
    
    <meta name="description" content="IBS" />
    <meta name="author" content="Suroto" />
    <link rel="icon" type="image/png" href="<?php echo base_url('assets/') ?>/img/logojud.png"/>
    <!--[if IE]>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <![endif]-->
    <title>Mie Djoedes - Djoearanya Pedes</title>
    <link href="<?php echo base_url() ?>/assets/css/bootstrap.css" rel="stylesheet" />

    <link href="<?php echo base_url() ?>/assets/css/font-awesome.css" rel="stylesheet" />
    <link href="<?php echo base_url() ?>/assets/css/style.css" rel="stylesheet" />
    <link href="<?php echo base_url() ?>/assets/css/toastr.min.css" rel="stylesheet" />
    <link href="<?php echo base_url() ?>/assets/css/jquery.dataTables.min.css" rel="stylesheet" />
    <link href="<?php echo base_url() ?>/assets/css/buttons.dataTables.min.css" rel="stylesheet" />
    <link href="<?php echo base_url() ?>/assets/css/jquery-ui.css" rel="stylesheet" />
    <link href="<?php echo base_url() ?>/assets/css/bootstrap-select.min.css" rel="stylesheet" >
	
	<link href="<?php echo base_url() ?>/assets/css/bootstrap-responsive.min.css" rel="stylesheet" > 
	
	<link href="<?php echo base_url() ?>/assets/css/fullcalendar.css" rel="stylesheet" >
	<link href="<?php echo base_url() ?>/assets/css/matrix-style.css" rel="stylesheet" >
	<link href="<?php echo base_url() ?>/assets/css/bootstrap-responsive.min.css" rel="stylesheet" >
	
	<link href="<?php echo base_url() ?>/assets/css/jquery.gritter.css">

	
	<style type="text/css">
         html,body{height: 100%;}
         .bg-utama{
         background-image: url(<?php echo base_url('gambar/banner.jpg') ?> ); 
		 
         background-size: cover;
         background-position: center;
         text-align: center;
         height: 100%;
         }
      </style>	

	
</head>
				


<style type="text/css">
	.satu {
		max-width: 900px; 
		height : 70vh;
	}
	.dua {
		height : 100%;
		overflow : auto;
	}		
	</style>	

<style type="text/css">
	.tiga {
		max-width: 100px; 
		height : 70vh;
	}
	.empat {
		height : 100%;
		overflow : auto;
	}		
	</style>		
<body>

	

<script type="text/javascript"/>
			document.getElementById("full-screen").addEventListener("click", function(e) {			  
				toggleFullScreen();			 
			}, false);
			
			function toggleFullScreen() {
			  if (!document.fullscreenElement) {
				  document.documentElement.requestFullscreen();
			  } else {
				if (document.exitFullscreen) {
				  document.exitFullscreen(); 
				}
			  }
			}
		</script>
<?php
$query = $this->db->get('tabel_toko', 1, 0);
$toko = $query->row();
$namatoko = $toko->almt_toko;

?>
    
<?php
$hak = $this->session->userdata('akses');
$user = $this->session->userdata('ses_nama');
$kdtoko=$this->session->userdata('kd_toko');
?>
    <!-- LOGO HEADER END-->
    <section class="menu-section no-print">
        <div >
            <div class="row ">
                <div class="col-md-12">
				
                    <div class="navbar-collapse collapse ">
					
                        <ul id="menu-top" class="nav navbar-nav navbar-left">		
                            
							 <li>
							 <a href="<?php echo base_url('dashboard/') ?>"><img height="30px" src="<?php echo base_url() ?>/assets/img/home.png" />Home</a>
                			</li>
                            <?php if ($hak != 'kasir' && $hak != 'dapur' && $hak != 'admin' && $hak != 'adminsl'): ?>
							
                            <li class="dropdown">
                                <a href="<?php echo base_url('dashboard/') ?>"><img height="30px" src="<?php echo base_url() ?>/assets/img/gudang.jpg" class="dropdown-toggle" id="ddlmenuItem" data-toggle="dropdown">GUDANG<i class="fa fa-angle-down"></i></a>
                                <ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('gudang/satuan/') ?>">SATUAN BAHAN</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('gudang/barang/') ?>">ENTRY BAHAN BAKU</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('gudang/menu/') ?>">DAFTAR MENU</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('gudang/pembelian-start/') ?>">PEMBELIAN</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('gudang/stok/') ?>">STOK BAHAN</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('gudang/bahan-rusak/') ?>">BAHAN RUSAK / BUSUK</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('gudang/stok-min/') ?>">BAHAN MAU HABIS</a></li>
                                </ul>
                            </li>
                            <?php endif?>
                            <?php if ($hak != 'gudang' && $hak != 'dapur' && $hak != 'admin' && $hak != 'adminsl'): ?>
                            <li class="dropdown">
                                <a href="<?php echo base_url('dashboard/') ?>"><img height="30px" src="<?php echo base_url() ?>/assets/img/favicon.png" class="dropdown-toggle" id="ddlmenuItem" data-toggle="dropdown">KASIR<i class="fa fa-angle-down"></i></a>
                                <ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('kasir/nomor-faktur/') ?>">MESIN KASIR</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('kasir/input-biaya/') ?>">INPUT BIAYA</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('kasir/rekap/') ?>">REKAP HARI INI</a></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('kasir/rekapd/') ?>">DETAIL HARI INI</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('kasir/barang-masuk/') ?>">BAHAN MASUK HARI INI</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('gudang/removal-awal/') ?>">REMOVAL</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('gudang/stok/') ?>">STOK HARI INI</a></li>
                                </ul>
                            </li>
                                <?php if ($hak != 'manager'): ?>
                                    <li class="dropdown">
                                        <a href="<?php echo base_url('dashboard/') ?>"><img height="30px" src="<?php echo base_url() ?>/assets/img/report.png" class="dropdown-toggle" id="ddlmenuItem" data-toggle="dropdown">LAPORAN<i class="fa fa-angle-down"></i></a>
                                            <ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">
                                                <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('laporan/biaya/') ?>">BIAYA-BIAYA</a></li>
                                                <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('laporan/penjualan-transaksi/') ?>">PENJUALAN PER TRANSAKSI</a></li>
                                                <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('laporan/penjualan-barang/') ?>">PENJUALAN PER MENU</a></li>
                                                <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('laporan/rekap/') ?>">REKAPITULASI PENJUALAN</a></li>
                                        </ul>
                                    </li>
                                <?php endif?>
                            <?php endif?>
							<?php if ($hak != 'gudang' && $hak != 'kasir' && $hak != 'admin' && $hak != 'adminsl'): ?>
                            <li class="dropdown">
                                <a href="<?php echo base_url('dashboard/') ?>"><img height="30px" src="<?php echo base_url() ?>/assets/img/dapur.jpg" class="dropdown-toggle" id="ddlmenuItem" data-toggle="dropdown">Dapur<i class="fa fa-angle-down"></i></a>
                                <ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('kasir/dapur/') ?>">Orderan</a></li>
                                    
                                </ul>
                            </li>
                            <?php endif?>
							<?php if ($hak != 'dapur' && $hak != 'gudang' && $hak != 'kasir' && $hak != 'adminsl'): ?>
                            <li class="dropdown">
                                <a href="<?php echo base_url('dashboard/') ?>"><img height="30px" src="<?php echo base_url() ?>/assets/img/dapur.jpg" class="dropdown-toggle" id="ddlmenuItem" data-toggle="dropdown">Admin<i class="fa fa-angle-down"></i></a>
                                <ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('kasir/rekap1/') ?>">REKAP PENJUALAN</a></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('laporan/penjualan-barang1/') ?>">MONITORING PENJUALAN</a></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('laporan/promo/') ?>">REKAP PROMOSI</a></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('laporan/alurkas/') ?>">ALURKAS</a></li>
                                </ul>
                            </li>
                            <?php endif?>
                            <?php if ($hak == 'manager'): ?>
                            <li class="dropdown">
                                <a href="<?php echo base_url('dashboard/') ?>"><img height="30px" src="<?php echo base_url() ?>/assets/img/mgr.png" class="dropdown-toggle" id="ddlmenuItem" data-toggle="dropdown">MANAJER <i class="fa fa-angle-down"></i></a>
                                <ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('manajer/toko/') ?>">TOKO</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('manajer/user/') ?>">USER</a></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('manajer/ongkir/') ?>"><font color='blue'><b>Ongkir</b></font></a></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('manajer/pongkir/') ?>"><font color='blue'><b>Promo Ongkir</b></font></a></li>
									<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('manajer/promosi/') ?>"><font color='RED'><b>PROMOSI</b></font></a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('gudang/stok/') ?>">STOK BAHAN</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('manajer/kartu-stok/') ?>">KARTU STOK</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('gudang/stok-min/') ?>">BAHAN MAU HABIS</a></li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="<?php echo base_url('dashboard/') ?>"><img height="30px" src="<?php echo base_url() ?>/assets/img/grafik.jpg" class="dropdown-toggle" id="ddlmenuItem" data-toggle="dropdown">GRAFIK<i class="fa fa-angle-down"></i></a>
                                <ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">
                                    <li role="presentation"><a target="_blank" role="menuitem" tabindex="-1" href="<?php echo base_url('grafik/stok-barang/') ?>">GRAFIK PORSI BAHAN</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('grafik/profit-bulanan/') ?>">GRAFIK PROFIT BULANAN</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('grafik/penjualan-bulanan/') ?>">GRAFIK PENJUALAN BULANAN</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('grafik/penjualan-tahun/') ?>">GRAFIK PENJUALAN TAHUNAN</a></li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="<?php echo base_url('dashboard/') ?>"><img height="30px" src="<?php echo base_url() ?>/assets/img/report.png" class="dropdown-toggle" id="ddlmenuItem" data-toggle="dropdown">LAPORAN<i class="fa fa-angle-down"></i></a>
                                <ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('laporan/biaya/') ?>">BIAYA-BIAYA</a></li>
									
                                    <li role="presentation"><a role="menuitem" tabindex="-1" target="_blank" href="<?php echo base_url('laporan/nilai-persediaan/') ?>">PERSEDIAAN BAHAN</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" target="_blank" href="<?php echo base_url('laporan/pembelian/') ?>">PEMBELIAN</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" target="_blank" href="<?php echo base_url('laporan/penjualan-transaksi/') ?>">PENJUALAN PER TRANSAKSI</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" target="_blank" href="<?php echo base_url('laporan/penjualan-barang/') ?>">PENJUALAN PER MENU</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" target="_blank" href="<?php echo base_url('laporan/profit/') ?>">PROFIT PENJUALAN</a></li>
                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url('laporan/rekap/') ?>">REKAPITULASI PENJUALAN</a></li>
                                </ul>
                            </li>
                            <?php endif?>
							
							
                            <li><a href="<?php echo base_url('login/logout/') ?>"><img height="30px" src="<?php echo base_url() ?>/assets/img/logout.png"> <strong style="color: red">  <?php echo $kdtoko ?> -> <?php echo $user ?> </strong></a></li>
						
                        </ul>
						
              
				<div style="margin-top:10px;margin-right:5px;" class="nav navbar-nav navbar-right">
					<ul class="header-nav header-nav-options">
							<?php 
								$qry=$this->db->query("SELECT COUNT(inv_no) AS jum_order FROM tbl_invoice WHERE stat='2' and kdcabang='$kdtoko' and date(inv_tanggal)=curdate()");
								$o=$qry->row_array();
							?>
						<li class="dropdown hidden-xs">
							<a href="javascript:void(0);" class="btn btn-icon-toggle btn-default" data-toggle="dropdown">
								<i class="fa fa-cart-arrow-down"></i><sup class="badge style-danger"><?php echo $o['jum_order'];?></sup>
							</a>
							<ul class="dropdown-menu animation-expand" style="overflow-y:scroll;max-height:500px;">
								<li class="dropdown-header">New Order</li>
								<?php 
									$q=$this->db->query("SELECT inv_no,DATE_FORMAT(inv_tanggal,'%d %M %Y') AS tgl,time(inv_tanggal) AS jam, inv_plg_nama,inv_status FROM tbl_invoice WHERE stat='2' and DATE(inv_tanggal)=CURDATE() and kdcabang='$kdtoko' order by date(inv_tanggal) desc");
									foreach ($q->result_array() as $x) {
										$tgl=$x['tgl'];
										$plg=$x['inv_plg_nama'];
										$sts=$x['inv_status'];
										$jam=$x['jam'];
										$noorder=$x['inv_no'];
									
								?>
								<li>
									<a class="alert alert-callout alert-warning" href="<?php echo base_url().'kasir/nomor-faktur1/'.$noorder?>">
										<strong><?php echo $plg.' Memesan...';?></strong><br/>
										<small><?php echo $tgl;?> Jam : <?php echo $jam;?> </small>
									</a>
								</li>
								<?php } ?>
								
								
							</ul><!--end .dropdown-menu -->
						</li><!--end .dropdown -->

					
					
						
					</ul><!--end .header-nav-options -->
			</div>
                	

                	
            </div>
					
          </div>
            </div>
        </div>
		
    </section>