{!! apply_filters(RENDER_PRODUCTS_IN_CHECKOUT_PAGE, $products) !!} @php $cartSubTotal = Cart::instance('cart')->rawSubTotal(); $cartTax = Cart::instance('cart')->rawTax(); $hasShipping = ! empty($shipping) && Arr::get($sessionCheckoutData, 'is_available_shipping', true) && $shippingAmount > 0; $hasDiscount = $couponDiscountAmount > 0 || $promotionDiscountAmount > 0; $hasPaymentFee = isset($paymentFee) && $paymentFee > 0; $showSubtotal = $cartSubTotal != $orderAmount || $cartTax > 0 || $hasShipping || $hasDiscount || $hasPaymentFee; @endphp
@if ($showSubtotal)

{{ __('Subtotal') }}:

{{ $cartSubTotal == 0 ? trans('plugins/ecommerce::ecommerce.free') : format_price($cartSubTotal) }}

@endif {!! apply_filters('ecommerce_checkout_after_subtotal', null, $products) !!} @if (EcommerceHelper::isTaxEnabled() && $cartTax > 0)

{{ __('Tax') }} @if ($cartTax && EcommerceHelper::isDisplayCheckoutTaxInformation()) ({{ Cart::instance('cart')->taxClassesName() }}) @endif

{{ format_price($cartTax) }}

@endif @if (session('applied_coupon_code'))

{{ __('Coupon code') }}:

{{ session('applied_coupon_code') }}

@endif @if ($couponDiscountAmount > 0)

{{ __('Coupon code discount amount') }}:

{{ format_price($couponDiscountAmount) }}

@endif @if ($promotionDiscountAmount > 0)

{{ __('Promotion discount amount') }}:

{{ format_price($promotionDiscountAmount) }}

@endif @if (!empty($shipping) && Arr::get($sessionCheckoutData, 'is_available_shipping', true))

{{ __('Shipping fee') }}:

{{ format_price($shippingAmount) }}

@endif @if (isset($paymentFee) && $paymentFee > 0)

{{ __('plugins/payment::payment.payment_fee') }}:

{{ format_price($paymentFee) }}

@endif

{{ __('Total') }}:

{{ $orderAmount == 0 ? trans('plugins/ecommerce::ecommerce.free') : format_price($orderAmount) }}