@php $coupon_views = session()->get('coupon_views'); // dd($coupon_views); $tipsAmt = session()->get('tips_amount'); $return_div_message = false; $coupon_amount = 0; // dd($total_data_cart); if (session()->get('select_amt_wal')) { if ($coupon_views) { $coupon = \App\Models\Offer::Where('id', $coupon_views->id)->first(); if ($coupon->delivery_charge_status != 1) { if ($coupon->percentage != 0) { $coupon_amount = ((float) $total_data_cart / 100) * (float) $coupon->percentage; if ($coupon_amount > $coupon->maximum_discount_amount) { $coupon_amount = $coupon->maximum_discount_amount; } } elseif ($coupon->flat_amount != 0) { if ($total_data_cart >= $coupon->minimum_order_amount) { $coupon_amount = (float) $coupon->flat_amount; } else { $return_div_message = true; $returnmessage = 'Minimum Amount INR ' . $coupon->minimum_order_amount; } } } else { $coupon_amount = (float) $delivery_user_shop; // dd($coupon_amount); } } if ($coupon_views && $tipsAmt) { // if ($tipsAmt) { $tax_total = (($delivery_cgst + $delivery_sgst) / 100) * $total_data_cart; $total_sub = $total_data_cart + $delivery_user_shop + $tipsAmt + round($tax_total, 1) - $coupon_amount - session()->get('select_amt_wal'); // } else { // $total_sub = ($total_data_cart - $coupon_amount)-session()->get('select_amt_wal'); // $tax_total = (($delivery_cgst + $delivery_sgst) / 100) * $total_data_cart; // } } elseif ($tipsAmt) { // if ($tipsAmt) { $tax_total = (($delivery_cgst + $delivery_sgst) / 100) * $total_data_cart; $total_sub = $total_data_cart + $delivery_user_shop + round($tax_total, 1) + $tipsAmt - session()->get('select_amt_wal'); // } else { // $total_sub = $total_data_cart - session()->get('select_amt_wal'); // $tax_total = (($delivery_cgst + $delivery_sgst) / 100) * $total_data_cart; // } } elseif ($coupon_views) { $tax_total = (($delivery_cgst + $delivery_sgst) / 100) * $total_data_cart; $total_sub = $total_data_cart + $delivery_user_shop + round($tax_total, 1) - $coupon_amount - session()->get('select_amt_wal'); } else { $tax_total = (($delivery_cgst + $delivery_sgst) / 100) * $total_data_cart; $total_sub = $total_data_cart + $delivery_user_shop + round($tax_total, 1) - session()->get('select_amt_wal'); } // dd(); } else { if ($coupon_views) { $coupon = \App\Models\Offer::Where('id', $coupon_views->id)->first(); if ($coupon->delivery_charge_status != 1) { if ($coupon->percentage != 0) { $coupon_amount = ((float) $total_data_cart / 100) * (float) $coupon->percentage; if ($coupon_amount > $coupon->maximum_discount_amount) { $coupon_amount = $coupon->maximum_discount_amount; } } elseif ($coupon->flat_amount != 0) { if ($total_data_cart >= $coupon->minimum_order_amount) { $coupon_amount = (float) $coupon->flat_amount; } else { $return_div_message = true; $returnmessage = 'Minimum Amount INR ' . $coupon->minimum_order_amount; } } } else { $coupon_amount = (float) $delivery_user_shop; } } if ($coupon_views) { if ($tipsAmt) { $tax_total = (($delivery_cgst + $delivery_sgst) / 100) * $total_data_cart; // dd($tax_total); $total_sub = $total_data_cart + $delivery_user_shop + round($tax_total, 1) + $tipsAmt - $coupon_amount; } else { $tax_total = (($delivery_cgst + $delivery_sgst) / 100) * $total_data_cart; // dd($tax_total); $total_sub = $total_data_cart + $delivery_user_shop + round($tax_total, 1) - $coupon_amount; } } else { if ($tipsAmt) { $tax_total = (($delivery_cgst + $delivery_sgst) / 100) * $total_data_cart; // dd($tax_total); $total_sub = $total_data_cart + $delivery_user_shop + round($tax_total, 1) + $tipsAmt; } else { $tax_total = (($delivery_cgst + $delivery_sgst) / 100) * $total_data_cart; // dd($tax_total); $total_sub = $total_data_cart + $delivery_user_shop + round($tax_total, 1); } } // dd($total_sub); } session()->put('coupon_amount', $coupon_amount); // dd($delivery_json); // dd(session()->get('coupon_amount')); @endphp
@if(count($coupon_data_shop_view) > 0)
Choose a Coupon
@endif

