
<app-all-menus></app-all-menus>
<div class="topDiv">
  <div class="row" style="text-align: center; background: #426E86; padding-top: 10px; padding-bottom: 10px; color: white;box-shadow:3px 1px 5px 0px rgb(178, 176, 174)">
    <div class="col-sm-12 col-md-12 col-lg-12">
      <h4>{{'USER MASTER' | translate}}</h4>
  
    </div>
  </div>  
 
  <div class="row rowStyle">
    <div class="col-sm-3 col-md-3 col-lg-3" style="padding-left: 20px; padding-right: 5px; padding-top: 5px; padding-bottom: 5px;">
      <!-- <button style="background-color: #cc0000;color:#fdfdfd;font-size: 12px;" md-raised-button (click)="exportPdf()">{{'PDF' | translate}}</button> -->
      <div class="row" style="margin:0px;height: 84vh;background: white;box-shadow: 3px 1px 5px 0px #b2b0ae;">
        <div class="col-sm-12 col-md-12 col-lg-12" style="padding:0px">
            <app-report-filter (onReportFIlter)= "getReport($event)" [componentIdentifier]="identifier"></app-report-filter>
        </div>
      </div>
    </div>
    <div class="col-sm-9 col-md-9 col-lg-9" style="padding-left: 5px; padding-right: 20px; padding-top: 5px;">
      <div class="row" style="margin:0px;height: 84vh;padding-top:10px;padding-bottom:5px;background: white;box-shadow: 3px 1px 5px 0px #b2b0ae;">
        <div class="col-sm-12 col-md-12 col-lg-12">
          <div *ngIf="Load" class="loading">Loading&#8230;</div>
          <div style="width: 100%;height:82vh;overflow: auto;">
            <table  id="userTable" class="table table-striped table-hover" style="font-size: 12px;">         
            <thead style="background-color:#e0e0e0;color: #444444;">
              <tr>
                <th style="text-align:left;">{{'Name' | translate}}</th>
                <th style="text-align:left;">{{'Dealer' | translate}}</th>
                <th style="text-align:left;">{{'Is Dealer' | translate}}</th>
                <th style="text-align:left;">{{'Created on' | translate}}</th>
                <th style="text-align:left;">{{'Email' | translate}}</th>
                <th style="text-align:left;">{{'Phone' | translate}}</th>
                <th style="text-align:left;">{{'Token' | translate}}</th>
                <th style="text-align:left;">{{'Edit' | translate}}</th>
                <th  style="text-align:left;">{{'Delete' | translate}}</th>
                <th  style="text-align:left;">{{'Restore' | translate}}</th>         
                <th  style="text-align:left;">{{'Delete Permanently' | translate}}</th>
              </tr>
            </thead> 
          </table>      
         </div>  
        </div>
      </div> 
    </div>
  </div>
</div>



<!-- <app-all-menus></app-all-menus>
<div style="padding-top: 6%;">
  <p class="headStyle">{{'USER MASTER' | translate}}</p>
  <div class="loading" *ngIf="Load">Loading&#8230;</div>
  <div class="InputStyle">
    <div class="row">
      <div class="col-md-5" style="text-align: center;">
        <md-input-container>
          <input mdInput placeholder="{{'Search by phone' | translate}}" [mdAutocomplete]="tdAuto1" name="state" 
          #state="ngModel" [(ngModel)]="userName1"
         (ngModelChange)="filterDealerStates1(userName1)">
         <md-autocomplete #tdAuto1="mdAutocomplete">
            <md-option *ngFor="let option1 of userSelect1" [value]="option1.user_type">
              <span>{{ option1.user_type }}</span>
            </md-option>
          </md-autocomplete>   
        </md-input-container>
          <md-input-container style="margin-left: 17px;">
          <input mdInput placeholder="{{'Search by name' | translate}}" [mdAutocomplete]="tdAuto" name="state" 
          #state="ngModel" [(ngModel)]="userName"
         (ngModelChange)="filterDealerStates(userName)">
         <md-autocomplete #tdAuto="mdAutocomplete">
            <md-option *ngFor="let option of userSelect" [value]="option.user_type">
              <span>{{ option.user_type }}</span>
            </md-option>
          </md-autocomplete>   
        </md-input-container>
    
      </div>
      <div class="col-md-2">
        <span>{{'From Date' | translate}}</span>
        <owl-date-time [(ngModel)]="Fromdate" [hourFormat]="'12'" [dateFormat]="'DD/MM/YYYY hh:mm:a'" [autoClose]="true"></owl-date-time>
      </div>
      <div class="col-md-2">
        <span>{{'To Date' | translate}}</span>
        <owl-date-time [(ngModel)]="todate" [hourFormat]="'12'"  [dateFormat]="'DD/MM/YYYY hh:mm:a'" [autoClose]="true"></owl-date-time>
      </div>
      <div class="col-md-3" style="padding-top:17px;text-align: center;">
        <md-slide-toggle md-tooltip="Deleted Users" [(ngModel)]="deleteduser" (change)="onChange($event)"></md-slide-toggle> 
          <button  md-raised-button style="background-color:#3e3737;color: white;border:#fdfdfd;width: 120px;margin-left: 40px;" class="btn btn-primary w3-button/" (click)="callfunction()">{{'FIND' | translate}}</button>       
        </div>
    </div>
    <flash-messages style="float: center;margin:0px 1px;height:-6px;"></flash-messages>
  </div>
  <table id="userTable" class="display" style="width:100%;font-size:15px;text-align: center">
    <thead style="background-color:#A2C523;color: white;">
        <tr>
            <th style="text-align:center;">{{'Name' | translate}}</th>
            <th style="text-align:center;">{{'Dealer' | translate}}</th>
            <th style="text-align:center;">{{'Is Dealer' | translate}}</th>
            <th style="text-align:center;">{{'Created on' | translate}}</th>
            <th style="text-align:center;">{{'Email' | translate}}</th>
            <th style="text-align:center;">{{'Phone' | translate}}</th>
            <th style="text-align:center;">{{'Token' | translate}}</th>
            <th style="text-align:center;">{{'Edit' | translate}}</th>
            <th  style="text-align:center;">{{'Delete' | translate}}</th>
            <th  style="text-align:center;">{{'Restore' | translate}}</th>         
            <th  style="text-align:center;">{{'Delete Permanently' | translate}}</th>    
        </tr>
    </thead>
      
</table>
</div>

 -->
