<h1>{{ heading_title }}</h1>
{% if orders %}
  <div class="table-responsive">
    <table class="table table-bordered table-hover">
      <thead>
        <tr>
          <th class="text-end">{{ column_order_id }}</th>
          <th class="text-end">{{ column_product_total }}</th>
          <th>{{ column_status }}</th>
          <th class="text-end">{{ column_total }}</th>
          <th>{{ column_date_added }}</th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        {% for order in orders %}
          <tr>
            <td class="text-end">#{{ order.order_id }}</td>
            <td class="text-end">{{ order.product_total }}</td>
            <td>{{ order.status }}</td>
            <td class="text-end">
              <x-currency code="{{ order.currency_code }}" amount="{{ order.total }}" value="{{ order.currency_value }}"></x-currency>
            </td>
            <td>{{ order.date_added }}</td>
            <td class="text-end"><a href="{{ order.view }}" title="{{ button_view }}" class="btn btn-info"><i class="fa-solid fa-eye"></i></a></td>
          </tr>
        {% endfor %}
      </tbody>
    </table>
  </div>
  <div class="row mb-3">
    <div class="col-sm-6 text-start">{{ pagination }}</div>
    <div class="col-sm-6 text-end">{{ results }}</div>
  </div>
{% else %}
  <p>{{ text_no_results }}</p>
{% endif %}
<div class="text-end"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>

