{{translate('Summary')}}

{{ count($carts) }} {{translate('Items')}}
@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\Product::find($cartItem['product_id']); $subtotal += $cartItem['price'] * $cartItem['quantity']; $tax += $cartItem['tax'] * $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'] }} ৳ {{ ($cartItem['price']*$cartItem['quantity']) }}
@if (Session::has('club_point')) @endif @if ($carts->sum('discount') > 0) @endif @php $total = $subtotal+$tax+$shipping; if(Session::has('club_point')) { $total -= Session::get('club_point'); } if ($carts->sum('discount') > 0){ $total -= $carts->sum('discount'); } @endphp
{{translate('Subtotal')}} ৳ {{ ($subtotal) }}
{{translate('Tax')}} ৳ {{ ($tax) }}
{{translate('Total Shipping')}} ৳ {{ ($shipping) }}
{{translate('Redeem point')}} {{ (Session::get('club_point')) }}
{{translate('Coupon Discount')}} {{ ($carts->sum('discount')) }}
{{translate('Total')}} ৳ {{($total) }}