{{ __('Your Cart') }}

@if (! empty($products))

{!! BaseHelper::clean(__('There are :total products in your cart', ['total' => '' . count($products) . ''])) !!}

@endif
@csrf @method('PUT')
@if (! empty($products))
@foreach(Cart::instance('cart')->content() as $key => $cartItem) @if ($product = $products->find($cartItem->id)) @endif @endforeach
{{ __('Product') }} {{ __('Unit Price') }} {{ __('Quantity') }} {{ __('Subtotal') }} {{ __('Remove') }}
{{ $product->original_product->name }}

{{ $product->original_product->name }} @if ($product->isOutOfStock()) ({!! $product->stock_status_html !!}) @endif

@if (is_plugin_active('marketplace') && $product->original_product->store->id)

{{ __('Sold by') }}: {{ $product->original_product->store->name }}

@endif

{{ Arr::get($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 @if (EcommerceHelper::isReviewEnabled() && $product->reviews_count)
({{ $product->reviews_count }})
@endif

{{ format_price($cartItem->price) }}

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

{{ format_price($cartItem->price * $cartItem->qty) }}

@if (Cart::instance('cart')->isNotEmpty())

{{ __('Apply Coupon') }}

{{ __('Using A Promo Code?') }}

@endif
@else

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

@endif
@if (Cart::instance('cart')->isNotEmpty())
@if (EcommerceHelper::isTaxEnabled()) @endif @if ($couponDiscountAmount > 0 && session('applied_coupon_code')) @endif @if ($promotionDiscountAmount) @endif

{{ __('Tax') }}

{{ format_price(Cart::instance('cart')->rawTax()) }}

{{ __('Coupon code: :code', ['code' => session('applied_coupon_code')]) }} ({{ __('Remove') }})

{{ format_price($couponDiscountAmount) }}

{{ __('Discount promotion') }}

{{ format_price($promotionDiscountAmount) }}

{{ __('Total') }}

({{ __('Shipping fees not included') }})

{{ ($promotionDiscountAmount + $couponDiscountAmount) > Cart::instance('cart')->rawTotal() ? format_price(0) : format_price(Cart::instance('cart')->rawTotal() - $promotionDiscountAmount - $couponDiscountAmount) }}

{{ __('Proceed To Checkout') }}
@endif
@if (! empty($crossSellProducts))

{{ __('You may also like') }}

@foreach($crossSellProducts as $crossProduct)
@include(Theme::getThemeNamespace() . '::views.ecommerce.includes.product-item', ['product' => $crossProduct])
@endforeach
@endif