Cart Items

@php $cartCount = 0; $totalPrice = 0; @endphp @foreach ($getCartItems as $cartItem) @php $cartCount = $cartCount + $cartItem->quantity; $totalPrice = $totalPrice + ($cartItem->product->price * $cartItem->quantity); @endphp @endforeach
Image Product Name Price Qty Total Action
@if (isset($cartItem->product->image) && file_exists($cartItem->product->image)) @else @endif {{ $cartItem->product->name }} $ {{ $cartItem->product->price }} - {{ $cartItem->quantity }} + $ {{ $cartItem->product->price * $cartItem->quantity }}