File: D:/HostingSpaces/SBogers27/dndin.nl/resources/views/shop/partials/shoppingCart/content.blade.php
<div class="grid-col col-7 shoppingcartItemList">
@if(!empty($items))
<ul>
@foreach($items as $item)
<li>
<h3>{{$item->getProduct()->title}}</h3>
<a href="#" onclick="ShoppingCart.removeItemFromShoppingcart({{$item->getId()}})">x</a>
@if(count($item->getProduct()->images) > 0) <img src="{{$item->getProduct()->images[0]["small_image_url"]}}"/> @endif
{{floatval($item->getProduct()->price/100)}}
<a href="#" onclick="ShoppingCart.setItemAmountInShoppingcart({{$item->getId()}}, {{$item->getAmount()-1}})">-</a> {{$item->getAmount()}} <a href="#" onclick="ShoppingCart.setItemAmountInShoppingcart({{$item->getId()}}, {{$item->getAmount()+1}})">+</a> |
€{{($item->getTotal()/100)}}</li>
@endforeach
</ul>
@else
Er zijn geen producten in je winkelwagen
@endif
<a href="#" onclick="ShoppingCart.addProductToShoppingcart()">Voeg een (random) product toe</a>
</div>
<div class="grid-col col-4 shoppingCartInfoBar">
<h3>Besteloverzicht</h3>
@if($subTotal == $subTotalWithDiscounts)
<h5>Subtotaal: {{$subTotal / 100}}</h5>
@else
Subtotaal: {{$subTotalWithDiscounts / 100}} <s>{{$subTotal / 100}}</s></h5>
@endif
</div>