Delivery address

@foreach ($user_address as $list)
{!! $list->name == '' ? 'Home' : $list->name !!}

{{ $list->address }},
{{ $list->city }}-{{ $list->pincode }},

@endforeach

Delivery Instructions

Instruction For Shop
Instruction For Delivery Partner
@if ($ins_for_shop || $ins_for_partner)
@if (session()->get('delivery_shop_ins') || session()->get('delivery_shop_partner')) @endif
@endif
osahanshop_banner_image }}">
{{ $kitchen_id->name }}

{{ $kitchen_id->address }}

@if (session()->get('preorderseledate'))
{{--
Delivery Date -
--}}
{{ Carbon\Carbon::createFromFormat('d/m/Y', session()->get('preorderseledate'))->format('M j, Y') }}   {{ session()->get('timeslotpre') }}
{{--
Delivery Type - {{session()->get('delivery_type')}}
--}}
@endif
@foreach ($cartItems as $key => $list) @php // $variation_mrp = \App\Models\Variation::where('item_id', $data->item_id)->first(); $category_item = \App\Models\CartItemAdd::where('user_id', $_SERVER['REMOTE_ADDR']) ->where('restaurant_id', session()->get('kitchen_id')) ->where('item_id', $list->item_id) ->get(); $sel_item = \App\Models\Item::where('id', $list->item_id)->first(); @endphp
@csrf

{{ $list->quantity * $list->price }}  

{{-- --}}

{{ $list->item_name }}

@if (count($category_item) > 0) @foreach ($category_item as $key => $category_list) @php $addonsel_item = \App\Models\Item::where('id', $category_list->addon_id)->first(); @endphp @if ($addonsel_item)
    

  ₹ {{ $list->quantity * $category_list->add_onn_price }}

{{-- {{ $list->quantity }} --}} {{-- --}} {{-- --}} {{-- --}}

{{ $category_list->addon_item_name }}

@else @endif @endforeach @endif @endforeach

Home Chef Tips

If you like the food sent by our home chef you can show your appreciation by tipping them right after you taste food

Add Your Amount @foreach ($tips_list as $key => $value) @endforeach
@if (session()->get('no_contact_delivery') == '1') Opt in for No-Contact Delivery @else Opt in for No-Contact Delivery @endif
@if (session()->get('no_contact_delivery') == '1') Our Delivery person will call you or ring your doorbell. Once the order is placed at your door.(Not Applicable for COD) @else Our Delivery person will call you to confirm.Please ensure that your address has all the required details @endif

Item Total ₹{{ $total_data_cart }}

CGST and SGST ({{ $delivery_cgst }}% + {{ $delivery_sgst }}% ) ₹{{ round($tax_total, 1) }}

Delivery Fee {{-- --}} ₹{{ $delivery_user_shop }}

@if (session()->get('self_pick') == '2')

Service Self Pick Up

@endif @if ($coupon_views)

Coupon Discount ({{ $coupon_views->coupon_code }}) (-) ₹ {{ $coupon_amount }} X

@if ($return_div_message == true)

Minimum Amount INR {{ $coupon->minimum_order_amount }}

@endif @else

Coupon Discount ₹ 0

@endif @if (session()->get('select_amt_wal'))

Wallet Amount X (-)₹ {{ session()->get('select_amt_wal') }}

@endif
@if (session()->get('tips_amount'))

Home Chef Tips  X (+)₹ {{ session()->get('tips_amount') }}


@endif
TO PAY ₹{{ $total_sub }}
@if ($coupon_views)

You have saved ₹ {{ $coupon_amount }} on this order

@else @endif
Payment Method
@if ($user->wallet > 0) {{--
--}}
Wallet - ₹ {{ $user->wallet }}
{{--
--}} @else @endif
{{-- --}}
@include('modals.frontend.restaurant.confirm_cash') @if ($return_div_message == true)

Minimum Amount INR {{ $coupon->minimum_order_amount }}, Kindly Remove

@else @endif
{{-- --}}
{{--
Change Address

   

   

ADD NEW ADDRESS



--}}
{{-- --}} {{-- --}}