{% if not redirect %}
<div class="table-responsive">
  <table class="table table-bordered table-hover">
    <thead>
      <tr>
        <td class="text-left">{{ column_name }}</td>
        {# <td class="text-left">{{ column_model }}</td> #}
        <td class="text-left">{{ column_price }}</td>
        <td class="text-left">{{ column_quantity }}</td>
        <td class="text-left">{{ column_total }}</td>
      </tr>
    </thead>
    <tbody>

    {% for product in products %}
    <tr>
      <td class="text-left"><a href="{{ product.href }}">{{ product.name }}</a> {% for option in product.option %} <br />
        &nbsp;<small> - {{ option.name }}: {{ option.value }}</small> {% endfor %}
        {% if product.recurring %} <br />
        <span class="label label-info">{{ text_recurring_item }}</span> <small>{{ product.recurring }}</small> {% endif %}
        <div class="cart-term">
          <div class="">
            <small>{{ column_model_text }}{{ product.model }}</small>
          </div>
          <div class="cart-term-mid">
            |
          </div>
          <div class="">
            <small>{{ column_bv }}{{ product.reward_default }}</small>
          </div>

        </div>

      </td>
      {# <td class="text-left">{{ column_model_text }}{{ product.model }}</td> #}
      <td class="text-left">{{ product.price }}</td>
      <td class="text-left">{{ product.quantity }}</td>
      <td class="text-left">
        <div class="cart-term">
          <div class="">
            {{ product.total }}
          </div>
          <div class="cart-term-mid">
            |
          </div>
          <div class="">
            {{ column_bv }}{{ product.reward }} {{ reward }}
          </div>
        </div> </td>
    </tr>
    {% endfor %}
    {% for voucher in vouchers %}
    <tr>
      <td class="text-left">{{ voucher.description }}</td>
      <td class="text-left"></td>
      <td class="text-right">1</td>
      <td class="text-right">{{ voucher.amount }}</td>
      <td class="text-right">{{ voucher.amount }}</td>
    </tr>
    {% endfor %}
      </tbody>

    <tfoot>

    {% for total in totals %}
    <tr>
      <td colspan="3" class="text-right"><strong>{{ total.title }}:</strong></td>
      <td class="text-left">{{ total.text }}</td>
    </tr>
    {% endfor %}
      </tfoot>

  </table>
</div>
{{ payment }}
{% else %}
<script type="text/javascript"><!--
location = '{{ redirect }}';
//--></script>
{% endif %}
