{{__('defaultTheme.shipping')}} & {{__('defaultTheme.billing')}} {{__('common.address')}}

@php $items = 0; $existDigital = 0; $index = 0; $totalItem = 0; $subtotal = 0; $actualtotal = 0; $shippingtotal = 0; $empty_check = 0; $taxAmount = 0; $total_product = 0; foreach ($cartData as $data) { $empty_check += count($data); $items += count($data); foreach($data as $products){ foreach($products as $product){ $total_product += $product->qty; } } } $gstAmountTotal = 0; @endphp
{{__('common.total_items')}}({{$total_product}}) {{__('common.price')}} {{__('common.quantity')}} {{__('common.total_price')}}
@foreach($cartData as $key => $cartItems) @php $seller = App\Models\User::where('id',$key)->first(); @endphp @foreach($cartItems as $key => $cartItems) @php $addtional_charge = 0; foreach($cartItems as $item){ if ($item->product_type != 'gift_card') { $addtional_charge += $item->product->sku->additional_shipping; } } $index ++; $shippingtotal += $cartItems[0]->shippingMethod->cost + $addtional_charge; $package_wise_shipping_cost = $cartItems[0]->shippingMethod->cost + $addtional_charge; @endphp

{{__('common.package')}} {{$index}} {{__('common.of')}} {{$items}}

{{__('defaultTheme.shippied_by')}}:

@if($seller->role->type == 'seller') {{$seller->first_name .' '.$seller->last_name}} @else {{ app('general_setting')->company_name }} @endif

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

  • {{single_price($cartItems[0]->shippingMethod->cost)}}
  • @if($addtional_charge > 0)
  • {{__('defaultTheme.addtional_shipping_charge')}}: {{single_price($addtional_charge)}}
  • @endif
  • {{$cartItems[0]->shippingMethod->method_name}}
  • @php $shipment_time = $cartItems[0]->shippingMethod->shipment_time; $shipment_time = explode(" ", $shipment_time); $dayOrOur = $shipment_time[1]; $shipment_time = explode("-", $shipment_time[0]); $start_ = $shipment_time[0]; $end_ = $shipment_time[1]; $date = date('d-m-Y'); $start_date = date('d M', strtotime($date. '+ '.$start_.' '.$dayOrOur)); $end_date = date('d M', strtotime($date. '+ '.$end_.' '.$dayOrOur)); @endphp @if($dayOrOur == 'days' || $dayOrOur == 'Days' ||$dayOrOur == 'Day') {{__('Est arrival date')}}: {{$start_date}} - {{$end_date}} @elseif($dayOrOur == 'hrs' || $dayOrOur == 'Hrs') {{__('Est arrival time')}}: {{$cartItems[0]->shippingMethod->shipment_time}} @else @endif
@if (file_exists(base_path().'/Modules/GST/')) @if (count($customer->customerAddresses) > 0 && app('gst_config')['enable_gst'] == "gst")

{{__('gst.gst')}} ({{ __('gst.goods_and_services_tax') }})

    @if($seller->role->type == "admin") @if (app('general_setting')->state_id == $customer->customerAddresses->where('is_shipping_default', 1)->first()->state) @php $sameStateTaxes = \Modules\GST\Entities\GstTax::whereIn('id', app('gst_config')['within_a_single_state'])->get(); @endphp @foreach ($sameStateTaxes as $key => $sameStateTax) @php $gstAmount = $cartItems->sum('total_price') * $sameStateTax->tax_percentage / 100; $gstAmountTotal += $gstAmount; @endphp
  • {{ $sameStateTax->name }}({{ $sameStateTax->tax_percentage }} %) : {{ single_price($gstAmount) }}
  • @endforeach @else @php $diffStateTaxes = \Modules\GST\Entities\GstTax::whereIn('id', app('gst_config')['between_two_different_states_or_a_state_and_a_Union_Territory'])->get(); @endphp @foreach ($diffStateTaxes as $key => $diffStateTax) @php $gstAmount = $cartItems->sum('total_price') * $diffStateTax->tax_percentage / 100; $gstAmountTotal += $gstAmount; @endphp
  • {{ $diffStateTax->name }}({{ $diffStateTax->tax_percentage }} %) : {{ single_price($gstAmount) }}
  • @endforeach @endif @else @if ($seller->SellerBusinessInformation->business_state == $customer->customerAddresses->where('is_shipping_default', 1)->first()->state) @php $sameStateTaxes = \Modules\GST\Entities\GstTax::whereIn('id', app('gst_config')['within_a_single_state'])->get(); @endphp @foreach ($sameStateTaxes as $key => $sameStateTax) @php $gstAmount = $cartItems->sum('total_price') * $sameStateTax->tax_percentage / 100; $gstAmountTotal += $gstAmount; @endphp
  • {{ $sameStateTax->name }}({{ $sameStateTax->tax_percentage }} %) : {{ single_price($gstAmount) }}
  • @endforeach @else @php $diffStateTaxes = \Modules\GST\Entities\GstTax::whereIn('id', app('gst_config')['between_two_different_states_or_a_state_and_a_Union_Territory'])->get(); @endphp @foreach ($diffStateTaxes as $key => $diffStateTax) @php $gstAmount = $cartItems->sum('total_price') * $diffStateTax->tax_percentage / 100; $gstAmountTotal += $gstAmount; @endphp
  • {{ $diffStateTax->name }}({{ $diffStateTax->tax_percentage }} %) : {{ single_price($gstAmount) }}
  • @endforeach @endif @endif
