@if(\Illuminate\Support\Facades\Auth::user()->role=="restaurant")
@endif
@if(\Illuminate\Support\Facades\Auth::user()->role=="restaurant")
@endif
@if(\Illuminate\Support\Facades\Auth::user()->role=="restaurant")
@endif
@if(\Illuminate\Support\Facades\Auth::user()->role=="restaurant")
@if(isset($restaurant) && $restaurant->allow_whatsapp_notifications=="1")
@endif
@endif
@php
$countries = \App\Models\Countries::whereNull('deleted_at')->get();
$outlet_countries = !empty($restaurant->outlet_countries)?explode(',',$restaurant->outlet_countries):[];
@endphp
@if(\Illuminate\Support\Facades\Auth::user()->role=="administrator")
@endif
@if(\Illuminate\Support\Facades\Auth::user()->role=="administrator")
@endif
@if(\Illuminate\Support\Facades\Auth::user()->role=="restaurant")
@endif
@php
$resto_metas = \App\Models\RestoMetaDefs::where('parent_meta_def_id',0)->get();
// dd($resto_metas);
$colors = [];
//dump($resto_metas);
$existing_resto_meta = [];
if(isset($restaurant))
$existing_resto_meta = \App\Models\RestoMetas::where('bussiness_id',$restaurant->id)->whereNull('outlet_id')->pluck('meta_def_id')->toArray();
$existing_resto_meta = isset($existing_resto_meta )?$existing_resto_meta:[];
$existing_resto_meta_value = null;
if(isset($restaurant))
$existing_resto_meta_value = \App\Models\RestoMetas::where('bussiness_id',$restaurant->id)->whereNull('outlet_id')->get();
$v = [];
if(isset($existing_resto_meta_value) && $existing_resto_meta_value->count() > 0){
foreach($existing_resto_meta_value as $value){
$v[$value->meta_def_id] = $value->meta_val;
}
}
@endphp
@if(isset($resto_metas) && $resto_metas->count() > 0)
@foreach($resto_metas as $meta)
@if($meta->for_role==\Illuminate\Support\Facades\Auth::user()->role)
@if(($meta->meta_def_name=="DISPLAY_TAX_INFO" || $meta->meta_def_name=="TERM_AND_CONDITIONS") && $restaurant->countries->country_name=="Iraq" ) @continue @endif
@endif
@endforeach
@endif
@php
@endphp