<div class="topbar-menu">
  <div class="container-fluid">
    <div id="navigation">
      <!-- Navigation Menu-->
      <ul class="navigation-menu">

        <li class="has-submenu">
          <a href="<?=self::getUrl("Dashboard")?>"><i class="fe-airplay"></i>Dashboard</a>
        </li>
        
        <?php if($me->is("Admin")): ?>
        <li class="has-submenu">
          <a href="#">
            <i class="fas fa-database"></i>Stammdaten <div class="arrow-down"></div>
          </a>
          <ul class="submenu">
            <li class="has-sub-submenu">
              <a href="<?=self::getUrl("Address")?>"><i class="fas fa-user"></i> Personen & Firmen</a>
              <!--<ul class="sub-submenu">
                <li><a href="<?=self::getUrl("Address", "Index" , ["filter" => ["addresstype" => ["employee"]]])?>"><i class="fas fa-"></i> Mitarbeiter</a></li>
                <li><a href="<?=self::getUrl("Address", "Index" , ["filter" => ["addresstype" => ["supplier"]]])?>"><i class="fas fa-"></i> Lieferanten</a></li>
              </ul>-->
            </li>
            <li><a href="<?=self::getUrl("Product")?>"><i class="fab fa-product-hunt"></i> Produkte</a></li>
            <li><a href="<?=self::getUrl("Producttech")?>"><i class="fas fa-microchip"></i> Technologien</a></li>
            <li><a href="<?=self::getUrl("User")?>"><i class="fas fa-users"></i> Benutzer</a></li>
            <li><a href="<?=self::getUrl("Network")?>"><i class="fas fa-network-wired"></i> Netzgebiete</a></li>
          </ul>
        </li>
        <?php endif; ?>
        
        
        <?php if($me->is(["Admin","netowner","lineplanner","pipeplanner","pipeworker","lineworker"])): ?>
        <li class="has-submenu">
          <a href="#">
            <i class="fas fa-hard-hat"></i>Netzbau <div class="arrow-down"></div>
          </a>
          <ul class="submenu">
            <?php if($me->is(["Admin","netowner","pipeplanner"])): ?><li><a href="<?=self::getUrl("Building")?>"><i class="fas fa-city"></i> Objekte & Anschlüsse</a></li><?php endif; ?>
            <?php if($me->is(["Admin","netowner","pipeplanner","pipeworker","lineplanner","lineworker"])): ?><li><a href="<?=self::getUrl("Pipework")?>"><i class="fas fa-wrench"></i> Tiefbau</a></li><?php endif; ?>
            <?php if($me->is(["Admin","netowner","lineplanner","lineworker"])): ?><li><a href="<?=self::getUrl("Linework")?>"><i class="fas fa-ethernet"></i> Leitungsbau</a></li><?php endif; ?>
            <?php if($me->is(["Admin", "netowner", "netoperator", "lineworker"])): ?><li><a href="<?=self::getUrl("Patching")?>"><i class="fas fa-plug"></i> Patchungen</a></li><?php endif; ?>
          </ul>
        </li>
        <?php endif; ?>
        
        <?php if($me->is(["Admin"])): ?>
        <li class="has-submenu">
          <a href="#">
            <i class="fas fa-running"></i>Netzbetrieb <div class="arrow-down"></div>
          </a>
          <ul class="submenu">
            <li><a href="<?=self::getUrl("Cpeprovisioning")?>"><i class="fas fa-hdd"></i> CPE Provisioning</a></li>
            <li><a href="<?=self::getUrl("Cpeshipping")?>"><i class="fas fa-shipping-fast"></i> CPE Versand</a></li>
          </ul>
        </li>
        <?php endif; ?>
        
        <?php if($me->is(["Admin","salespartner"])): ?>
        <li class="has-submenu">
          <a href="#">
            <i class="fas fa-shopping-basket"></i>Verkauf <div class="arrow-down"></div>
          </a>
          <ul class="submenu">
            <li><a href="<?=self::getUrl("Order")?>"><i class="fas fa-file-contract"></i> Bestellungen</a></li>
          </ul>
        </li>
        <?php endif; ?>
        
      </ul>
      <!-- End navigation menu -->

      <div class="clearfix"></div>
    </div>
    <!-- end #navigation -->
  </div>
  <!-- end container -->
</div>
<!-- end navbar-custom -->