• {{ count(Cart::content()) }}
    • Shopping Cart

      @if ($cart) {{-- @foreach (session('cart') as $id => $details) --}} @foreach ($cart as $item)
      {{ $item['product']->name }} {{--
      --}}
      {{ $item['qty'] }} {{ $item['product']->price }} ₼
      @endforeach @endif {{-- @php $total = 0 @endphp @foreach ((array) session('cart') as $id => $details) @php $total += $details['price'] * $details['quantity'] @endphp @endforeach --}}
      Total {{ Cart::subTotal() }} ₼
      Check out View Cart