@extends('layouts.app') @section('css') @endsection @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); } @endphp @section('content') @php //$resto = \App\Models\Restaurants::find(\App\Helpers\CommonMethods::getRestuarantID()); $outlets = \App\Models\Outlets::whereNull('deleted_at')->where('resto_id',$resto->id)->get(); $o = NULL; if(isset($outlets) && $outlets->count() > 0){ foreach($outlets as $outlet){ $o[] = array( 'outlet_name' => $outlet->name, 'orders'=>rand(100,999) ); } } @endphp @php $restuarant1 = $resto; $resto_metas = \App\Helpers\CommonMethods::getRestoMetas($restuarant1); $imgix = isset($resto_metas['IMGIX_SOURCE']) && !empty($resto_metas['IMGIX_SOURCE'])?$resto_metas['IMGIX_SOURCE']:"https://meemappaws.imgix.net"; $currency = isset($resto_metas['BUSSINESS_CCY'])?$resto_metas['BUSSINESS_CCY']:"IQD"; @endphp

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

@php $outlets = \App\Models\Outlets::whereNull('deleted_at')->where('active',1)->where('resto_id',$restuarant1->id)->get(); @endphp
{{--
--}} {{-- --}} {{--
--}} {{--

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

--}}
@if(isset($recipes) && $recipes->count() > 0) @foreach($recipes as $recipe) @php $filename = isset($recipe->main_images)?\App\Helpers\CommonMethods::changeImageLinkAWStoImgix( $recipe->main_images->file_name, $imgix, env('PRODUCT_THUMBNAIL_IMG_HEIGHT'), env('PRODUCT_THUMBNAIL_IMG_WIDTH'), 100 ):""; @endphp @endforeach @endif
{!! $recipe->name !!} @if($recipe->inventory_options!="available") ( {!! ucwords(str_replace('_',' ',$recipe->inventory_options)) !!} ) @endif
@endsection @section('js') @endsection