@else

{{__('gst.gst')}} ({{ __('gst.flat_tax') }})

@php $flatTax = \Modules\GST\Entities\GstTax::where('id', app('gst_config')['flat_tax_id'])->first(); $gstAmount = $cartItems->sum('total_price') * $flatTax->tax_percentage / 100; $gstAmountTotal += $gstAmount; @endphp
  • {{ $flatTax->name }}({{ $flatTax->tax_percentage }} %) : {{ single_price($gstAmount) }}
@endif @endif
@php $packagewiseTax = 0; @endphp @foreach($cartItems as $key => $item) @if ($item->product_type == "gift_card") @php $seller_product_sku = \Modules\GiftCard\Entities\GiftCard::where('id',$item['product_id'])->first(); @endphp
#

{{$seller_product_sku->name}}

@php $product = \Modules\GiftCard\Entities\GiftCard::where('id',$item->product_id)->first(); $totalItem += $item->qty; $subtotal += $product->selling_price * $item->qty; $actualtotal += $item->total_price; @endphp
@if($product->hasDiscount()) @if($product->discount_type == 0) -{{$product->discount}}% @else -{{single_price($product->discount)}} @endif {{single_price($product->selling_price)}} @else {{single_price($product->selling_price)}} @endif

{{__('common.qty')}}: {{$item->qty}}

{{__('common.tax')}} : 0 %

{{__('defaultTheme.tax_amount')}} : {{single_price(0)}}

{{__('common.total')}}: {{single_price($item->total_price)}}

@else @if (@$item->product->product->product->is_physical == 0) @php $existDigital = 1; @endphp @endif
#

{{$item->product->product->product->product_name}}

@if($item->product->product->product->product_type == 2)

