<div id="cartsContainer">
  <div class="listItem" ng-repeat="item in customer.cart" 
    ng-init="product=item.product[0]">
    <img class="listImg" ng-click="setProduct(product._id)"
         ng-src="../images/{{product.imagefile}}" />
    <span class="prodName">{{product.name}}</span>
    <span >
      <span class="price">{{product.price|currency}}</span>
      <input class="quantity" type="text" ng-model="item.quantity" />
      <label class="quantity">Ilość</label>
      <span class="delete" 
            ng-click="deleteFromCart(product._id)">Usuń</span>
    </span>
  </div>
  <hr>
  <div>
    <span>Wysyłka</span>
    <span class="price">{{shipping|currency}}</span>
  </div>
  <hr>
  <div>
    <span>Łączna cena</span>
    <span class="price">{{cartTotal()|currency}}</span>
   </div>
   <hr>
  <div>
	  <span class="button" ng-click="checkout()" 
	        ng-hide="customer.cart.length==0">
	    Przejdź do kasy
	  </span>
	  <span class="button" ng-click="setContent('products.html')">
	    Kontynuuj zakupy
	  </span>
  </div>
</div>