@php
if(file_exists(public_path('data/countrySwitcher.json'))){
$jsonCountrySwitcher = file_get_contents(public_path('data/countrySwitcher.json'));
$CountrySwitcher = json_decode($jsonCountrySwitcher);
foreach ($CountrySwitcher as $key => $val) {
if ($val->url == Request::getHost()) {
$flagCountryName = $val->name;
}
}
}
@endphp