<mat-nav-list>
  <a *ngFor="let page of listPages">
    <a mat-list-item [routerLink]="'/'+page.path" (click)="onSidenavClose()" *ngIf="!page.hidden || page.path === pageLogin.path"
      [class]="(globals.currentPage===page.path?'selected':'')">
      <mat-icon>{{page.icon}}</mat-icon>
      <span class="nav-caption" *ngIf="page.path !== pageLogin.path || !authService.isLoggedIn()">{{page.caption | translate}}</span>
      <span class="nav-caption" *ngIf="page.path === pageLogin.path && authService.isLoggedIn()">{{'core.caption.logout'| translate}} ({{authService.userName}})</span>
    </a>
  </a>

  <mat-list-item (click)="onSidenavClose()">
    <mat-icon>menu_open</mat-icon>
  </mat-list-item>
</mat-nav-list>
