@if (count($cartItems) > 0)
@if (Auth::guard('web_user')->check() && !empty($cartItems) && $kitchen_details != null)
@if ($deliveryType == 'door')
@php if (Auth::guard('web_user')->check()) { $address = App\Models\UserAddress::Where( 'user_id', Auth::guard('web_user')->user()->id, )->get(); } else { $address = []; } @endphp @if (Auth::guard('web_user')->check()) @if ($address_select == false) @if (count($address) > 0)

Select Delivery Address

@foreach ($address as $key => $list)
{{ $list->name }}

{{ $list->address }} ,{{ $list->user_alternate_number }}

@endforeach
{{-- mobile --}}
@foreach ($address as $key => $list)
{{ $list->name }}

{{ $list->address }} ,{{ $list->user_alternate_number }}

@endforeach
@else @endif @else @if ($delivery_Details)

Delivery Address

{{ $added_address->address }},{{ $added_address->user_alternate_number }}
Change Address
@else
{{ $errorMessage }}
Change Address
@endif @endif
@else

Pickup Address

@if ($kitchen_details != null)
{{ $kitchen_details->address }},{{ $kitchen_details->phone_number }}
@endif
@endif @endif
@endif @if (!empty($delivery_Details) && !empty($cartItems))
@php $payment_method_check1 = App\Models\PaymentGateway::Where('id', '1')->first(); $payment_method_check2 = App\Models\PaymentGateway::Where('id', '2')->first(); @endphp

Select Payment Method

@if ($grandTotal != 0) @if ($payment_method_check1->status == '1')
@elseif($payment_method_check2->status == '1')
@endif @endif
@if ($paymentType != null) @elseif($paymentType == null && $wallet != null && $grandTotal == 0) @endif
@endif
@if (count($cartItems) > 0) @php foreach ($cartItems as $key => $car) { $shop_id = $car['shop_id']; } $kitchen = App\Models\AdminUser::Where('id', $shop_id)->first(); $kitchen_det = App\Models\KitchenDetail::Where('id', $kitchen->kitchen_detail_id)->first(); @endphp

{{ $kitchen_det->name }}

{{--
@php $admin = App\Models\AdminUser::Where( 'kitchen_detail_id', $kitchen_det->id, )->first(); $pluck_order_id = App\Models\Order::where('kitchen_id', $admin->id)->pluck( 'id', ); $order_rating_sum = App\Models\OrderRating::whereIn( 'order_id', $pluck_order_id, )->sum('rating_value'); if ($order_rating_sum != null) { $order_rating_count = App\Models\OrderRating::whereIn( 'order_id', $pluck_order_id, )->count(); if ($order_rating_count != 0) { $rating = $order_rating_sum / $order_rating_count; $rating_count = $order_rating_count; } else { $rating = 0; $rating_count = 0; } $shop_rating = round($rating, 1); $rating_count = $rating_count; } else { $rating = 0; $rating_count = 0; $shop_rating = round($rating, 1); $rating_count = $rating_count; } @endphp    @if ($shop_rating != 0)

{{ $shop_rating }}({{ $rating_count }}+)

@endif
--}}
{{ $kitchen_det->shop_for_two }}for two
Available
{{ $kitchen_det->default_eta_time }}
@endif

Delivery Date: {{ $delivery_date ? null : Carbon\Carbon::today()->format('M d ,Y') }}

@include('modals.frontend.item.delete')
@if (count($cartItems) > 0)
{{--
--}}
Items List+ Add More
{{--
--}} {{--
+ Add More
--}} @foreach ($cartItems as $key => $cartitem)
{{ $cartitem['product_name'] }}
{{ $cartitem['category']['category_name'] }}
{{--
1 Nos
--}}
@php @endphp
{{ $cartitem['quantity'] }}

₹  {{ number_format($cartitem['product_price'][0]['product_price'] * $cartitem['quantity'], 1) }}

@endforeach @if (count($cartItems) > 0) @php foreach ($cartItems as $key => $car) { $shop_id = $car['shop_id']; } $kitchen = App\Models\AdminUser::Where('id', $shop_id)->first(); $kitchen_det = App\Models\KitchenDetail::Where( 'id', $kitchen->kitchen_detail_id, )->first(); @endphp @endif
@endif @if (!empty($delivery_Details))

Promo Code

@if ($appliedCouponName) {{ $appliedCouponName }} @else APPLY COUPON @endif

@if ($appliedCouponName)
@else @endif
@endif {{--

Choose Order Type

--}} @if (!empty($delivery_Details))

Cooking Instructions

Delivery Instructions

@include('modals.frontend.cart.add_tip_amount')

Tip to Home Chef!

if you like the food sent by our home chef you can show your apprieciation by tipping them right after you taste the food,
@if (count($chef_tips) > 0) @foreach ($chef_tips as $tip)
{{ $tip->tip_amount }}
@endforeach @endif
...
@endif @if (!empty($delivery_Details))
@if (Auth::guard('web_user')->check())
You have {{ number_format(Auth::guard('web_user')->user()->wallet, 2) }} in wallet
@else
You have 0.00 in wallet
@endif
@if (Auth::guard('web_user')->check()) @if (Auth::guard('web_user')->user()->wallet != '0')
Pay from Wallet
@endif @endif
{{-- --}}
@endif

Invoice Details

Item ( s ) Total
{{ number_format($item_total, 2) }}
Delivery Partner Fee

This fee goes to towards...

@if ($deliveryCharge)
{{ number_format($deliveryCharge, 2) }}
@else
0.00
@endif
Packing Fee
@if ($packingCharge)
{{ number_format($packingCharge, 2) }}
@else
0.00
@endif
@if ($couponAmount != 0)
Coupon Fee @if ($appliedCouponName) ({{ $appliedCouponName }}) @endif
@if ($couponAmount)
(-) {{ number_format($couponAmount, 2) }}
@else
0.00
@endif
@endif @if ($wallet != 0)
Wallet
@if ($wallet)
(-) {{ number_format($wallet, 2) }}
@else
0.00
@endif
@endif
Home Chef Tips
{{ number_format($tipAmount, 2) }}
@php $c = App\Models\Tax::Where('id', '1')->first(); $s = App\Models\Tax::Where('id', '2')->first(); if ($c) { $cgst_per = $c->percentage; } else { $cgst_per = ''; } if ($s) { $sgst_per = $c->percentage; } else { $sgst_per = ''; } @endphp

Tax Details

CGST {{ $cgst_per }}%
@if ($cgst)
{{ number_format($cgst, 2) }}
@else
0.00
@endif
SGST {{ $sgst_per }}%
@if ($sgst)
{{ number_format($cgst, 2) }}
@else
0.00
@endif
Grand Total
{{ number_format($grandTotal, 2) }}
@php $refund_policy = App\Models\AppSetting::Where('key', 'refund_policy')->first(); @endphp
@if (Auth::guard('web_user')->check()) {{--

Welcome

{{ Auth::guard('web_user')->user()->name }}
{{ Auth::guard('web_user')->user()->mobile_number }}
--}} @else @endif
{{-- --}}
@if (!empty($delivery_Details) && !empty($cartItems)) @endif
@else
Your cart is empty!

Ready to order some delicious home-cooked meals? Browse our menu and add your favorites to get started!

@endif
@push('js') @php if (Auth::guard('web_user')->check()) { $name = Auth::guard('web_user')->user()->name; $mobile_number = Auth::guard('web_user')->user()->mobile_number; $email = Auth::guard('web_user')->user()->email; } @endphp @endpush