<?php
$login = new Login();
?>
<header class="main-header">
    <!-- Logo -->
    <a href="Home.php" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>P</b>BK</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>Paris</b>Bakery</span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
        <!-- Messages: style can be found in dropdown.less-->
        <li class="dropdown messages-menu">
          <a href="#" data-target="#modalGadgetTimeClock" data-toggle="modal"><i class="fa fa-clock-o"></i> </a>
        </li>
          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="<?php echo ROOT_HOST?>/public/app/img/logo.jpg" class="user-image" alt="User Image">
              <span class="hidden-xs"><?php echo $login->getCompleteName() ?></span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header">
                <img src="<?php echo ROOT_HOST?>/public/app/img/logo.jpg" class="img-circle" alt="User Image">
                <p><?php echo $login->getCompleteName(); ?></p>
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                  <a href="#" class="btn btn-default btn-flat"><?php echo $_translator->_getTranslation('Perfil'); ?></a>
                </div>
                <div class="pull-right">
                  <a href="<?php echo ROOT_HOST;?>/class/Login/Logout.php" class="btn btn-default btn-flat"><?php echo $_translator->_getTranslation('Salir'); ?></a>
                </div>
              </li>
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
          <li>
            <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
          </li>
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="<?php echo ROOT_HOST?>/public/app/img/logo.jpg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
            <p><?php echo $login->getCompleteName() ?></p>
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="header text-uppercase"><?php echo $_translator->_getTranslation('Navegacion'); ?></li>
        <li><a href="/Controller/Home.php"><i class="fa fa-dashboard"></i> <span><?php echo $_translator->_getTranslation('Inicio') ?></span></a></li>
         <?php
        if($login->getId() == '1' || $login->getId() == '95' || $login->getId() == '232' || $login->getId() == '351' || $login->getId() == '381' || $login->getId() == '399'){?>
            <li><a href="/Controller/TimeClock.php"><i class="fa fa-dashboard"></i> <span><?php echo $_translator->_getTranslation('Reloj checador') ?></span></a></li>
        <?php        
        }
        ?>                
        <li class="treeview">
          <a href="#">
            <i class="fa fa-clock-o"></i> <span><?php echo $_translator->_getTranslation('Programacion de horarios') ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/Controller/ScheduleEmployee.php"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Agregar nueva') ?></span></a></li>  
            <li><a href="/Controller/ScheduleEmployee.php?action=list"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Lista de programacion') ?></span></a></li>  
          </ul>
        </li>  
        
        <li><a href="/Controller/SalesRecord.php"><i class="fa fa-line-chart"></i> <span><?php echo $_translator->_getTranslation('Registro de ventas') ?></span></a></li>        
        <li><a href="/Controller/Baking.php"><i class="fa fa-certificate"></i> <span><?php echo $_translator->_getTranslation('Baking') ?></span></a></li>        

        <li class="treeview">
          <a href="#">
            <i class="fa fa-birthday-cake"></i> <span><?php echo $_translator->_getTranslation('Pedidos especiales') ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/Controller/SpecialOrder.php"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Agregar nuevo') ?></span></a></li>  
            <li><a href="/Controller/SpecialOrder.php?action=list"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Lista de pedidos') ?></span></a></li>  
          </ul>
        </li>  
        <li class="treeview">
          <a href="#">
            <i class="fa fa-bookmark"></i> <span><?php echo $_translator->_getTranslation('Pedidos de sucursal') ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/Controller/StoreRequest.php"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Agregar nueva') ?></span></a></li>  
            <li><a href="/Controller/StoreRequest.php?action=list"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Lista de pedidos') ?></span></a></li>  
          </ul>
        </li>  
        <li class="treeview">
          <a href="#">
            <i class="fa fa-truck"></i> <span><?php echo $_translator->_getTranslation('Envios de pedidos') ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/Controller/ShipmentStoreRequest.php"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Agregar nuevo') ?></span></a></li>  
            <li><a href="/Controller/ShipmentStoreRequest.php?action=list"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Lista de envios') ?></span></a></li>  
          </ul>
        </li>  
        <li class="treeview">
          <a href="#">
            <i class="fa fa-download"></i> <span><?php echo $_translator->_getTranslation('Recibos de pedidos') ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/Controller/ReceivingStoreRequest.php"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Agregar nuevo') ?></span></a></li>  
            <li><a href="/Controller/ReceivingStoreRequest.php?action=list"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Lista de envios') ?></span></a></li>  
          </ul>
        </li>  
        <li class="treeview">
          <a href="#">
            <i class="fa fa-cube"></i> <span><?php echo $_translator->_getTranslation('Produccion') ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">            
            <li><a href="/Controller/SpecialOrder.php?action=list-production"><i class="fa fa-fw fa-circle-o"></i> <?php echo $_translator->_getTranslation('OE - Plan de decorado')?></a></li>                         
            <li><a href='/Controller/Baked.php?action=list'><i class="fa fa-fw fa-circle-o"></i> <?php echo $_translator->_getTranslation('OE - Plan de horneado')?></a></li>                       
            <li><a href='/Controller/SpecialOrder.php?action=list-production-roscas'><i class="fa fa-fw fa-circle-o"></i> <?php echo $_translator->_getTranslation('OE - Plan de Roscas')?></a></li>                       
          </ul>
        </li> 
        <li class="treeview">
          <a href="#">
            <i class="fa fa-file-text-o"></i> <span><?php echo $_translator->_getTranslation('Facturas') ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/Controller/Invoice.php"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Agregar factura') ?></span></a></li>
            <li><a href="/Controller/Invoice.php?action=list"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Lista de facturas') ?></span></a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-shopping-basket"></i> <span><?php echo $_translator->_getTranslation('Compras') ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/Controller/Purchase.php"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Agregar nueva') ?></span></a></li>  
            <li><a href="/Controller/Purchase.php?action=list"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Lista de compras') ?></span></a></li>  
          </ul>
        </li>   
        <li class="treeview">
          <a href="#">
            <i class="fa fa-dollar"></i> <span><?php echo $_translator->_getTranslation('Pagos') ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/Controller/Payment.php"><i class="fa fa-circle-o text-primary"></i><?php echo $_translator->_getTranslation('Pago a proveedor') ?></a></li>
            <li><a href="/Controller/Payment.php?action=list"><i class="fa fa-circle-o text-primary"></i><?php echo $_translator->_getTranslation('Lista de pagos a proveedor') ?></a></li>
            <li><a href="/Controller/CustomerPayment.php"><i class="fa fa-circle-o text-primary"></i><?php echo $_translator->_getTranslation('Pago de sucursal') ?></a></li>
            <li><a href="/Controller/CustomerPayment.php?action=list"><i class="fa fa-circle-o text-primary"></i><?php echo $_translator->_getTranslation('Lista de pagos de sucursal') ?></a></li>
          </ul>
        </li>   
        <li class="treeview">
          <a href="#">
            <i class="fa fa-building-o"></i> <span><?php echo $_translator->_getTranslation('Depositos') ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/Controller/Deposit.php"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Agregar nuevo') ?></span></a></li>  
            <li><a href="/Controller/Deposit.php?action=list"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Lista de depositos') ?></span></a></li>  
          </ul>
        </li>   
        <li class="treeview">
          <a href="#">
            <i class="fa fa-cubes"></i> <span><?php echo $_translator->_getTranslation('Almacen') ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">           
            <li><a href="/Controller/Receiving.php"><i class="fa fa-circle-o text-primary"></i><?php echo $_translator->_getTranslation('Recibos') ?></a></li>
            <li><a href="/Controller/Receiving.php?action=list"><i class="fa fa-circle-o text-primary"></i><?php echo $_translator->_getTranslation('Lista de recibos') ?></a></li>
            <li><a href="/Controller/Output.php"><i class="fa fa-circle-o text-primary"></i><?php echo $_translator->_getTranslation('Salidas') ?></a></li>
            <li><a href="/Controller/Output.php?action=list"><i class="fa fa-circle-o text-primary"></i><?php echo $_translator->_getTranslation('Lista de salidas') ?></a></li>
            <li><a href="/Controller/Transfer.php"><i class="fa fa-circle-o text-primary"></i><?php echo $_translator->_getTranslation('Traspasos') ?></a></li>
            <li><a href="/Controller/Transfer.php?action=list"><i class="fa fa-circle-o text-primary"></i><?php echo $_translator->_getTranslation('Lista de traspasos') ?></a></li>
            <li><a href="/Controller/Return.php"><i class="fa fa-circle-o text-primary"></i><?php echo $_translator->_getTranslation('Retornos') ?></a></li>
            <li><a href="/Controller/Return.php?action=list"><i class="fa fa-circle-o text-primary"></i><?php echo $_translator->_getTranslation('Lista de retornos') ?></a></li>
          </ul>
        </li> 
        <li><a href="/Controller/PhysicalInventory.php?action=list"><i class="fa fa-check-square-o"></i><?php echo $_translator->_getTranslation('Inventario fisico') ?></a></li> 
        <li class="treeview">
          <a href="#">
            <i class="fa fa-recycle"></i> <span><?php echo $_translator->_getTranslation('Merma') ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/Controller/Waste.php"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Agregar nueva') ?></span></a></li>  
            <li><a href="/Controller/Waste.php?action=list"><i class="fa fa-circle-o text-primary"></i> <span><?php echo $_translator->_getTranslation('Lista de mermas') ?></span></a></li>  
          </ul>
        </li>  
        <li><a href="/Controller/Reports.php"><i class="fa fa-bar-chart"></i> <span><?php echo $_translator->_getTranslation('Reportes') ?></span></a></li>
        <li class="treeview">
            <a href="#">
                <i class="fa fa-list"></i> <span><?php echo $_translator->_getTranslation('Catalogos') ?></span>
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
            </a>
            <ul class="treeview-menu">
                <li><a href="/Controller/Vendor.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Proveedores'); ?></a></li>
                <li><a href="/Controller/Customer.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Clientes'); ?></a></li>
                <li><a href="/Controller/PaymentTerms.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Terminos de pago'); ?></a></li>
                <li><a href="/Controller/Product.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Productos'); ?></a></li>
                <li><a href="/Controller/Service.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Servicios'); ?></a></li>
                <li><a href="/Controller/Supplie.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Insumos'); ?></a></li>
                <li><a href="/Controller/Category.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Categorias'); ?></a></li>                
                <li><a href="/Controller/Brand.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Marcas'); ?></a></li>
                <li><a href="/Controller/Size.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Tamaños'); ?></a></li>
                <li><a href="/Controller/Shape.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Formas'); ?></a></li>
                <li><a href="/Controller/Presentation.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Presentaciones'); ?></a></li>                
                <li><a href="/Controller/UM.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Unidades de medida'); ?></a></li>
                <li><a href="/Controller/Flour.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Harinas'); ?></a></li>
                <li><a href="/Controller/Location.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Locaciones'); ?></a></li>           
                <li><a href="/Controller/Slice.php"><i class="fa fa-fw fa-circle-o"></i> <?php echo $_translator->_getTranslation('Partes del pastel')?></a></li>   
            </ul>
        </li>
        <li class="treeview">
            <a href="#">
                <i class="fa fa-gears"></i> <span><?php echo $_translator->_getTranslation('Configuracion') ?></span>
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
            </a>
            <ul class="treeview-menu">
                <li><a href="/Controller/Company.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Empresa'); ?></a></li>
                <li><a href="/Controller/Store.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Sucursales'); ?></a></li>
                <li><a href="/Controller/ExpensesConfig.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Gastos fijos de sucursal'); ?></a></li>
                <li><a href="/Controller/User.php"><i class="fa fa-circle-o text-primary"></i> <?php echo $_translator->_getTranslation('Usuarios'); ?></a></li>    
            </ul>
        </li>
        <li class="treeview">
            <a href="#">
                <i class="fa fa-laptop"></i> <span><?php echo $_translator->_getTranslation('POS') ?></span>
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
            </a>
            <ul class="treeview-menu">
                <li><a href="/Controller/PosProduct.php"><i class="fa fa-fw fa-circle-o"></i> <?php echo $_translator->_getTranslation('Productos')?></a></li>
                <li><a href="/Controller/PosCategory.php"><i class="fa fa-fw fa-circle-o"></i> <?php echo $_translator->_getTranslation('Categorias')?></a></li>                
                <li><a href="/Controller/PosBrand.php"><i class="fa fa-fw fa-circle-o"></i> <?php echo $_translator->_getTranslation('Marcas')?></a></li>
                <li><a href="/Controller/PosUnit.php"><i class="fa fa-fw fa-circle-o"></i> <?php echo $_translator->_getTranslation('Unidades de Medida')?></a></li>                                
                <li class="treeview">
                    <a href="#">
                      <i class="fa fa-star" style="color: gold"></i> <span><?php echo $_translator->_getTranslation('Rewards') ?></span>
                      <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                      </span>
                    </a>
                    <ul class="treeview-menu">
                      <li><a href="/Rewards/Controller/Rewards.php"><i class="fa fa-fw fa-circle-o"></i> <?php echo $_translator->_getTranslation('Rewards')?></a></li>    
                      <li><a href="/Rewards/Controller/CustomerRewards.php"><i class="fa fa-fw fa-circle-o"></i> <?php echo $_translator->_getTranslation('Rewards acumulados')?></a></li>    
                    <li><a href="/Rewards/Controller/RewardsReports.php"><i class="fa fa-fw fa-circle-o"></i> <?php echo $_translator->_getTranslation('Reportes')?></a></li>    
                    </ul>
                </li>   
            </ul>
        </li>
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>