{{ 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">
      <label class="field field-medium">
        <span class="field-label">{{ column_customer }}</span>
        <input class="field-entry" type="text" name="filter_customer" value="{{ filter_customer }}" />
      </label>
    </div>
    <div class="col-xs-12 col-md-2">
      <label class="field field-medium">
        <span class="field-label">{{ column_ip }}</span>
        <input class="field-entry" type="text" name="filter_ip" value="{{ filter_ip }}" />
      </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>
  {% if customers %}
    <div class="row no-space-xs">
      <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-3">
              <span class="text-small text-dark text-bold">{{ column_customer }}</span>
            </div>
            <div class="col-xs-2">
              <span class="text-small text-dark text-bold">{{ column_ip }}</span>
            </div>
            <div class="col-xs">
              <span class="text-small text-dark text-bold">{{ column_url }}</span>
            </div>
            <div class="col-xs">
              <span class="text-small text-dark text-bold">{{ column_referer }}</span>
            </div>
            <div class="col-xs">
              <span class="text-small text-dark text-bold">{{ column_date_added }}</span>
            </div>
            <div class="col-xs-1">
              <span class="text-small text-dark text-bold">{{ column_action }}</span>
            </div>
          </div>
        </div>
      </div>
    </div>
    {% for customer in customers %}
      <div class="row no-space-xs">
        <div class="col-xs-12">
          <div class="content-box background-white bottom-border-gray padding-medium">
            <div class="row no-space-xs middle-xs">
              <div class="col-xs-3">
                <span class="text-small text-dark">{{ customer.customer }}</span>
              </div>
              <div class="col-xs-2">
                <a class="text-small text-decoration-none" href="http://whatismyipaddress.com/ip/{{ customer.ip }}" target="_blank">{{ customer.ip }}</a>
              </div>
              <div class="col-xs">
                <a class="btn-default btn-white btn-outline btn-medium" href="{{ customer.url }}" target="_blank">
                  {{ text_page }}
                </a>
              </div>
              <div class="col-xs">
                {% if customer.referer %}
                  <a class="btn-default btn-white btn-outline btn-medium" href="{{ customer.referer }}" target="_blank">
                    {{ text_origin}}
                  </a>
                {% endif %}
              </div>
              <div class="col-xs">
                <span class="text-small text-dark">{{ customer.date_added }}</span>
              </div>
              <div class="col-xs-1">
                {% for action in customer.action %}
                  <a class="btn-default btn-white btn-outline btn-medium" href="{{ action.href }}">{{ text_edit }}</a>
                {% endfor %}
              </div>
            </div>
          </div>
        </div>
      </div>
    {% endfor %}
    <div class="row">
      <div class="col-xs-12">
        <div class="content-box top-margin-medium">
          {{ 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>
{{ footer }}