<!-- Customer module menus -->
<div class="menu" *ngIf="module === 0">
  <div class="menu-grid">
    <div class="menu-item-grid align-center active" (click)="routeToMenu('/product/search', 'productsearch')">
      <div>
        <lib-icon
          class="menu-icon"
          name="{{
            router.url === '/product/search' || router.url.startsWith('/product/results') || router.url.startsWith('/product/details')
              ? 'Icon_Artikelsuche'
              : 'Icon_Artikelsuche_inactive'
          }}"
          width="34px"
          height="24px"
        ></lib-icon>
      </div>
      <span
        *ngIf="
          router.url === '/product/search' || router.url.startsWith('/product/results') || router.url.startsWith('/product/details');
          else articleSearchLabelElse
        "
        class="menu-item selected"
        >Artikelsuche</span
      >
      <ng-template #articleSearchLabelElse>
        <span class="menu-item">Artikelsuche</span>
      </ng-template>
    </div>
    <div class="menu-item-grid align-center active" (click)="routeToMenu('/customer/search', 'customersearch')">
      <div>
        <lib-icon
          class="menu-icon"
          name="{{
            router.url === '/customer/search' ||
            router.url === '/customer/results' ||
            router.url.startsWith('/customer/edit') ||
            router.url.startsWith('/customer')
              ? 'Icon_Kundensuche'
              : 'Icon_Kundensuche_inactive'
          }}"
          width="34px"
          height="24px"
        ></lib-icon>
      </div>
      <span
        *ngIf="
          router.url === '/customer/search' ||
            router.url === '/customer/results' ||
            router.url.startsWith('/customer/edit') ||
            router.url.startsWith('/customer');
          else customerSearchLabelElse
        "
        class="menu-item selected"
        >Kundensuche</span
      >
      <ng-template #customerSearchLabelElse>
        <span class="menu-item">Kundensuche</span>
      </ng-template>
    </div>
    <div class="menu-item-grid align-center active" (click)="routeToMenu('/shelf/search', 'shelfsearch')">
      <!-- <div class="menu-item-grid align-center"> -->
      <div>
        <lib-icon
          class="menu-icon"
          name="{{
            router.url === '/shelf/search' || router.url.startsWith('/shelf/results') || router.url.startsWith('/shelf/details')
              ? 'Icon_Abholfach'
              : 'Icon_Abholfach_inactive'
          }}"
          width="34px"
          height="24px"
        ></lib-icon>
      </div>
      <span
        *ngIf="
          router.url === '/shelf/search' || router.url.startsWith('/shelf/results') || router.url.startsWith('/shelf/details');
          else shelfSearchLabelElse
        "
        class="menu-item selected"
        >Warenausgabe</span
      >
      <ng-template #shelfSearchLabelElse>
        <span class="menu-item">Warenausgabe</span>
      </ng-template>
    </div>
  </div>
</div>
<!-- Branch module menus -->
<div class="branch-menu" *ngIf="module === 1">
  <div class="menu-grid">
    <div class="menu-item-grid align-center">
      <!-- <div class="menu-item-grid align-center" (click)="routeToMenu('/branch/main', 'branchmain')"> -->
      <div>
        <lib-icon
          class="menu-icon"
          name="{{
            router.url === '/branch/main' ||
            router.url === '/goodsin/search' ||
            router.url === '/goodsin/results' ||
            router.url.startsWith('/goodsin/details') ||
            router.url.startsWith('/shelf/edit')
              ? 'Icon_Abholfach_B'
              : 'Icon_Abholfach_B_disabled'
          }}"
          width="34px"
          height="24px"
        ></lib-icon>
      </div>
      <span
        *ngIf="
          router.url === '/branch/main' ||
            router.url === '/goodsin/search' ||
            router.url === '/goodsin/results' ||
            router.url.startsWith('/goodsin/details') ||
            router.url.startsWith('/shelf/edit');
          else abholfachLabelElse
        "
        class="branch-menu-item branch-selected"
        >Abholfach</span
      >
      <ng-template #abholfachLabelElse>
        <span class="branch-menu-item branch-disabled">Abholfach</span>
      </ng-template>
    </div>
    <div class="menu-item-grid align-center active">
      <div>
        <lib-icon
          class="menu-icon"
          name="{{
            router.url === '/task-calendar/calendar' || router.url === '/task-calendar/tasks'
              ? 'Icon_Tatigkeitskalender'
              : 'Icon_Tatigkeitskalender_disabled'
          }}"
          width="34px"
          height="24px"
        ></lib-icon>
      </div>
      <span
        *ngIf="router.url === '/task-calendar/calendar' || router.url === '/task-calendar/tasks'; else taskCalendarLabelElse"
        class="branch-menu-item branch-selected"
        >Tätigkeitskalender</span
      >
      <ng-template #taskCalendarLabelElse>
        <span class="branch-menu-item branch-disabled">Tätigkeitskalender</span>
      </ng-template>
    </div>
    <div class="menu-item-grid align-center active" (click)="routeToMenu('/remission/create', 'remission')">
      <div>
        <lib-icon
          class="menu-icon"
          name="{{
            router.url === '/remission/create' || router.url === '/remission/started' ? 'Icon_Remission' : 'Icon_Remission_inactive'
          }}"
          width="34px"
          height="24px"
        ></lib-icon>
      </div>
      <span
        *ngIf="router.url === '/remission/create' || router.url === '/remission/started'; else remissionLabelElse"
        class="branch-menu-item branch-selected"
        >Remission</span
      >
      <ng-template #remissionLabelElse>
        <span class="branch-menu-item">Remission</span>
      </ng-template>
    </div>
  </div>
</div>
