@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_metas = \App\Helpers\CommonMethods::getRestoMetas($restuarant1); $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"; @endphp

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

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

@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').'' !!}

  • @endforeach
@endif
@endforeach @endif
@endsection @section('js') @endsection