<mat-nav-list>
  <ng-container *ngIf="personalRoutes.length > 0">
    <span mat-subheader>Personal</span>
    <a
      *ngFor="let route of personalRoutes"
      mat-list-item
      [routerLink]="'/settings/' + route.path"
      routerLinkActive="active"
    >
      <mat-icon fontSet="material-icons-outlined" mat-list-icon>
        {{ route.data?.page?.icon }}
      </mat-icon>
      <span mat-line>{{ route.data?.page?.title }}</span>
    </a>
  </ng-container>

  <mat-divider *ngIf="systemRoutes.length > 0 && personalRoutes.length > 0">
  </mat-divider>

  <ng-container *ngIf="systemRoutes.length > 0">
    <span mat-subheader>System</span>
    <a
      *ngFor="let route of systemRoutes"
      mat-list-item
      [routerLink]="'/settings/' + route.path"
      routerLinkActive="active"
    >
      <mat-icon fontSet="material-icons-outlined" mat-list-icon>
        {{ route.data?.page?.icon }}
      </mat-icon>
      <span mat-line>{{ route.data?.page?.title }}</span>
    </a>
  </ng-container>
</mat-nav-list>
