@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
{{ translate('Product') }} |
{{ translate('Total') }} |
@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
{{ $product_name_with_choice }}
× {{ $cartItem['quantity'] }}
|
{{ single_price(cart_product_price($cartItem, $cartItem->product, false, false) * $cartItem['quantity']) }}
|
@endforeach
{{ translate('Subtotal') }} |
{{ single_price($subtotal) }}
|
{{ translate('Tax') }} |
{{ single_price($tax) }}
|
{{ translate('Total Shipping') }} |
{{ single_price($shipping) }}
|
@if (Session::has('club_point'))
{{ translate('Redeem point') }} |
{{ single_price(Session::get('club_point')) }}
|
@endif
@if ($coupon_discount > 0)
{{ translate('Coupon Discount') }} |
{{ single_price($coupon_discount) }}
|
@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('Total') }} |
{{ single_price($total) }}
|
@if (addon_is_activated('club_point'))
@if (Session::has('club_point'))
@endif
@endif
@if (Auth::check() && get_setting('coupon_system') == 1)
@if ($coupon_discount > 0 && $coupon_code)
@else
@endif
@endif