<ion-app [dir]="direction">
  <ion-split-pane>
      <ion-menu side='start' *ngIf="direction ==='ltr'">
        <ion-content class="sidebar-menu">
          <div class="header-div">
            <div>
              <ion-button class="closeIcon"  (click)="closeMenu()">
                <img  style= "height: 18px !important;"  src="../assets/imgs/close_menu_icon.png "></ion-button>
            </div>
            <div style="border-bottom: rgb(190, 186, 186) solid 1px;" > 
              <img class="mohemmLogo" src="../assets/imgs/menu_mohemm_logo.png" >
            </div>
            <hr> 
          </div>

          <div class="centerDiv homeBox">
            <div class="profileDiv">
              <img class="profileImg"  [src]="user_image">
              <p class="TxtPlace">{{User_name_Emp}}</p>
              <p class="TxtPlaces"> {{User_Job_name}}</p>
            </div>
          </div>
  
          <div   style="border-bottom: rgb(190, 187, 187) solid 1px;" >
            <button class="logout" ion-button  (click)="logout();" > {{ts.trPK('home','logout')}}</button>
          </div>
          <br> 

          <ion-list class="list-en" >
            <ion-item (click)="profile()">
              <ion-thumbnail slot="start" class="menu-thumb">
                <img style= "height: 24px !important;"  src="../assets/imgs/profile_icon.png" item-left>
              </ion-thumbnail>
              <ion-label class="profile">
                {{ts.trPK('userProfile','title')}}
              </ion-label>
            </ion-item>
  
            <ion-item [hidden]="TeamFlag!='true'" (click)="openMyTeamPage()">
              <ion-thumbnail slot="start" class="menu-thumb">
                <img style= "height: 14px !important;"  src="../assets/imgs/my_team_icon.png" item-left>
              </ion-thumbnail>
              <ion-label class="profile">
                {{ts.trPK('myTeam','myTeam-header')}}
              </ion-label>
            </ion-item>


            <!-- <ion-item (click)="openChangePassword()"> -->
              <ion-item (click)="openChangePassword()"> 
              <ion-thumbnail slot="start" class="menu-thumb">
                <img style= "height: 25px !important;" src="../assets/imgs/lock_icon.png" item-left>
              </ion-thumbnail>
              <ion-label class="changepassword" >
                {{ts.trPK('login','changepassword')}}
                <ion-badge class="start-badge main-badge" slot="end" color="danger">{{notBadge}}</ion-badge>
              </ion-label>
            </ion-item>
  
          </ion-list>

          <div class="" style="text-align:center">
             <img src="{{companyUrl}}" class="CompanyImg logoImg">
            <!-- <p class="companyTxt">{{companyDesc}}</p> -->
          </div>
          <div  class="menuFooter" >
            <div> <img src="../assets/imgs/CS.png"  class="CompanyImg"  ></div>
            <p class="companyTxt">{{companyDesc}}</p>
          </div>
        </ion-content>
      </ion-menu>

      <ion-menu side='end' *ngIf="direction ==='rtl'">
        <ion-content class="sidebar-menu">
          <div class="header-div">
            <div>
              <ion-button class="closeIcon"  (click)="closeMenu()">
                <img  style= "height: 18px !important;"  src="../assets/imgs/close_menu_icon.png "></ion-button> 
            </div>
            <div style="border-bottom: rgb(190, 186, 186) solid 1px;" > 
              <img class="mohemmLogo-ar" src="../assets/imgs/menu_mohemm_logo.png" >
            </div>
            <hr> 
          </div>
          <div class="centerDiv homeBox">
            <div class="profileDiv-ar">
              <img class="profileImg" [src]="user_image">
              <p class="TxtPlace">{{User_name_Emp}}</p>
              <p class="TxtPlaces"> {{User_Job_name}}</p>
            </div>
          </div>

          <div   style="border-bottom: rgb(190, 187, 187) solid 1px;" >
            <button class="logout-ar" ion-button  (click)="logout();" > {{ts.trPK('home','logout')}}</button>
          </div>
          <br>

          <ion-list class="list-ar" >
            <ion-item (click)="profile()">
              <ion-thumbnail slot="start" class="menu-thumb">
                <img style= "height: 24px !important;"  src="../assets/imgs/profile_icon.png" item-left>
              </ion-thumbnail>
              <ion-label class="profile">
                {{ts.trPK('userProfile','title')}}
              </ion-label>
            </ion-item>
            <ion-item [hidden]="TeamFlag!='true'" (click)="openMyTeamPage()">
              <ion-thumbnail slot="start" class="menu-thumb">
                <img style= "height: 14px !important;"  src="../assets/imgs/my_team_icon.png" item-left>
              </ion-thumbnail>
              <ion-label class="profile">
                {{ts.trPK('myTeam','myTeam-header')}}
              </ion-label>
            </ion-item>
            <ion-item (click)="openChangePassword()"> 
            <ion-thumbnail slot="start" class="menu-thumb">
              <img style= "height: 25px !important;" src="../assets/imgs/lock_icon.png" item-left>
            </ion-thumbnail>
            <ion-label class="changepassword" >
              {{ts.trPK('login','changepassword')}}

              <ion-badge  [ngClass]=" direction === 'rtl' ?  'end-badge' : 'start-badge'" slot="end" color="danger" class="main-badge">{{notBadge}}</ion-badge>
            </ion-label>
            <!-- <button class="menu-item" ion-item  menuClose ion-item  (click)="goToWorkListPage()" >
               
               
            
            </button> -->
          </ion-item>

         
          <!-- <ion-item (click)="profile()">
            <ion-thumbnail slot="start" class="menu-thumb">
              <img width="30" src="../assets/imgs/profile_icon.png" item-left>
            </ion-thumbnail>
            <ion-label>
              {{ts.trPK('userProfile','title')}}
            </ion-label>
          </ion-item> -->
          <!-- <ion-item (click)="logout();">


            <ion-thumbnail slot="start" class="menu-thumb">
              <img width="30" src="../assets/imgs/signout.png" item-left>
            </ion-thumbnail>
            <ion-label>
              {{ts.trPK('home','logout')}}
            </ion-label>

          </ion-item> -->
        </ion-list>

        <div class="" style="text-align:center">
           <img src="{{companyUrl}}" class="CompanyImg logoImg">
          <!-- <p class="companyTxt">{{companyDesc}}</p> -->
        </div>
        <div class="menuFooter">
          <div> <img src="../assets/imgs/CS.png" class="CompanyImg" ></div>
          <p class="companyTxt">{{companyDesc}}</p>
        </div>
      </ion-content>
    </ion-menu>
    <ion-router-outlet main></ion-router-outlet>
  </ion-split-pane>

</ion-app>