@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

SKU : {{ $product->original_product->sku }}

{{ $cartItem->options['attributes'] ?? '' }} {{-- @if (!empty($cartItem->options['attributes'])) @php $attributesText = $cartItem->options['attributes']; $attributes = []; foreach (explode(',', $attributesText) as $attr) { if (strpos($attr, ':') !== false) { [$attrKey, $attrValue] = array_map('trim', explode(':', $attr, 2)); $attributes[$attrKey] = $attrValue; } } @endphp

@foreach($attributes as $attrKey => $attrValue)
{{ ltrim($attrKey, '(') }}:{{ rtrim($attrValue, ')') }}
@endforeach
@endif --}} @if (!empty($cartItem->options['attributes'])) @php $attributesText = $cartItem->options['attributes']; $attributes = []; foreach (explode(',', $attributesText) as $attr) { if (strpos($attr, ':') !== false) { [$attrKey, $attrValue] = array_map('trim', explode(':', $attr, 2)); $attributes[$attrKey] = $attrValue; } } @endphp
@foreach($attributes as $attrKey => $attrValue)
{{ ltrim($attrKey, '(') }}:{{ rtrim($attrValue, ')') }}
@endforeach
@endif

@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) }} --}} {{ format_price($cartItem->price) }} {{ format_price($product->price_with_taxes) }} @if ($cartItem->price < $product->price) {{ number_format((($product->price - $cartItem->price) / $product->price) * 100, 2) }}% Off @endif
{{ __('Total') }}: {{ format_price($cartItem->price * $cartItem->qty) }}
{{-- --}}
@else

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

@endif @if ($products->isNotEmpty())
{{--
--}}
{{ __('Order Notes') }}
{{-- --}}
{{--
--}}
{{--
{{ __('Cart totals') }}
{{ __('Subtotal') }}: {{ format_price(Cart::instance('cart')->rawSubTotal()) }}
@if (EcommerceHelper::isTaxEnabled())
{{ __('Tax') }}@if (Cart::instance('cart')->rawTax()) ({{ Cart::instance('cart')->taxClassesName() }}) @endif: {{ 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
--}}
Cart Summary
  • Subtotal : {{ format_price(Cart::instance('cart')->rawSubTotal()) }}
  • @if (EcommerceHelper::isTaxEnabled())
  • Tax @if (Cart::instance('cart')->rawTax()) ({{ Cart::instance('cart')->taxClassesName() }}) : @endif {{ format_price(Cart::instance('cart')->rawTax()) }}
  • @endif {{-- @if ($couponDiscountAmount > 0 && session('applied_coupon_code'))
  • Coupon: {{ session('applied_coupon_code') }}
    Remove
    {{ format_price($couponDiscountAmount) }}
  • @endif --}} @if ($promotionDiscountAmount)
  • Promotion Discount {{ format_price($promotionDiscountAmount) }}
  • @endif
Total :
{{ ($promotionDiscountAmount + $couponDiscountAmount) > Cart::instance('cart')->rawTotal() ? format_price(0) : format_price(Cart::instance('cart')->rawTotal() - $promotionDiscountAmount - $couponDiscountAmount) }}

(Shipping not included)

@if (session('tracked_start_checkout')) 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