@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 }})

@if(! empty($cartItem->options['attributes']))

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

@endif @if (EcommerceHelper::isEnabledProductOptions() && !empty($cartItem->options['options'])) {!! render_product_options_html($cartItem->options['options'], $product->original_price) !!} @endif @include('plugins/ecommerce::themes.includes.cart-item-options-extras', [ 'options' => $cartItem->options, ])
@empty
{{ __('No products in the cart.') }}
@endforelse @endif @else
{{ __('No products in the cart.') }}
@endif