@php $subtotal_for_min_order_amount = 0; $subtotal = 0; $tax = 0; $product_shipping_cost = 0; $shipping = 0; $coupon_code = null; $coupon_discount = 0; $total_point = 0; @endphp @foreach ($carts as $key => $cartItem) @php $product = get_single_product($cartItem['product_id']); $subtotal_for_min_order_amount += cart_product_price($cartItem, $cartItem->product, false, false) * $cartItem['quantity']; $subtotal += cart_product_price($cartItem, $product, false, false) * $cartItem['quantity']; $tax += cart_product_tax($cartItem, $product, false) * $cartItem['quantity']; $product_shipping_cost = $cartItem['shipping_cost']; $shipping += $product_shipping_cost; if ((get_setting('coupon_system') == 1) && ($cartItem->coupon_applied == 1)) { $coupon_code = $cartItem->coupon_code; $coupon_discount = $carts->sum('discount'); } if (addon_is_activated('club_point')) { $total_point += $product->earn_point * $cartItem['quantity']; } @endphp @endforeach

{{ translate('Order Summary') }}

@if (get_setting('minimum_order_amount_check') == 1 && $subtotal_for_min_order_amount < get_setting('minimum_order_amount')) {{ translate('Minimum Order Amount') . ' ' . single_price(get_setting('minimum_order_amount')) }} @endif
{{ translate('Total Products') }} {{ sprintf("%02d", count($carts)) }}
@if (addon_is_activated('club_point'))
{{ translate('Total Clubpoint') }} {{ sprintf("%02d", $total_point) }}
@endif
@if ($proceed != 1) @endif @if (Session::has('club_point')) @endif @if ($coupon_discount > 0) @endif @php $total = $subtotal + $tax + $shipping; if (Session::has('club_point')) { $total -= Session::get('club_point'); } if ($coupon_discount > 0) { $total -= $coupon_discount; } @endphp
{{ translate('Subtotal') }} ({{ sprintf("%02d", count($carts)) }} {{ translate('Products') }}) {{ single_price($subtotal) }}
{{ translate('Tax') }} {{ single_price($tax) }}
{{ translate('Total Shipping') }} {{ single_price($shipping) }}
{{ translate('Redeem point') }} {{ single_price(Session::get('club_point')) }}
{{ translate('Coupon Discount') }} {{ single_price($coupon_discount) }}
{{ translate('Total') }} {{ single_price($total) }}
@if (get_setting('coupon_system') == 1) @if ($coupon_discount > 0 && $coupon_code)
@csrf
{{ $coupon_code }}
@else
@csrf
@if (!auth()->check()) {{ translate('You must Login as customer to apply coupon') }} @endif
@endif @endif @if ($proceed == 1) @endif