<!-- SIDE MENU -->
<div id="dashboard-options-menu" class="side-menu dashboard left closed" ng-controller="initCtrl">
  <!-- SVG PLUS -->
  <svg class="svg-plus">
    <use xlink:href="#svg-plus"></use>
  </svg>
  <!-- /SVG PLUS -->
  <!-- SIDE MENU HEADER -->
  <div class="side-menu-header">
    <!-- USER QUICKVIEW -->
    <div class="user-quickview">
      <!-- USER AVATAR -->
      <a href="author-profile.html">
        <div class="outer-ring">
          <div class="inner-ring"></div>
          <figure class="user-avatar">
            <img src="asset/images/avatars/avatar_01.jpg" alt="avatar">
          </figure>
        </div>
      </a>
      <!-- /USER AVATAR -->
      <!-- USER INFORMATION -->
      <p class="user-money">{{user.username}}</p>
      <p class="user-name">Administrateur</p>
      <!-- /USER INFORMATION -->
    </div>
    <!-- /USER QUICKVIEW -->
  </div>
  <!-- /SIDE MENU HEADER -->
  <!-- DROPDOWN -->
  <ul class="dropdown dark hover-effect interactive">
    <!-- DROPDOWN ITEM -->
    <li class="dropdown-item">
      <a href="#!/dashboard">
      <span class="sl-icon icon-speedometer"></span>
      Tableau de bord
      </a>
    </li>
    <!-- /DROPDOWN ITEM -->
    <!-- DROPDOWN ITEM -->
    <li class="dropdown-item">
      <a href="#!/clients">
      <span class="sl-icon icon-people"></span>
      Clients
      </a>
    </li>
    <!-- /DROPDOWN ITEM -->
    <!-- DROPDOWN ITEM -->
    <li class="dropdown-item">
      <a href="#!/providers">
      <span class="sl-icon icon-organization"></span>
      Fournisseurs
      </a>
    </li>
    <!-- /DROPDOWN ITEM -->
    <!-- DROPDOWN ITEM -->
    <li class="dropdown-item">
      <a href="#!/products">
      <span class="sl-icon icon-basket"></span>
      Produits
      </a>
    </li>
    <!-- /DROPDOWN ITEM -->
    <!-- DROPDOWN ITEM -->
    <li class="dropdown-item active">
      <a href="#!/orders">
      <span class="sl-icon icon-credit-card"></span>
      Commandes
      </a>
    </li>
    <!-- /DROPDOWN ITEM -->
  </ul>
  <!-- /DROPDOWN -->
  <a href="#!/logout" class="button medium primary">Déconnexion</a>
</div>
<!-- /SIDE MENU -->
<!-- DASHBOARD BODY -->
<div class="dashboard-body">
  <!-- DASHBOARD HEADER -->
  <div class="dashboard-header retracted">
    <!-- DASHBOARD HEADER ITEM -->
    <div class="dashboard-header-item title">
      <!-- DB SIDE MENU HANDLER -->
      <div class="db-side-menu-handler">
        <img src="asset/images/dashboard/db-list-left.png" alt="db-list-left">
      </div>
      <!-- /DB SIDE MENU HANDLER -->
      <img src="asset/images/logo.png" alt="logo">
    </div>
    <!-- /DASHBOARD HEADER ITEM -->
  </div>
  <!-- DASHBOARD HEADER -->
  <!-- DASHBOARD CONTENT -->
  <div class="dashboard-content">
    <!-- HEADLINE -->
    <div class="headline buttons one primary">
      <h4>Commandes</h4>
      <a href="#!/orders/exports" class="button primary">Exportations</a>
    </div>
    <!-- /HEADLINE -->
    <!-- TRANSACTION LIST -->
    <div class="transaction-list jq-list-order">
      <!-- TRANSACTION LIST HEADER -->
      <div class="transaction-list-header">
        <div class="transaction-list-header-reference">
          <p class="text-header small">Id</p>
        </div>
        <div class="transaction-list-header-date">
          <p class="text-header small">Date</p>
        </div>
        <div class="transaction-list-header-author">
          <p class="text-header small">Client</p>
        </div>
        <div class="transaction-list-header-price">
          <p class="text-header small">Total</p>
        </div>
        <div class="transaction-list-header-state">
          <p class="text-header small">Statut</p>
        </div>
        <div class="transaction-list-header-icon"></div>
      </div>
      <!-- /TRANSACTION LIST HEADER -->
      <!-- TRANSACTION LIST ITEM -->
      <div class="transaction-list-item" ng-repeat="order in orders | startFrom:currentPage*pageSize | limitTo:pageSize">
        <div class="transaction-list-item-reference">
          <p class="text-header">{{order.orderId}}</p>
        </div>
        <div class="transaction-list-item-date">
          <p class="text-header">{{order.date}}</p>
        </div>
        <div class="transaction-list-item-author">
          <p class="text-header">{{order.clientName}}</p>
        </div>
        <div class="transaction-list-item-price">
          <p class="text-header">$ {{order.total}}</p>
        </div>
        <div class="transaction-list-item-state">
          <p class="text-header">{{order.state==0 ? 'En attente' : order.state==1 ? 'En cours' : 'En archive'}}</p>
        </div>
        <div class="transaction-list-item-icon">
          <div class="transaction-icon primary">
            <a href="#!/order/{{order.orderId}}">
              <svg class="svg-plus">
                <use xlink:href="#svg-plus"></use>
              </svg>
            </a>
          </div>
        </div>
      </div>
      <!-- /TRANSACTION LIST ITEM -->
      <!-- PAGER -->
      <div class="pager-wrap" ng-show="orders.length > 0">
        <div class="pager primary">
          <div class="pager-item" ng-click="currentPage > 0 ? currentPage=currentPage-1 : false">
            <p>&laquo;</p>
          </div>
          <div class="pager-item active">
            <p>{{currentPage+1}}</p>
          </div>
          <div class="pager-item" ng-click="currentPage < orders.length/pageSize - 1 ? currentPage=currentPage+1 : false">
            <p>&raquo;</p>
          </div>
        </div>
      </div>
      <!-- /PAGER -->
    </div>
    <!-- /TRANSACTION LIST -->
  </div>
  <!-- DASHBOARD CONTENT -->
</div>
<!-- /DASHBOARD BODY -->
<div class="shadow-film closed"></div>