<div id="users" class="page-layout carded fullwidth inner-scroll">
  <!-- TOP BACKGROUND -->
  <div class="top-bg accent"></div>
  <!-- / TOP BACKGROUND -->

  <!-- CENTER -->
  <div class="center">
    <!-- HEADER -->
    <div class="header accent" fxLayout="column" fxLayoutAlign="center center" fxLayout.gt-xs="row"
      fxLayoutAlign.gt-xs="space-between center">
      <!-- APP TITLE -->
      <div class="logo mb-24 mb-sm-0" fxLayout="row" fxLayoutAlign="start center">
        <mat-icon class="logo-icon s-32 mr-16" [@animate]="{ value: '*', params: { delay: '50ms', scale: '0.2' } }">
          shopping_basket
        </mat-icon>
        <span class="logo-text h1" [@animate]="{ value: '*', params: { delay: '100ms', x: '-25px' } }">Users</span>
      </div>
      <!-- / APP TITLE -->

      <!-- SEARCH -->
      <!-- <div class="search-wrapper  ml-sm-32">
        <div class="search" fxFlex fxLayout="row" fxLayoutAlign="start center">
          <mat-icon>search</mat-icon>
          <input #filter placeholder="Search for an order" />
        </div>
      </div> -->
      <!-- / SEARCH -->
    </div>
    <!-- / HEADER -->

    <!-- CONTENT CARD -->
    <div class="content-card">
      <mat-table class="users-table" #table matSort [@animateStagger]="{ value: '50' }" fusePerfectScrollbar>
        <!-- ID/Nickname Column -->
        <ng-container matColumnDef="id">
          <mat-header-cell *matHeaderCellDef mat-sort-header>아이디</mat-header-cell>
          <mat-cell *matCellDef="let order">
            <p class="text-truncate">{{ order.id }}</p>
          </mat-cell>
        </ng-container>

        <!-- Phone Column -->
        <ng-container matColumnDef="phone">
          <mat-header-cell *matHeaderCellDef mat-sort-header fxHide fxShow.gt-sm>연락처</mat-header-cell>
          <mat-cell *matCellDef="let order" fxHide fxShow.gt-sm>
            <p class="text-truncate">{{ order.reference }}</p>
          </mat-cell>
        </ng-container>

        <!-- Current Location Column -->
        <ng-container matColumnDef="currentLocation">
          <mat-header-cell *matHeaderCellDef mat-sort-header>현재위치</mat-header-cell>
          <mat-cell *matCellDef="let order">
            <p class="text-truncate">
              {{ order.customer.firstName }}
              {{ order.customer.lastName }}
            </p>
          </mat-cell>
        </ng-container>

        <!-- Regist IP Column -->
        <ng-container matColumnDef="registIp">
          <mat-header-cell *matHeaderCellDef mat-sort-header fxHide fxShow.gt-md>등록아이피</mat-header-cell>
          <mat-cell *matCellDef="let order" fxHide fxShow.gt-md>
            <p class="total-price text-truncate">
              {{ order.total | currency: 'USD':'symbol' }}
            </p>
          </mat-cell>
        </ng-container>

        <!-- RegistTime Column -->
        <ng-container matColumnDef="registTime">
          <mat-header-cell *matHeaderCellDef mat-sort-header fxHide fxShow.gt-sm>등록시간</mat-header-cell>
          <mat-cell *matCellDef="let order" fxHide fxShow.gt-sm>
            <p class="text-truncate">
              {{ order.payment.method }}
            </p>
          </mat-cell>
        </ng-container>

        <!-- Holding Money Column -->
        <ng-container matColumnDef="holdMoney">
          <mat-header-cell *matHeaderCellDef mat-sort-header>보유머니</mat-header-cell>
          <mat-cell *matCellDef="let order">
            <p class="status text-truncate h6 p-4" [ngClass]="order.status[0].color">
              {{ order.status[0].name }}
            </p>
          </mat-cell>
        </ng-container>

        <!-- Point Column -->
        <ng-container matColumnDef="point">
          <mat-header-cell *matHeaderCellDef mat-sort-header>포인트</mat-header-cell>
          <mat-cell *matCellDef="let order">
            <p class="status text-truncate h6 p-4" [ngClass]="order.status[0].color">
              {{ order.status[0].name }}
            </p>
          </mat-cell>
        </ng-container>

        <!-- Fire Column -->
        <ng-container matColumnDef="fire">
          <mat-header-cell *matHeaderCellDef mat-sort-header>강퇴</mat-header-cell>
          <mat-cell *matCellDef="let order">
            <p class="status text-truncate h6 p-4" [ngClass]="order.status[0].color">
              {{ order.status[0].name }}
            </p>
          </mat-cell>
        </ng-container>

        <mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></mat-header-row>

        <mat-row *matRowDef="let order; columns: displayedColumns" class="order" matRipple
          [routerLink]="'/apps/e-commerce/users/' + order.id">
        </mat-row>
      </mat-table>

      <mat-paginator #paginator [pageIndex]="0" [pageSize]="10" [pageSizeOptions]="[5, 10, 25, 100]">
      </mat-paginator>
    </div>
    <!-- / CONTENT CARD -->
    <div class="mb-24" fxLayout="column" fxLayoutAlign="center" fxLayout.gt-md="row">
      <form class="mat-card mat-elevation-z4 p-24 mr-24" fxLayout="column" fxLayoutAlign="start" fxFlex="1 0 auto"
        name="form" [formGroup]="form">
        <div fxLayout="row" fxLayoutAlign="start center" fxFlex="1 0 auto">
          <mat-form-field appearance="outline" fxFlex="25" class="pr-4">
            <mat-label>First name</mat-label>
            <input matInput formControlName="firstName">
            <mat-icon matSuffix class="secondary-text">account_circle</mat-icon>
          </mat-form-field>
        </div>
      </form>
    </div>
  </div>
  <!-- / CENTER -->
</div>