{{ 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;
}
.btn:focus{
  border: none !important;
  box-shadow: none !important;
}
</style>
<!-- BREADCRUMB AREA START -->
<!-- <div class="ltn__breadcrumb-area ltn__breadcrumb-area-2
        ltn__breadcrumb-color-white bg-overlay-theme-black-90 bg-image" data-bg="{{ base }}catalog/view/theme/vb/img/banner/B1.png">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="ltn__breadcrumb-inner
                        ltn__breadcrumb-inner-2
                        justify-content-between">
                    <div class="section-title-area
                            ltn__section-title-2">
                        <h6 class="section-subtitle
                            ltn__secondary-color">// Welcome to
                            V Believers</h6>
                        <h1 class="section-title
                                white-color">Shopping Cart</h1>
                        <div class="ltn__breadcrumb-list">
                            <ul>
                                <li><a href="{{base}}">Home</a></li>
                                <li>Cart</li>
                            </ul>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div> -->
<!-- BREADCRUMB AREA END -->
<div id="checkout-cart" class="container">
  {% if attention %}
  <div class="alert alert-info"><i class="fa fa-info-circle"></i> {{ attention }}
    <button type="button" class="close" data-dismiss="alert">&times;</button>
  </div>
  {% endif %}
  {% if success %}
  <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }}
    <button type="button" class="close" data-dismiss="alert">&times;</button>
  </div>
  {% endif %}
  {% if error_warning %}
  <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
    <button type="button" class="close" data-dismiss="alert">&times;</button>
  </div>
  {% endif %}
  <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 }} pt-45">{{ content_top }}
      <div class="row px-3 justify-content-between">
        <h2 style="font-size: 22px;">{{ heading_title }}
        <!-- {% if weight %}
        &nbsp;({{ weight }})
        {% endif %} --> </h2>
<!--         <h1 class="text-body" style="font-size: 22px; margin-right: 30px;">Price</h1>
 -->      </div>
      <form action="{{ action }}" method="post" enctype="multipart/form-data">
        <div class="table-responsive">
          <table class="table table-bordered" style="width:max-content;min-width: 100%;">
            <thead>
              <tr>
                <td class="text-center">{{ column_image }}</td>
                <td class="text-left">{{ column_name }}</td>
<!--                 <td class="text-left">{{ column_model }}</td>
 -->                <td class="text-left">{{ column_quantity }}</td>
                <td class="text-right">{{ column_price }}</td>
                <td class="text-right">Tax</td>
                <td class="text-right">{{ column_total }}</td>
              </tr>
            </thead>
            <tbody>
            
            {% 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 }}"  /></a> {% endif %}</td>
              <td class="text-left"><a href="{{ product.href }}">{{ product.name }}</a> {% if not product.stock %} <span class="text-danger">***</span> {% endif %}
                {% if product.option %}
                {% for option in product.option %} <br/>
                <small>{{ option.name }}: {{ option.value }}</small> {% endfor %}
                {% endif %}
                {% if product.reward %} <br/>
                <small>{{ product.reward }}</small> {% endif %}
                
                {% if product.business_point %} <br/>
                <small>{{ product.business_point }}</small> {% endif %}
                
                {% if product.recurring %} <br/>
                <span class="label label-info">{{ text_recurring_item }}</span> <small>{{ product.recurring }}</small> {% endif %}</td>
<!--               <td class="text-left">{{ product.model }}</td>
 -->              <td class="text-left"><div class="input-group btn-block" style="max-width: 200px;">
                  <input style="height:32px;max-width:60px;padding: 10px;margin-right: 10px;text-align: center;border: 2px solid #f1ae004d;" type="text" name="quantity[{{ product.cart_id }}]" value="{{ product.quantity }}" size="1" class="form-control" />
                  <span class="input-group-btn">
                  <button style="width: 34px;padding: 6px 12px !important;background-color: #C15B27; border: none;" type="submit" data-toggle="tooltip" title="{{ button_update }}" class="btn btn-primary"><i style="font-weight: bold;
    font-size: 13px;" class="fa fa-refresh icon-done"></i></button>
                  <button style="width: 34px;padding: 6px 12px !important; border: none;" type="button" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger" onclick="cart.remove('{{ product.cart_id }}');"><i class="fa fa-times"></i></button>
                  </span></div></td>
              <td class="text-right">{{ product.price }}</td>
              <td class="text-right">{{ product.tax }}</td>
              <td class="text-right">{{ product.total }}</td>
            </tr>
            {% endfor %}
            {% for voucher in vouchers %}
            <tr>
              <td></td>
              <td class="text-left">{{ voucher.description }}</td>
              <td class="text-left"></td>
              <td class="text-left"><div class="input-group btn-block" style="max-width: 200px;">
                  <input type="text" name="" value="1" size="1" disabled="disabled" class="form-control" />
                  <span class="input-group-btn">
                  <button type="button" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger" onclick="voucher.remove('{{ voucher.key }}');"><i class="fa fa-times-circle"></i></button>
                  </span></div></td>
              <td class="text-right">{{ voucher.amount }}</td>
              <td class="text-right">{{ voucher.amount }}</td>
            </tr>
            {% endfor %}
              </tbody>
            
          </table>
        </div>
      </form>
      <div class="row">
        <div class="col-sm-8">
          {% if modules %}
          <h3 class="mt-15">{{ text_next }}</h3>
          <p class="pr-5">{{ text_next_choice }}</p>
          <div class="panel-group" id="accordion" style="width: 100%;"> {% for module in modules %}
            {{ module }}
            {% endfor %} </div>
          {% endif %} <br/>
        </div>
        <div class="col-sm-4">
          <div class="col-sm-12 p-0 col-sm-offset-12">
            <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>        
      <div class="buttons clearfix mb-4" >
        <div class="pull-left"><a href="{{ continue }}" class="btn btn-default">{{ button_shopping }}</a></div>
        <div class="pull-right"><a href="{{ checkout }}" class="btn btn-primary">{{ button_checkout }}</a></div>
      </div>
      </div>
      </div>
      </div>
      {{ content_bottom }}</div>
    {{ column_right }}</div>
</div>
{{ footer }} 