@php $countCombinatiion = count(@$item->product->product_variations); @endphp @foreach($item->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($countCombinatiion > $key +1) , @endif @endforeach

@endif
@php $taxAmount += tax_count($item->price, $item->product->product->tax, $item->product->product->tax_type) * $item->qty; $product = \Modules\Seller\Entities\SellerProductSKU::where('id',$item->product_id)->first(); $totalItem += $item->qty; $subtotal += $product->selling_price * $item->qty; $actualtotal += $item->total_price; @endphp
@if($product->product->hasDeal) @if($product->product->hasDeal->discount > 0) @if($product->product->hasDeal->discount_type == 0) -{{$product->product->hasDeal->discount}} % {{single_price($product->selling_price)}} @else -{{single_price($product->product->hasDeal->discount)}} {{single_price($product->selling_price)}} @endif @endif @else @if(@$product->product->hasDiscount == 'yes') @if($product->product->discount_type == 0) -{{$product->product->discount}} % {{single_price($product->selling_price)}} @else -{{single_price($product->product->discount)}} {{single_price($product->selling_price)}} @endif @else {{single_price($product->selling_price)}} @endif @endif

{{__('common.qty')}}: {{$item->qty}}

{{__('common.tax')}} : @if($item->product->product->tax_type == 0) {{$item->product->product->tax}} % @else {{single_price($item->product->product->tax)}} @endif

{{__('defaultTheme.tax_amount')}} : {{single_price(tax_count($item->price, $item->product->product->tax, $item->product->product->tax_type) * $item->qty)}}

@php $packagewiseTax += tax_count($item->price, $item->product->product->tax, $item->product->product->tax_type) * $item->qty; @endphp

{{__('common.total')}}: {{single_price($item->total_price)}}

@endif @endforeach
@endforeach @endforeach
@if(count($customer->customerAddresses)>0) @php $shipping_address = $customer->customerAddresses->where('is_shipping_default',1)->first(); $billing_address = $customer->customerAddresses->where('is_billing_default',1)->first(); @endphp

{{__('defaultTheme.shipping')}} & {{__('defaultTheme.billing')}} {{__('common.address')}}

{{$shipping_address->name}}

{{$shipping_address->address}}

@if($shipping_address->id == $billing_address->id)

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

@else

{{$billing_address->name}}

@endif
@if($shipping_address->id != $billing_address->id)

{{$billing_address->address}}

@endif

{{$shipping_address->email}}

{{$shipping_address->phone}}

@endif
@php $discounttotal = $subtotal - $actualtotal; $grandtotal = $subtotal + $shippingtotal - $discounttotal + $gstAmountTotal; $total_for_coupon = $subtotal - $discounttotal; $coupon = 0; $coupon_id = null; if(\Session::has('coupon_type')&&\Session::has('coupon_discount')){ $coupon_type = \Session::get('coupon_type'); $coupon_discount = \Session::get('coupon_discount'); $coupon_discount_type = \Session::get('coupon_discount_type'); $coupon_id = \Session::get('coupon_id'); if($coupon_type == 1){ $couponProducts = \Session::get('coupon_products'); if($coupon_discount_type == 0){ foreach($couponProducts as $key => $item){ $cart = \App\Models\Cart::where('user_id',auth()->user()->id)->where('is_select',1)->where('product_type', 'product')->whereHas('product',function($query) use($item){ $query->whereHas('product', function($q) use($item){ $q->where('id', $item); }); })->first(); $coupon += ($cart->total_price/100)* $coupon_discount; } }else{ if($total_for_coupon > $coupon_discount){ $coupon = $coupon_discount; }else { $coupon = $total_for_coupon; } } } elseif($coupon_type == 2){ if($coupon_discount_type == 0){ $maximum_discount = \Session::get('maximum_discount'); $coupon = ($total_for_coupon/100)* $coupon_discount; if($coupon > $maximum_discount && $maximum_discount > 0){ $coupon = $maximum_discount; } }else{ $coupon = $coupon_discount; } } elseif($coupon_type == 3){ $maximum_discount = \Session::get('maximum_discount'); $coupon = $shippingtotal; if($coupon > $maximum_discount && $maximum_discount > 0){ $coupon = $maximum_discount; } } } $discounttotal = $subtotal - $actualtotal; $grandtotal = $subtotal + $shippingtotal + $taxAmount - $discounttotal - $coupon + $gstAmountTotal; @endphp
  • {{__('common.items_count')}}

    {{$totalItem}}
  • {{__('common.subtotal')}}

    {{single_price($subtotal)}}
  • {{__('defaultTheme.shipping')}}

    {{single_price($shippingtotal)}}
  • @if(\Session::has('coupon_type')&&\Session::has('coupon_discount'))

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

    X -{{single_price($coupon)}} @else
    {{__('common.apply')}}
    @endif
  • {{__('common.discount')}}

    -{{single_price($subtotal - $actualtotal)}}
  • {{__('common.total')}} {{__('common.tax')}}

    {{single_price($taxAmount)}}
  • @if (file_exists(base_path().'/Modules/GST/'))
  • {{__('gst.total_gst')}}

    {{single_price($gstAmountTotal)}}
  • @endif
{{__('common.grand_total')}}
{{single_price($grandtotal)}}
{{__('common.continue')}} {{__('common.shopping')}} {{__('common.update')}} {{__('common.shopping')}} {{__('common.cart')}}

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

@php if ($giftCardExist == 0 && $existDigital == 0) { $paymentGateways = $gateway_activations; }else { $paymentGateways = $gateway_activations->whereNotIn('id',['1']); } @endphp @foreach ($paymentGateways as $key => $gateway) @endforeach
@if($gateway_activations->where('method', 'Wallet')->first())

{{__('common.wallet_balance')}}: {{ single_price(auth()->user()->CustomerCurrentWalletAmounts) }}

@endif
@include('frontend.default.partials.payments.demo') @include('frontend.default.partials.payments.bank_payment') @include('frontend.default.partials.payments.payment_paypal') @include('frontend.default.partials.payments.paystack_payment') @include('frontend.default.partials.payments.razor_payment') @include('frontend.default.partials.payments.stripe_payment') @include('frontend.default.partials.payments.paytm_payment') @include('frontend.default.partials.payments.instamojo_payment') @include('frontend.default.partials.payments.midtrans_payment') @include('frontend.default.partials.payments.payumoney_payment') @include('frontend.default.partials.payments.jazzcash_payment_modal') @include('frontend.default.partials.payments.google_pay_script') @include('frontend.default.partials.payments.flutter_payment')