@extends('layouts.app') @section('css') @endsection @section('content') @php $resto = \App\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; $resto_metas = []; $billing = []; if(isset($resto_meta)){ foreach($resto_meta as $meta){ // dump($meta->resto_meta_defs); $index_name = isset($meta->resto_meta_defs->parents)?$meta->resto_meta_defs->parents->meta_def_name:$meta->resto_meta_defs->meta_def_name; if(isset($_GET['debug'])){ // dump($index_name ); } 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[$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"; $business_type = trim($business_type); @endphp