@php($shippingMethod=getWebConfig(name: 'shipping_method'))
@php($subTotal=0)
@php($totalTax=0)
@php($totalShippingCost=0)
@php($orderWiseShippingDiscount=\App\Utils\CartManager::order_wise_shipping_discount())
@php($totalDiscountOnProduct=0)
@php($cart=\App\Utils\CartManager::get_cart(type: 'checked'))
@php($cartGroupIds=\App\Utils\CartManager::get_cart_group_ids())
@php($getShippingCost=\App\Utils\CartManager::get_shipping_cost(type: 'checked'))
@php($getShippingCostSavedForFreeDelivery=\App\Utils\CartManager::get_shipping_cost_saved_for_free_delivery(type: 'checked'))
@if($cart->count() > 0)
@foreach($cart as $key => $cartItem)
@php($subTotal+=$cartItem['price']*$cartItem['quantity'])
@php($totalTax+=$cartItem['tax_model']=='exclude' ? ($cartItem['tax']*$cartItem['quantity']):0)
@php($totalDiscountOnProduct+=$cartItem['discount']*$cartItem['quantity'])
@endforeach
@if(session()->missing('coupon_type') || session('coupon_type') !='free_delivery')
@php($totalShippingCost=$getShippingCost - $getShippingCostSavedForFreeDelivery)
@else
@php($totalShippingCost=$getShippingCost)
@endif
@endif
@php($totalSavedAmount = $totalDiscountOnProduct)
@if(session()->has('coupon_discount') && session('coupon_discount') > 0 && session('coupon_type') !='free_delivery')
@php($totalSavedAmount += session('coupon_discount'))
@endif
@if($getShippingCostSavedForFreeDelivery > 0)
@php($totalSavedAmount += $getShippingCostSavedForFreeDelivery)
@endif
@if($totalSavedAmount > 0)
{{translate('you_have_Saved')}}
{{ webCurrencyConverter(amount: $totalSavedAmount) }}!
@endif
{{translate('sub_total')}}
{{ webCurrencyConverter(amount: $subTotal) }}
{{translate('tax')}}
{{ webCurrencyConverter(amount: $totalTax) }}
{{translate('shipping')}}
{{ webCurrencyConverter(amount: $totalShippingCost) }}
{{translate('discount_on_product')}}
- {{ webCurrencyConverter(amount: $totalDiscountOnProduct) }}
@php($coupon_dis=0)
@if(auth('customer')->check())
@if(session()->has('coupon_discount'))
@php($couponDiscount = session()->has('coupon_discount')?session('coupon_discount'):0)
{{translate('coupon_discount')}}
- {{ webCurrencyConverter(amount: $couponDiscount) }}
@php($coupon_dis=session('coupon_discount'))
@else
@php($coupon_dis=0)
@endif
@endif
{{translate('total')}}
{{ webCurrencyConverter(amount: $subTotal+$totalTax+$totalShippingCost-$coupon_dis-$totalDiscountOnProduct-$orderWiseShippingDiscount) }}
@php($company_reliability = getWebConfig(name: 'company_reliability'))
@if($company_reliability != null)