<div id="cart" class="btn-group btn-block petluna-cart">
  <button type="button" data-toggle="dropdown" data-loading-text="{{ text_loading }}" class="btn btn-link dropdown-toggle">
    <i class="fa fa-shopping-bag"></i>
    <span class="hidden-xs">Sepetim</span>
    <small>{{ text_items }}</small>
  </button>
  <ul class="dropdown-menu pull-right">
    {% if products or vouchers %}
    <li>
      <table class="table table-striped">
        {% for product in products %}
        <tr>
          <td class="text-center">{% if product.thumb %}<a href="{{ product.href }}"><img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-thumbnail" /></a>{% endif %}</td>
          <td class="text-left"><a href="{{ product.href }}">{{ product.name }}</a></td>
          <td class="text-right">x {{ product.quantity }}</td>
          <td class="text-right">{{ product.total }}</td>
          <td class="text-center"><button type="button" onclick="cart.remove('{{ product.cart_id }}');" title="{{ button_remove }}" class="btn btn-danger btn-xs"><i class="fa fa-times"></i></button></td>
        </tr>
        {% endfor %}
        {% for voucher in vouchers %}
        <tr>
          <td></td>
          <td class="text-left">{{ voucher.description }}</td>
          <td class="text-right">x&nbsp;1</td>
          <td class="text-right">{{ voucher.amount }}</td>
          <td class="text-center text-danger"></td>
        </tr>
        {% endfor %}
      </table>
    </li>
    <li>
      <div>
        <table class="table table-bordered">
          {% for total in totals %}
          <tr>
            <td class="text-right"><strong>{{ total.title }}</strong></td>
            <td class="text-right">{{ total.text }}</td>
          </tr>
          {% endfor %}
        </table>
        <p class="text-right petluna-cart__links"><a href="{{ cart }}"><strong>{{ text_cart }}</strong></a>&nbsp;&nbsp;&nbsp;<a href="{{ checkout }}"><strong>{{ text_checkout }}</strong></a></p>
      </div>
    </li>
    {% else %}
    <li><p class="text-center">{{ text_empty }}</p></li>
    {% endif %}
  </ul>
</div>
