@php Theme::asset()->container('footer')->remove('ecommerce-checkout-js'); @endphp {!! Theme::partial('page-header') !!}
@csrf @if ($products->isNotEmpty()) @foreach(Cart::instance('cart')->content() as $key => $cartItem) @php $product = $products->find($cartItem->id); @endphp @if (!empty($product)) @endif @endforeach
{{ __('Product') }} {{ __('Price') }} {{ __('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') }}: {{ format_price($product->front_sale_price_with_taxes) }} {{ format_price($product->price_with_taxes) }}
{{ __('Total') }}: {{ format_price($cartItem->price * $cartItem->qty) }}
@else

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

@endif @if ($products->isNotEmpty())
{{ __('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 ($crossSellProducts->isNotEmpty())

{{ __('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