@extends('layout.app') @section('content')
@php $opening_timing = $resto_info['opening_timing']; $closing_timing = $resto_info['closing_timing']; $is_resto_opened = false; if(!empty($opening_timing) && !empty($closing_timing)){ // $opening_timing = "13:00"; $opening_timing = date('H:i', strtotime($opening_timing)); $closing_timing = date('H:i', strtotime($closing_timing)); $current_time = date('H:i'); if($current_time > $opening_timing && $current_time <= $closing_timing) $is_resto_opened = true; $opening_timing = strtotime($opening_timing); $closing_timing =strtotime($closing_timing); $tStart = $opening_timing; $tEnd = ($closing_timing); $tNow = $tStart; while($tNow <= $tEnd){ $now = date("H:i",$tNow); $tNow = strtotime('+15 minutes',$tNow); $time_slots[] = $now; } } @endphp

{{$resto_info['name']}}

{!! nl2br($resto_info['address']) !!}
@if(!empty($resto_info['delivery_time_range']))  {{ $resto_info['delivery_time_range'] }} @else No time available @endif
@if(!empty($resto_info['min_basket_price'])) {!! number_format($resto_info['min_basket_price'],2) !!} د. ع اقل قيمة للطلب @else No minimum basket @endif
{{--

Loyality Program

available
--}} {{--@if($resto_info['special_offers'] && count($resto_info['special_offers']))

{!! $resto_info['special_offers']['offer_title'] !!}

{!! $resto_info['special_offers']['offer_text'] !!}

@endif--}}
التوصيل الى
  • Select Location
  • (اقرب وقت)
@if(isset($categories) && count($categories)) @foreach($categories as $category)
{!! $category['name'] !!}

{!! count($category['recipes']) !!}

@if(isset($category['recipes']) && count($category['recipes']))
@foreach ($category['recipes'] as $key => $value)
@if(!$is_resto_opened)
@endif

{!! mb_substr($value['description'],0,50,'utf-8') !!}

{!! number_format(str_replace(',','',$value['price'] ),2) !!} د. ع

@endforeach
@endif @endforeach @endif

سلتي

@endsection @section('js') @endsection