@if (Cart::instance('cart')->count() > 0 && Cart::instance('cart')->products()->count() > 0) @php $products = Cart::instance('cart')->products(); @endphp @if (count($products)) @forelse (Cart::instance('cart')->content() as $key => $cartItem) @php $product = $products->find($cartItem->id); @endphp @continue(! $product)
{{ $product->name }}

{{ format_price($cartItem->price) }} @if ($product->front_sale_price != $product->price) {{ format_price($product->price) }} @endif (x{{ $cartItem->qty }})

{{ $cartItem->options['attributes'] ?? '' }}

@empty
{{ __('No products in the cart.') }}
@endforelse @endif @else
{{ __('No products in the cart.') }}
@endif