@extends('layouts.app') @section('content') @php $resto = \App\Models\Restaurants::find(\App\Helpers\CommonMethods::getRestuarantID()); $lang = $resto->default_lang; app()->setLocale($lang); if(session('app_lang') !==null){ $lang = session('app_lang'); app()->setLocale($lang); } $restuarant1 =$resto; $resto_meta = isset($restuarant1->resto_metas)?$restuarant1->resto_metas:null; //dump($resto_meta); $resto_metas = []; $billing = []; if(isset($resto_meta)){ foreach($resto_meta as $meta){ if($meta->outlet_id!=""){ continue; } $index_name = isset($meta->resto_meta_defs->parents)?$meta->resto_meta_defs->parents->meta_def_name:$meta->resto_meta_defs->meta_def_name; // dump($meta->resto_meta_defs); if($index_name=="BILLING_GATEWAY"){ // dump($meta->resto_meta_defs->meta_def_name); // $resto_metas['BILLING_GATEWAY'][] = $meta->meta_val; $billing[] = array('id'=>$meta->meta_id,'value'=>$meta->meta_val); } $resto_metas[$index_name] = $meta->meta_val; } } $resto_metas['BILLING_GATEWAY'] = $billing; $currency = isset($resto_metas['BUSSINESS_CCY'])?$resto_metas['BUSSINESS_CCY']:"IQD"; $business_type = isset($resto_metas['BUSSINESS_TYPE'])?$resto_metas['BUSSINESS_TYPE']:"Restaurants"; $is_allow_print_preview = isset($resto_metas['PRINT_PREVIEW_ON_ACCEPT_ORDER'])?$resto_metas['PRINT_PREVIEW_ON_ACCEPT_ORDER']:"Disabled"; $imgix = isset($resto_metas['IMGIX_SOURCE'])?$resto_metas['IMGIX_SOURCE'].'/':"https://meemappaws.imgix.net"; $allow_pre_order = isset($resto_metas['ALLOW_PRE_ORDERS'])?$resto_metas['ALLOW_PRE_ORDERS']:"No"; @endphp

{{__('label.items')}}

Sorting Enabled?
{{--
--}} {{-- --}} {{--
--}}
@if(isset($categories) && $categories->count() > 0) @foreach($categories as $k=>$category)
{{--

--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- @if( $allow_pre_order=="Yes")--}} {{--
--}} {{-- allow_pre_order=="Yes") checked @endif style="position: inherit; left: 0; opacity: 1; margin: 0 10px" id="allow_pre_order{!! $category->id !!}" name="allow_pre_order_category[]" class="allow_pre_order_category" value="{!! $category->id !!}" type="checkbox" />{{__('label.allow_pre_order')}}?--}} {{--
--}} {{-- @endif--}} {{--
--}} {{--
--}} {{--

--}}

@if(isset($category->categories_has_recipes) && $category->categories_has_recipes->count() > 0)
    @foreach($category->categories_has_recipes as $item) @php $categories = isset($item->categories)?$item->categories->pluck('category_id'):NULL; $row_id = $item->id.'-'.(isset($categories[0])?$categories[0]:0); @endphp
  • @php $img = isset($item->main_images)?$item->main_images->file_name:env('APP_ASSETS').'img/user/1.png'; $img = str_replace(env('AWS_URL'),$imgix,$img).'?fm=webp&h=60&w=60&q=50&fit=center&crop=center'; @endphp {!! $item->name !!}

    {!! $item->name !!} @if(!empty($item->arabic_name)) ( {!! $item->arabic_name !!} ) @endif

    ( {!! number_format($item->price,2) !!} )

    {!! ($item->status==1)? 'Status: '.__('label.active').' ':'Status: '.__('label.deactive').' ' !!} {!! $item->is_customized?'Customizable: '.__('label.yes').'':'Customizable: '.__('label.no').'' !!}

    @if( $allow_pre_order=="Yes")
    allow_pre_order=="Yes") checked @endif style="position: inherit; left: 0; opacity: 1; margin: 0 10px" id="allow_pre_order{!! $item->id !!}" class="allow_pre_order_item" name="allow_pre_order_item[]" value="{!! $item->id !!}" type="checkbox" />{{__('label.allow_pre_order')}}?
    @endif
  • @endforeach
@endif
@endforeach @endif
@endsection @section('js') @endsection