{{ header }}
<header class="background-white bottom-margin-large">
  <div class="container-fluid">
    <div class="row no-space-xs">
      <div class="col-xs-12">
        <div class="content-box vertical-padding-large">
          <div>
            <span class="text-x-large text-dark">{{ heading_title }}</span>
            <div class="adm-breadcrumb">
              {% for breadcrumb in breadcrumbs %}
                <i class="fas fa-angle-right text-x-small text-gray horizontal-padding-small"></i>
                <a href="{{ breadcrumb.href }}" class="text-x-small text-gray text-decoration-none">{{ breadcrumb.text }}</a>
              {% endfor %}
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</header>
<div class="container-fluid">
  <div class="row small-space-xs middle-xs">
    <div class="col-xs-12 col-md-3">
      <label class="field field-medium">
        <span class="field-label">{{ entry_date_start }}</span>
        <input class="field-entry" type="text" name="filter_date_start" value="{{ filter_date_start }}" id="date-start"/>
      </label>
    </div>
    <div class="col-xs-12 col-md-3">
      <label class="field field-medium">
        <span class="field-label">{{ entry_date_end }}</span>
        <input class="field-entry" type="text" name="filter_date_end" value="{{ filter_date_end }}" id="date-end"/>
      </label>
    </div>
    <div class="col-xs-12 col-md">
      <label class="field field-medium">
        <span class="field-label">{{ entry_status }}</span>
        <select class="field-entry" name="filter_order_status_id">
          <option value="0">{{ text_all_status }}</option>
          {% for order_status in order_statuses %}
            <option value="{{ order_status.order_status_id }}" {{ order_status.order_status_id == filter_order_status_id ? 'selected' : '' }}>
              {{ order_status.name }}
            </option>
          {% endfor %}
        </select>
      </label>
    </div>
    <div class="col-xs-width-auto">
      <button class="btn-default btn-medium-square btn-primary top-margin-medium js-btn-filter">
        <i class="fas fa-filter"></i>
        <span>{{ button_filter }}</span>
      </button>
    </div>
  </div>
  <div class="row no-space-xs">
    <div class="col-xs-12">
      {% if products %}
        <div class="row">
          <div class="col-xs-12">
            <div class="content-box background-white bottom-border-gray padding-medium top-margin-large">
              <div class="row no-space-xs middle-xs">
                <div class="col-xs-7">
                  <span class="text-small text-dark text-bold">{{ column_name }}</span>
                </div>
                <div class="col-xs">
                  <span class="text-small text-dark text-bold">{{ column_model }}</span>
                </div>
                <div class="col-xs">
                  <span class="text-small text-dark text-bold">{{ column_quantity }}</span>
                </div>
                <div class="col-xs">
                  <span class="text-small text-dark text-bold">{{ column_total }}</span>
                </div>
              </div>
            </div>
            {% for product in products %}
              <div class="content-box background-white bottom-border-gray padding-medium">
                <div class="row no-space-xs middle-xs">
                  <div class="col-xs-7">
                    <span class="text-small text-dark">{{ product.name }}</span>
                  </div>
                  <div class="col-xs">
                    <span class="text-small text-dark">{{ product.model }}</span>
                  </div>
                  <div class="col-xs">
                    <span class="text-small text-dark">{{ product.quantity }}</span>
                  </div>
                  <div class="col-xs">
                    <span class="text-small text-dark">{{ product.total }}</span>
                  </div>
                </div>
              </div>
            {% endfor %}
          </div>
        </div>
        <div class="row">
          <div class="col-xs-12">
            <div class="content-box">
              {{ pagination }}
            </div>
          </div>
        </div>
      {% else %}
        <div class="row">
          <div class="col-xs-12">
            <div class="content-box background-white shadow-small vertical-padding-x-large horizontal-padding-large text-center top-margin-medium">
              <span class="text-medium text-gray">{{ text_no_results }}</span>
            </div>
          </div>
        </div>
      {% endif %}
    </div>
  </div>
</div>
{{ footer }}
