{{__('label.inventory')}}
{{__('label.availablity')}}
{!! $recipe->name !!} | @php $ex = []; $exclude_outlets = $recipe->exclude_outlets; if(!empty($exclude_outlets)){ $ex = explode(",",$exclude_outlets); } @endphp |
@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_meta = isset($restuarant1->resto_metas)?$restuarant1->resto_metas:null; $resto_metas = []; $billing = []; if(isset($resto_meta)){ foreach($resto_meta as $meta){ // dump($meta->resto_meta_defs); if($meta->resto_meta_defs->meta_def_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[$meta->resto_meta_defs->meta_def_name] = $meta->meta_val; } } $resto_metas['BILLING_GATEWAY'] = $billing; $currency = isset($resto_metas['BUSSINESS_CCY'])?$resto_metas['BUSSINESS_CCY']:"IQD"; @endphp
{{__('label.availablity')}}
{!! $recipe->name !!} | @php $ex = []; $exclude_outlets = $recipe->exclude_outlets; if(!empty($exclude_outlets)){ $ex = explode(",",$exclude_outlets); } @endphp |