@if(count($cartData) > 0) @foreach($cartData as $seller_id => $cartItems) @php $all_select_count = 0; $subtotal = 0; $discount = 0; $actual_price = 0; $shipping_cost = 0; $sellect_seller = 0; $selected_product_check = 0; @endphp @php $seller = App\Models\User::where('id',$seller_id)->first(); $select_count = count($cartItems); @endphp @foreach($cartItems as $m => $data) @php if($data->is_select == 1){ $select_count = $select_count - 1; $selected_product_check ++; }else{ $select_count = $select_count; } @endphp @endforeach
@if($free_shipping && !isModuleActive('MultiVendor'))
Shipping charge free from {{single_price($free_shipping->minimum_shopping)}}
@endif
{{__('common.products')}} {{__('common.price')}} {{__('common.quantity')}} {{__('common.subtotal')}}
@foreach($cartItems as $key => $cart) @if($cart->product_type == 'product') @if($cart->is_select == 1) @php $pro_price = 0; if (isModuleActive('WholeSale')){ $w_main_price = 0; $wholeSalePrices = $cart->product->wholeSalePrices; if($wholeSalePrices->count()){ foreach ($wholeSalePrices as $w_p){ if ( ($w_p->min_qty<=$cart->qty) && ($w_p->max_qty >=$cart->qty) ){ $w_main_price = $w_p->selling_price; } elseif($w_p->max_qty < $cart->qty){ $w_main_price = $w_p->selling_price; } } } if ($w_main_price!=0){ $subtotal += $w_main_price * $cart->qty; $pro_price = $w_main_price; }else{ $subtotal += $cart->product->selling_price * $cart->qty; $pro_price = $cart->product->selling_price; } }else{ $subtotal += $cart->product->selling_price * $cart->qty; $pro_price = $cart->product->selling_price; } @endphp @endif

{{ textLimit(@$cart->product->product->product_name, 22) }}

@if(@$cart->product->product->product->product_type == 2) @foreach(@$cart->product->product_variations as $key => $combination) @if(@$combination->attribute->id == 1) {{@$combination->attribute->name}}: {{@$combination->attribute_value->color->name}} @else {{@$combination->attribute->name}}: {{@$combination->attribute_value->value}} @endif @if($key < count(@$cart->product->product_variations)-1),@endif @endforeach @endif
@if($cart->product->product->hasDeal) @if($cart->product->product->hasDeal->discount > 0) @if($cart->product->product->hasDeal->discount_type == 0) -{{$cart->product->product->hasDeal->discount}}% {{single_price(isset($pro_price)?$pro_price:$cart->product->selling_price)}} @else -{{single_price($cart->product->product->hasDeal->discount)}} {{single_price(isset($pro_price)?$pro_price:$cart->product->selling_price)}} @endif @else {{single_price(isset($pro_price)?$pro_price:$cart->product->selling_price)}} @endif @else @if(@$cart->product->product->hasDiscount == 'yes') @if($cart->product->product->discount_type == 0) -{{$cart->product->product->discount}}% {{single_price(isset($pro_price)?$pro_price:$cart->product->selling_price)}} @else -{{single_price($cart->product->product->discount)}} {{single_price(isset($pro_price)?$pro_price:$cart->product->selling_price)}} @endif @else {{single_price(isset($pro_price)?$pro_price:$cart->product->selling_price)}} @endif @endif
@if(isModuleActive('WholeSale')) @endif
{{single_price($cart->total_price)}}
@else @if($cart->is_select == 1) @php $subtotal += $cart->giftCard->selling_price * $cart->qty; @endphp @endif
@if($cart->giftCard->hasDiscount()) @if($cart->giftCard->discount_type == 0) -{{$cart->giftCard->discount}}% @else -{{single_price($cart->giftCard->discount)}} @endif {{single_price($cart->giftCard->selling_price)}} @else {{single_price($cart->giftCard->selling_price)}} @endif
{{single_price($cart->total_price)}}
@endif @if($cart->is_select == 1) @php $actual_price += $cart->total_price; @endphp @endif @endforeach
@if(count($cartData) > 0) @endif
@php $grand_total = $actual_price; $discount = $subtotal -$actual_price; @endphp

{{__('common.order_summary')}}

{{ __('common.subtotal') }}

+ {{single_price($subtotal)}}

{{__('common.shipping_charge')}}

{{__('defaultTheme.calculated_at_next_step')}}

{{__('common.discount')}}

- {{single_price($discount)}}

{{__('common.vat/tax/gst')}}

{{__('defaultTheme.calculated_at_next_step')}}
{{__('common.total')}}
{{single_price($grand_total)}}
@endforeach @else
{{ __('defaultTheme.no_product_found') }}

{{__('common.order_summary')}}

{{ __('common.subtotal') }}

+ {{single_price(0)}}

{{__('common.shipping_charge')}}

{{__('defaultTheme.calculated_at_next_step')}}

{{__('common.discount')}}

- {{single_price(0)}}

{{__('common.vat/tax/gst')}}

{{__('defaultTheme.calculated_at_next_step')}}
{{__('common.total')}}
{{single_price(0)}}
@endif @include('frontend.default.partials._delete_modal_for_ajax',['item_name' => __('product.cart_product'),'modal_id' => 'deleteProductModalAll', 'form_id' => 'product_delete_form_all','delete_item_id' => 'delete_product_id_all','dataDeleteBtn' =>'productDeleteBtnAll'])