{{ 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-reward" 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="{{ class }}">{{ content_top }}
      <h2>{{ heading_title }}</h2>
      <p>{{ text_total }} <b>{{ total }}</b>.</p>
      <div class="table-responsive">
        <table class="table table-bordered table-hover" style="width: max-content;">
          <thead>
            <tr style="background:#fffcf4 !important;">
              <th>{{ column_date_added }}</th>
              <th style="    width: 290px;">{{ column_description }}</th>
              <th>{{ column_amount }}</th>
              <th>{{ column_from }}</th>
              <th>{{ column_from_rank }}</th>
              <th>{{ column_from_level }}</th>
            </tr>
          </thead>
          <tbody>
          
          {% if incomes %}
          {% for income in incomes %}
          <tr>
            <td>{{ income.date_added }}</td>
            <td>{{ income.description }}</td>
            <td>{{ income.amount }}</td>
            <td>{{ income.ben_from }}</td>
            <td>{{ income.from_rank }}</td>
            <td>{{ income.from_level }}</td>
            
          </tr>
          {% endfor %}
          {% else %}
          <tr>
            <td class="text-center" colspan="6">{{ text_empty }}</td>
          </tr>
          {% endif %}
            </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>
      <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>
    {{ column_right }}</div>
</div>
{{ footer }}