<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")?>">Personen & Firmen</a>
              <ul class="sub-submenu">
                <li><a href="<?=self::getUrl("Address", "Index" , ["filter" => ["addresstype" => ["employee"]]])?>">Mitarbeiter</a></li>
                <li><a href="<?=self::getUrl("Address", "Index" , ["filter" => ["addresstype" => ["supplier"]]])?>">Lieferanten</a></li>
              </ul>
            </li>
            <li><a href="<?=self::getUrl("Product")?>">Produkte</a></li>
            <li><a href="<?=self::getUrl("Producttech")?>">Technologien</a></li>
            <li><a href="<?=self::getUrl("User")?>">Benutzer</a></li>
            <li><a href="<?=self::getUrl("Network")?>">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")?>">Objekte & Anschlüsse</a></li><?php endif; ?>
            <?php if($me->is(["Admin","netowner","pipeplanner","pipeworker","lineplanner","lineworker"])): ?><li><a href="<?=self::getUrl("Pipework")?>">Tiefbau</a></li><?php endif; ?>
            <?php if($me->is(["Admin","netowner","lineplanner","lineworker"])): ?><li><a href="<?=self::getUrl("Linework")?>">Leitungsbau</a></li><?php endif; ?>
            <?php if($me->is(["Admin", "netowner", "netoperator", "lineworker"])): ?><li><a href="<?=self::getUrl("Patching")?>">Patchungen</a></li><?php endif; ?>
          </ul>
        </li>
        <?php endif; ?>
        
        <?php if($me->is(["Admin"])): ?>
        <li class="has-submenu">
          <a href="#">
            <i class="fas fa-hard-hat"></i>Netzbetrieb <div class="arrow-down"></div>
          </a>
          <ul class="submenu">
            <li><a href="<?=self::getUrl("Cpeprovisioning")?>">CPE Provisioning</a></li>
            <li><a href="<?=self::getUrl("Cpeshipping")?>">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")?>">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 -->