{{ translate('Cart')}} @if(Session::has('cart')) {{ count(Session::get('cart'))}} @else 0 @endif
  • @if(Session::has('cart')) @if(count($cart = Session::get('cart')) > 0)

    {{ translate('Cart Items')}}

    @php $total = 0; @endphp @foreach($cart as $key => $cartItem) @php $product = \App\Product::find($cartItem['id']); $total = $total + $cartItem['price']*$cartItem['quantity']; @endphp
    {{ __($product->name) }} x{{ $cartItem['quantity'] }} {{ single_price($cartItem['price']*$cartItem['quantity']) }}
    @endforeach
    {{ translate('Subtotal')}} {{ single_price($total) }}
    • {{ translate('View cart')}}
    • {{ translate('Checkout')}}
    @else

    {{ translate('Your Cart is empty')}}

    @endif @else

    {{ translate('Your Cart is empty')}}

    @endif