<ion-menu [content]="content">
  <ion-content class="cab_sidemenu_bg" [ngClass]="lang=='ar' ? 'ar' : ''">
    <div class="cab_sidemenu_wrapper">
      <select [(ngModel)]="lang" (change)="changeLang(lang)">
        <option value="en">EN</option>
      </select>
      <div menuClose class="cab_profile_banner" (click)="open_page('ProfilePage')" *ngIf="local">
        <div class="cab_profile_picture">
          <img [src]=local.image>
        </div>
        <h6>{{local.name}}</h6>
        <p>{{local.dial_code}}{{local.mobile}}</p>
      </div>
      <div class="cab_sidemenu_list">
        <ul>
          <li menuClose class="book" (click)="open_page('HomePage')">{{'sidemenu.Book Ride'|translate}}</li>
          <li menuClose class="trip" (click)="open_page('MytripsPage')">{{'sidemenu.My Trips'|translate}}</li>
          <li menuClose class="logout" (click)="open_page('LandingPage')">{{'sidemenu.Logout'|translate}}</li>
        </ul>
      </div>
    </div>
  </ion-content>

</ion-menu>

<!-- Disable swipe-to-go-back because it's poor UX to combine STGB with side menus -->
<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>
