@include('outlets.outlet-sidebar')
@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);
}
@endphp
@php
$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";
$business_pwa = isset($resto_metas['USE_PWA_DMENU'])?$resto_metas['USE_PWA_DMENU']:"false";
$url = env('QRCODE_HOST')."m/".$resto->resto_unique_name."&outlet=";
if($business_pwa == "true")
$url = "https://rjsdemo.taiftec.com/";
@endphp
{{__('label.digital_menu_qr_code')}}
{{__('label.download')}}
{{__('label.this_is_your_unique_qr_code_for_customers_to_see_the_menu_and_order_from_this_outlet_print_it_and_leave_it_on_the_tables_customers_just_need_to_scan_it_with_a_smartphone_to_place_their_order')}}