@php $shippingConfiguration = json_decode(site_settings('shipping_configuration')); $flatShippingRate = @$shippingConfiguration->standard_shipping_fee ?? 0; $reward_point_system = site_settings('club_point_system') == App\Enums\StatusEnum::true->status(); $reward_point_via = site_settings('reward_point_by',0); $rewardPointConfigurations = !is_array(site_settings('order_amount_based_reward_point',[])) ? json_decode(site_settings('order_amount_based_reward_point',[]),true) : []; $productWisePoint = 0; @endphp @if(auth()->user()&& $reward_point_system && $reward_point_via == App\Enums\StatusEnum::false->status()) @endif @if(@$shippingConfiguration->shipping_option == 'PRODUCT_CENTRIC') @endif @php $subTotal = 0; $shippingCharge = (@$shippingConfiguration->shipping_option == 'FLAT') ? $flatShippingRate : 0 ; if(@$shippingConfiguration->shipping_option == 'LOCATION_BASED'){ $shippingCharge = @$city->shipping_fee ?? 0; } if(@$shippingConfiguration->shipping_option == 'CARRIER_SPECIFIC'){ $shippingCharge = @$shippingDeliveryCharge ?? 0; } $discount = 0; $taxAmount = 0; @endphp @foreach($items as $data) @if(auth()->user() && $reward_point_system && $reward_point_via == App\Enums\StatusEnum::false->status()) @endif @if(@$shippingConfiguration->shipping_option == 'PRODUCT_CENTRIC') @php $shippingFees = $data->product->shipping_fee; if($data->product->shipping_fee_multiply == 1 )$shippingFees *=$data->quantity; @endphp @endif @php $productWisePoint += @$data->product->point ?? 0; $subTotal += (($data->original_price-$data->total_taxes )*$data->quantity); $discount += ($data->discount*$data->quantity); $taxAmount += ($data->total_taxes*$data->quantity); if(@$shippingConfiguration->shipping_option == 'PRODUCT_CENTRIC'){ $shippingCharge+=$shippingFees; } @endphp @endforeach
{{translate('Product')}} {{translate("Price")}} {{translate("Point")}} {{translate("Shipping")}}
{{$data->product->name}}

{{limit_words($data->product->name,2)}}

{{short_amount($data->price - $data->total_taxes)}} x {{$data->quantity}} ({{$data->attributes_value}})

{{short_amount(($data->price - $data->total_taxes)*$data->quantity)}}{{$data->product->point}}{{short_amount($shippingFees)}}
@php $subTotal = short_amount($subTotal,false,false); $discount = short_amount($discount,false,false); $taxAmount = short_amount($taxAmount,false,false); $shippingCharge = short_amount($shippingCharge,false,false); @endphp