Select Image
@if ($select_kit == 'kitchens') @if (count($kitchen_list) > 0) @foreach ($kitchen_list as $kitchen) @php $days = getday($kitchen->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->shero_home_status == '1') { if ( $currentTime->between( $formattedTime_open, $formattedTime_close, ) ) { $shop_status = 1; $shop_message = 'Available'; } else { $shop_status = 0; $shop_message = 'Shop opens at ' . $formattedTime_open; } } else { $shop_status = 0; $shop_message = 'Shop Closed'; } } else { $shop_status = 0; $shop_message = 'Shop Closed'; } @endphp @if ($shop_status == '1')
...
@if (Auth::guard('web_user')->check()) @php $admin = App\Models\AdminUser::Where( 'kitchen_detail_id', $kitchen->id, )->first(); $fav = App\Models\Favourite::Where([ ['kitchen_id', $admin->id], [ 'user_id', Auth::guard('web_user')->user()->id, ], ])->first(); if ($fav != null) { if ($fav->status == '1') { $is_fav = 1; } else { $is_fav = 0; } } else { $is_fav = 0; } @endphp @if ($is_fav == 0) @else @endif @endif
{{ $kitchen->name }}

@php $admin = App\Models\AdminUser::Where( 'kitchen_detail_id', $kitchen->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->zone->name }}

.

{{ round($kitchen->distance, 2) }} km

{{ $kitchen->brand->name }} food

@if (count($kitchen->offer) > 0) @foreach ($kitchen->offer as $offer) @php if ( $offer->offer_code ->delivery_charge_status == 1 ) { $st[] = $offer->offer_code; } else { $st = []; } @endphp @endforeach @if (count($st) > 0)
FREE DELIVERY
@endif @endif
@endif @endforeach @foreach ($kitchen_list as $kitchen) @php $days = getday($kitchen->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->shero_home_status == '1') { if ( $currentTime->between( $formattedTime_open, $formattedTime_close, ) ) { $shop_status = 1; $shop_message = 'Available'; } else { $shop_status = 0; $shop_message = 'Shop opens at ' . $formattedTime_open; } } else { $shop_status = 0; $shop_message = 'Shop Closed'; } } else { $shop_status = 0; $shop_message = 'Shop Closed'; } @endphp @if ($shop_status == '0')
...
@if (Auth::guard('web_user')->check()) @php $admin = App\Models\AdminUser::Where( 'kitchen_detail_id', $kitchen->id, )->first(); $fav = App\Models\Favourite::Where([ ['kitchen_id', $admin->id], [ 'user_id', Auth::guard('web_user')->user()->id, ], ])->first(); if ($fav != null) { if ($fav->status == '1') { $is_fav = 1; } else { $is_fav = 0; } } else { $is_fav = 0; } @endphp @if ($is_fav == 0) @else @endif @endif
{{ $kitchen->name }}

@php $admin = App\Models\AdminUser::Where( 'kitchen_detail_id', $kitchen->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->zone->name }}

.

{{ round($kitchen->distance, 2) }} km

{{ $kitchen->brand->name }} food

@if (count($kitchen->offer) > 0) @foreach ($kitchen->offer as $offer) @php if ( $offer->offer_code ->delivery_charge_status == 1 ) { $st[] = $offer->offer_code; } else { $st = []; } @endphp @endforeach @if (count($st) > 0)
FREE DELIVERY
@endif @endif
@endif @endforeach @else
No Kitchen Found
@endif @else @if (count($items_list) > 0) @foreach ($items_list as $it) @foreach ($it as $item) @php // $shop = App\Models\AdminUser::Where('kitchen_detail_id',$item->kitchen_detail_id)->first(); $shop_id = $item['shop_id']; $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; } $time = Carbon\Carbon::now('Asia/Kolkata'); if ( $item['category']['category_status'] == 1 && $item['status'] == 1 ) { $item_timing = App\Models\ItemTiming::Where( 'item_id', $item['product_id'], )->get(); if (count($item_timing) > 0) { $start = []; $end = []; foreach ($item_timing as $va) { $start = $va->slap_time->time->start_time; $end = $va->slap_time->time->end_time; if ($time->between($start, $end)) { $message = 'Available'; $product_status = 1; } else { if (Carbon::now()->format('H:i ') > $start) { $message = 'Available at Tomorrow' . ' ' . date('h:i A', strtotime($start)); $product_status = 0; } else { $message = 'Available at' . ' ' . date('h:i A', strtotime($start)); $product_status = 0; } } } } else { $message = 'Not Available'; $product_status = 0; } } else { $message = 'Not Available'; $product_status = 0; } @endphp
@if ($shop_status == 1) @if ($product_status == 1) @php $isAddedShop = in_array($shop_id, $addedshop); $isAddedItem = in_array( $item['product_id'], $addedItems, ); $cartItem = $cartCheck[$item['product_id']] ?? null; @endphp @if ($isAddedShop) @if ($isAddedItem) @if (isset($cartItem) && $cartItem['quantity'] > 0)
{{ $cartItem['quantity'] }}
@else
Add
@endif @else
Add
@endif @else
Add
@endif @else
{{ $message }}
@endif @endif
{{ $item['product_name'] }}
{{ $item['kitchen_details_name'] }} - {{ $item['skid'] }}

{{ $item['description'] }}

₹{{ $item['item_mrp'] }}
@if ($item['food_type'] == 'Veg')
Veg
@else
NonVeg
@endif
@endforeach @endforeach @else @if (count($cuisines) > 0)

Dishes on your mind

@foreach ($cuisines as $cuisine) @php $encodedCuisineData = base64_encode( json_encode($cuisine->id), ); @endphp @endforeach
@else
No Item Found
{{--
@foreach ($cuisines as $cuisine) @php $encodedCuisineData = base64_encode( json_encode($cuisine->id), ); @endphp @endforeach --}} {{--
--}}
@endif
@endif @endif
@push('js') @endpush