{{ translate('Summary') }}

{{ count($carts) }} {{ translate('Items') }} @php $coupon_discount = 0; @endphp @if (Auth::check() && get_setting('coupon_system') == 1) @php $coupon_code = null; @endphp @foreach ($carts as $key => $cartItem) @php $product = \App\Models\Product::find($cartItem['product_id']); @endphp @if ($cartItem->coupon_applied == 1) @php $coupon_code = $cartItem->coupon_code; break; @endphp @endif @endforeach @php $coupon_discount = carts_coupon_discount($coupon_code); @endphp @endif @php $subtotal_for_min_order_amount = 0; @endphp @foreach ($carts as $key => $cartItem) @php $subtotal_for_min_order_amount += cart_product_price($cartItem, $cartItem->product, false, false) * $cartItem['quantity']; @endphp @endforeach @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
@if (addon_is_activated('club_point')) @php $total_point = 0; @endphp @foreach ($carts as $key => $cartItem) @php $product = \App\Models\Product::find($cartItem['product_id']); $total_point += $product->earn_point * $cartItem['quantity']; @endphp @endforeach
{{ translate('Total Club point') }}: {{ $total_point }}
@endif @php $subtotal = 0; $tax = 0; $shipping = 0; $product_shipping_cost = 0; $shipping_region = $shipping_info['city']; @endphp @foreach ($carts as $key => $cartItem) @php $product = \App\Models\Product::find($cartItem['product_id']); $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; $product_name_with_choice = $product->getTranslation('name'); if ($cartItem['variant'] != null) { $product_name_with_choice = $product->getTranslation('name') . ' - ' . $cartItem['variant']; } @endphp @endforeach
{{ translate('Product') }} {{ translate('Total') }}
{{ $product_name_with_choice }} × {{ $cartItem['quantity'] }} {{ single_price(cart_product_price($cartItem, $cartItem->product, false, false) * $cartItem['quantity']) }}
@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') }} {{ 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 (addon_is_activated('club_point')) @if (Session::has('club_point'))
@csrf
{{ Session::get('club_point') }}
@endif @endif @if (Auth::check() && get_setting('coupon_system') == 1) @if ($coupon_discount > 0 && $coupon_code)
@csrf
{{ $coupon_code }}
@else
@csrf
@endif @endif