@php use Illuminate\Support\Facades\Redis; @endphp @if (!empty($shop_de))
{{ $shop_de['shop_name'] }}
{{ $shop_de['shop_for_two'] }} for two

{{ $shop_de['shop_message'] }}

{{ $shop_de['shop_address'] }}

{{ $shop_de['shop_preparation_time'] }}

{{-- Mobile View --}}
{{ $shop_de['shop_name'] }}
{{ $shop_de['shop_for_two'] }} for two

{{ $shop_de['shop_preparation_time'] }}

@endif {{--
@foreach ($shop as $coupon)
@if ($coupon['flat_amount'] != 0)
Flat ₹{{ $coupon['flat_amount'] }} OFF
@else
{{ $coupon['percentage'] }}% OFF
@endif

{{ $coupon['coupon_code'] }}

@endforeach
--}}
Looking for '{{ $cuisine_name }}'
@if (count($cuisine_items_list) > 0)
@foreach ($cuisine_items_list as $item) @php $shop = App\Models\AdminUser::Where('id', $item['shop_id'])->first(); $kitchen_De = App\Models\KitchenDetail::Where('id', $shop->kitchen_detail_id)->first(); $days = getday($shop->kitchen_detail_id); if ($days != null) { $currentTime = Carbon\Carbon::now('Asia/Kolkata'); $open_time = $days->start_time; $close_time = $days->close_time; $carbonTime_open = Carbon\Carbon::createFromFormat('H:i', $open_time); $formattedTime_open = $carbonTime_open->format('h:i A'); $carbonTime_close = Carbon\Carbon::createFromFormat('H:i', $close_time); $formattedTime_close = $carbonTime_close->format('h:i A'); if ($kitchen_De->shero_home_status == 1) { if ($currentTime->between($formattedTime_open, $formattedTime_close)) { $shop_status = 1; } else { $shop_status = 0; } } else { $shop_status = 0; } } else { $shop_status = 0; } @endphp
@if ($shop_status == '1') @if ($item['product_status'] == 1) @if (in_array($item['product_id'], $addedItems))
{{ isset($cartCheck[$item['product_id']]) ? $cartCheck[$item['product_id']]['quantity'] : 0 }}
@else
Add
@endif @else
{{ $item['product_message'] }}
@endif @endif
{{ $item['product_name'] }}

{{ $item['product_description'] }}

 {{ number_format($item['product_price'][0]['product_price'], 2) }}
@if ($item['product_type'] == '1')
Veg
@else
NonVeg
@endif
@endforeach
@else
No Items Found
@endif
{{-- @if ($orderType != 'preorder') @else @endif --}} @php $pre_order_count = App\Models\AppSetting::where('key', 'pre_order_days_count')->first(); $pre_order_count_value = $pre_order_count->value; $current_date = date('Y-m-d'); $max_date = date( 'Y-m-d', strtotime($current_date . ' + ' . $pre_order_count_value . ' days'), ); $kitchen_detail = App\Models\KitchenDetail::Where('id', $get_single_shop_id)->first(); @endphp @if ($kitchen_detail->pre_order_status == '1') Order for the Later Date
@endif
@php $kitchen_categories = App\Models\CategoryKitchenStatus::Where([ ['kitchen_detail_id', $get_single_shop_id], ['status', '1'], ])->pluck('category_id'); $categories = App\Models\Category::WhereIn('id', $kitchen_categories)->get(); @endphp
@foreach ($categories as $key => $category)
{{ $category->name }}
@endforeach
@if (count($items_list) > 0) @else
No Items Found
@endif

Delivery Date - {{ $selectedDate }}

{{--

Your Order

--}} {{--

Choose Order Type

@if ($kitchen_detail->pre_order_status == '1') @endif
--}} {{--

Choose Delivery Type

--}} {{-- @if (Auth::guard('web_user')->check()) @php $address_count = App\Models\UserAddress::Where('user_id',Auth::guard('web_user')->user()->id)->get(); @endphp @if (count($address_count) == 0)
@else
@foreach ($address_count as $address) {{$address->address }} @endforeach
@endif @else @endif --}} @include('modals.frontend.item.delete') @if (count($cartItems) > 0) @php $shop = App\Models\AdminUser::Where( 'kitchen_detail_id', $get_single_shop_id, )->first(); $shop_id = $shop->id; @endphp @php foreach ($cartItems as $key => $value) { if ($value['shop_id']) { $cart_shop_id = $value['shop_id']; } else { $cart_shop_id = $shop_id; } } @endphp @if ($cart_shop_id == $shop_id) @foreach ($cartItems as $key => $cartitem)

{{ $cartitem['product_name'] }}
{{ $cartitem['category']['category_name'] }}

 {{ number_format($cartitem['product_price'][0]['product_price'], 2) }}

Veg
{{ $cartitem['quantity'] }}
@endforeach @else
No Items Added
@endif @else
No Items Added
@endif @if (count($cartItems) > 0) @php $shop = App\Models\AdminUser::Where( 'kitchen_detail_id', $get_single_shop_id, )->first(); $shop_id = $shop->id; @endphp @php foreach ($cartItems as $key => $value) { if ($value['shop_id']) { $cart_shop_id = $value['shop_id']; } else { $cart_shop_id = $shop_id; } } @endphp @if ($cart_shop_id == $shop_id)
Subtotal:

@php $sub = array_sum( array_map(function ($item) { return $item['product_price'][0]['product_price'] * $item['quantity']; }, $cartItems), ); @endphp ₹ {{ number_format($sub, 2) }}

Extra Charges may Apply

@else
Subtotal:

₹0.00

Extra Charges may Apply

@endif @else
Subtotal:

₹0.00

Extra Charges may Apply

@endif @if (count($cartItems) > 0) @php $shop = App\Models\AdminUser::Where( 'kitchen_detail_id', $get_single_shop_id, )->first(); $shop_id = $shop->id; @endphp @php foreach ($cartItems as $key => $value) { if ($value['shop_id']) { $cart_shop_id = $value['shop_id']; } else { $cart_shop_id = $shop_id; } } @endphp @if ($cart_shop_id == $shop_id)
@endif @endif
{{-- --}}
@push('js') @endpush