{{ header }}
<style type="text/css">
.table tr:nth-child(odd),.table tr:nth-child(even) {
    background-color: unset !important;
}
.table thead th {
    border-bottom: 2px solid #f1ae004d;
}

.table-bordered td, .table-bordered th {
   border-color: #f1ae004d !important;
}
.ltn__pagination ul li a {
    height: auto;
    width: 22px;
    line-height: 0px;
    border: unset;
}
.ltn__pagination ul li {
    margin-top: 0px;
}

</style>
<div id="account-order" class="container">
  <ul class="breadcrumb">
    {% for breadcrumb in breadcrumbs %}
    <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
    {% endfor %}
  </ul>
  <div class="row">{{ column_left }}
    {% if column_left and column_right %}
    {% set class = 'col-sm-6' %}
    {% elseif column_left or column_right %}
    {% set class = 'col-sm-9' %}
    {% else %}
    {% set class = 'col-sm-12' %}
    {% endif %}
     
    {# <div id="content" class="col-sm-9"> #}
    <div id="content" class="col-sm-9">
        {% if tot_challenge_pur %}
          <p class="m-0"> Total Challenge Purchasing : {{ tot_challenge_pur }} ({{ tot_challenge_pur_per }})</p>
          <p class="m-0"> Challenge To Complete : {{ tot_challenge_pur_rem }} ({{ tot_challenge_pur_per_rem }})</p>
        {% endif %}
        <div class="row">
            {# <div id="filter-order" class="col-md-3 col-sm-12">#}
            {#  <div class="panel panel-default">#}
            {#    <div class="panel-heading">#}
            {#      <h3 class="panel-title"><i class="fa fa-filter"></i> {{ text_filter }}</h3>#}
            {#    </div>#}
            {#    <div class="panel-body">#}
                 
                
            {#      <div class="form-group">#}
            {#        <label class="control-label" for="input-date-added">{{ entry_date_start}}</label>#}
            {#        <input type="date" name="filter_date_start" value="{{ filter_date_start}}" placeholder="{{ entry_date_start }}" id="input-date-added" class="form-control" />#}
                     
            {#      </div>#}
            {#      <div class="form-group">#}
            {#        <label class="control-label" for="input-date-modified">{{ entry_date_end }}</label>#}
            {#        <input type="date" name="filter_date_end" value="{{ filter_date_end }}" placeholder="{{ entry_date_end }}" id="input-date-modified" class="form-control" />#}
                    
            {#      </div>#}
            {#      <div class="form-group text-right">#}
            {#        <button type="button" id="button-filter" class="btn btn-default"><i class="fa fa-filter"></i> {{ button_filter }}</button>#}
            {#      </div>#}
            {#    </div>#}
            {#  </div>#}
            {#</div> #}
            {# <div id="filter-order" class="col-md-9 col-sm-12"> #}
            <div id="filter-order" class="col-sm-12">
                 {{ content_top }}
                  <h2>{{ heading_title_orders }}</h2>
                  {% if orders %}
                  <div class="table-responsive">
                    <table class="table table-bordered table-hover" >
                      <thead>
                        <tr>
                          <th>{{ column_username }}</th>
                          {#<th>{{ column_order_id }}</th>#}
                          <th>{{ column_customer }}</th>
                          {#<th class="text-center">{{ column_product }}</th>#}
                          <th>{{ column_status }}</th>
                          <th>{{ column_total }}</th>
                          <th>{{ column_business_points }}</th>
                          <th>{{ column_date_added }}</th>
                          {# <th></th> #}
                        </tr>
                      </thead>
                      <tbody>
                       {% for order in orders %}
                        <tr>
                          <td>{{ order.username }}</td>
                          {#<td>#{{ order.customer_id }}</td>#}
                          {#<td>#{{ order.order_id }}</td>#}
                          <td>{{ order.name }}</td>
                          {#<td class="text-center">{{ order.products }}</td>#}
                          <td>{{ order.status }}</td>
                          <td>{{ order.total }}</td>
                          <td>{{ order.business_points }}</td>
                          <td>{{ order.date_modified }}</td>
                          {# <td><a href="{{ order.view }}" data-toggle="tooltip" title="{{ button_view }}" class="btn btn-info"><i class="fa fa-eye"></i></a></td> #}
                        </tr>
                        {% endfor %}
                      </tbody>
                    </table>
                  </div>
                  <div class="row">
                    <div class="col-sm-6 mt-3 text-center text-sm-left">{{ results }}</div>
                    <div class="col-sm-6 mt-3 "><div class="ltn__pagination-area">
                      <div class="ltn__pagination  text-center text-sm-right">
                          {{ pagination }}
                      </div>
                    </div></div>
                  </div>
                  {% else %}
                  <p>{{ text_empty }}</p>
                  {% endif %}
                  <div class="buttons clearfix mb-4">
                    <div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
                  </div>
                  {{ content_bottom }}
            </div>
           
        </div>
        
       </div>
      
      
    {{ column_right }}</div>
</div>
  <script type="text/javascript"><!--
//   $('#button-filter').on('click', function() {
       
// 	url = '';
	
// 	var filter_date_start = $('input[name=\'filter_date_start\']').val();

// 	if (filter_date_start) {
// 		url += '&filter_date_start=' + encodeURIComponent(filter_date_start);
// 	}

// 	var filter_date_end = $('input[name=\'filter_date_end\']').val();

// 	if (filter_date_end) {
// 		url += '&filter_date_end=' + encodeURIComponent(filter_date_end);
// 	}

// 	location = 'index.php?route=account/order' + url;
// });
// //--></script>
   

{{ footer }}
