@php Theme::layout('full-width') @endphp
{!! Theme::partial('page-header') !!}
@csrf @if (count($products) > 0) @foreach(Cart::instance('cart')->content() as $key => $cartItem) @php $product = $products->find($cartItem->id); @endphp @if (!empty($product)) @endif @endforeach
{{ __('Product') }} {{ __('Price') }} {{ __('Quantity') }} {{ __('Total') }}
{{ $product->original_product->name }} {{ $product->original_product->name }} @if (is_plugin_active('marketplace') && $product->original_product->store->id) @endif

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

@if (!empty($cartItem->options['options'])) {!! render_product_options_info($cartItem->options['options'], $product, true) !!} @endif @if (!empty($cartItem->options['extras']) && is_array($cartItem->options['extras'])) @foreach($cartItem->options['extras'] as $option) @if (!empty($option['key']) && !empty($option['value']))

{{ $option['key'] }}: {{ $option['value'] }}

@endif @endforeach @endif
{{ __('Price') }}: {!! Theme::partial('ecommerce.product-price', compact('product')) !!}
{{ __('Total') }}: {{ format_price($cartItem->price * $cartItem->qty) }}
@else

{{ __('Your cart is empty!') }}

@endif @if (count($products) > 0)
{{ __('Cart totals') }}
{{ __('Subtotal') }}: {{ format_price(Cart::instance('cart')->rawSubTotal()) }}
@if (EcommerceHelper::isTaxEnabled())
{{ __('Tax') }}: {{ format_price(Cart::instance('cart')->rawTax()) }}
@endif @if ($couponDiscountAmount > 0 && session('applied_coupon_code'))
{{ __('Coupon code: :code', ['code' => session('applied_coupon_code')]) }} ( {{ __('Remove') }} ) {{ format_price($couponDiscountAmount) }}
@endif @if ($promotionDiscountAmount)

{{ __('Discount promotion') }} {{ format_price($promotionDiscountAmount) }}

@endif
{{ __('Total') }}
{{ __('(Shipping fees not included)') }}
{{ ($promotionDiscountAmount + $couponDiscountAmount) > Cart::instance('cart')->rawTotal() ? format_price(0) : format_price(Cart::instance('cart')->rawTotal() - $promotionDiscountAmount - $couponDiscountAmount) }}
@if (session('tracked_start_checkout')) @endif
@endif
@if (count($crossSellProducts) > 0)

{{ __('Customers who bought this item also bought') }}

@php $crossSellProducts->loadMissing(['productLabels']); if (is_plugin_active('marketplace')) { $crossSellProducts->loadMissing(['store', 'store.slugable']); } @endphp
@foreach($crossSellProducts as $crossSellProduct)
{!! Theme::partial('ecommerce.product.item', ['product' => $crossSellProduct]) !!}
@endforeach
@endif