{* @compiler:inline-only *}
<div class="table-cart cart">
   {foreach $body.products as $product}
      <div class="product">
         <div class="product-inner display-table" data-cart="row"
              data-product-id="{$product.id}{if $product.id_variation}_{$product.id_variation}{/if}">
            <div class="col-xs-1 product-image">
               <a title="{t}Zobrazit zboží{/t}" href="{url s=product IDproduct=$product.id TITLE=$product.title}{if $product.id_variation}#{$product.id_variation}{/if}">
                  {block "cart-img"}
                     <img src="{get_photo photo=$product.image size=2}" alt="{$product.title}" class="img-responsive">
                  {/block}
               </a>
            </div>
            {block 'cart-title'}
               <div class="col-xs-5 product-title">
                  <a title="Zobrazit zboží" href="{url s=product IDproduct=$product.id TITLE=$product.title}">{$product.title}</a>

                  {if $product.availability eq 0 and $product.inStore eq 0}
                     <p class="delivery delivery-notinstore">{t}nedostupné{/t}</p>
                  {elseif $product.availability eq 0 and $product.inStore gt 0 }
                     <p class="delivery delivery-partly">{t pocet=$product.inStore}skladem pouze {pocet} ks{/t}</p>
                  {elseif $product.availability eq 1}
                     <p class="delivery delivery-instore">{t}skladem{/t}</p>
                  {elseif $product.availability eq 2}
                     <p class="delivery delivery-instore">{t}skladem u dodavatele{/t}</p>
                  {/if}
               </div>
            {/block}
            {block 'price-per-piece'}
               <div class="col-xs-1 product-price-per-piece">
                  {$product.price.value_with_vat|format_price} /
                  {if $module.PRODUCTS__UNITS}
                     {$product.product.unit.short_name|lower}
                  {else}
                     {t}Ks{/t}
                  {/if}
               </div>
            {/block}
            {block 'cart-pieces'}
               <div class="col-xs-3 product-pieces">
                  <label for="products[{$product.idincart}][pieces]" class="hidden-xl-down">{t}Množství{/t}</label>
                  {$precision = $product.product.unit.pieces_precision|default:0}
                  <input type="number" id="products[{$product.idincart}][pieces]" name="products[{$product.idincart}][pieces]" value="{$product.pieces|number_format:$precision}"
                         class="form-control" maxlength="3" size="2" data-bv-excluded="true" data-cart="pieces"
                         {if $module.PRODUCTS__UNITS_FLOAT}step="{$product.product.unit.step}" data-precision="{$product.product.unit.pieces_precision|default:0}" min="{$product.product.unit.step}"{else}min="1"{/if}>
                  <div class="buy_count">
                     <i class="fc fc-angle-up" data-cart="plus" title="{t}Přidat ks{/t}"></i>
                     <i class="fc fc-angle-down" data-cart="minus" title="{t}Odebrat ks{/t}"></i>
                     {if $module.PRODUCTS__UNITS_FLOAT}
                        <p class="ordering-product-units">{$product.product.unit.short_name|lower}</p>
                     {/if}
                  </div>
               </div>
            {/block}
            {block 'cart-price'}
               <div class="col-xs-1 product-price-total">
                  {$product.totalPrice.value_with_vat|format_price}
               </div>
            {/block}
            {block 'cart-delete'}
               <div class="col-xs-1 product-delete">
                  <a href="{url s=cart act=erase IDInCart=$product.idincart}" class="delete-product" data-cart="delete">
                     <i class="fc lightbox_close"></i>
                  </a>
               </div>
            {/block}
         </div>
         {block "product-sets-custom"}{/block}
      </div>

      {block "product-charges"}{/block}

      {*darek k produktu*}
      {block "product-sets"}
         {include "ordering/ordering.sets.tpl"}
      {/block}
   {/foreach}
</div>
