@php // Selected Skin Values (variables): // $primaryBgColor and $primaryBgColor80 $sectionOptions = $locationsOptions ?? []; // Get Admin Map's values $mapPath = config('larapen.core.maps.path') . config('country.icode') . '.svg'; $mapCanBeShown = (file_exists($mapPath) && data_get($sectionOptions, 'enable_map') == '1'); $mapBackgroundColor = data_get($sectionOptions, 'map_background_color') ?? 'transparent'; $mapBorder = data_get($sectionOptions, 'map_border') ?? ($primaryBgColor ?? '#c7c5c1'); $mapHoverBorder = data_get($sectionOptions, 'map_hover_border') ?? ($primaryBgColor ?? '#c7c5c1'); $mapBorderWidth = data_get($sectionOptions, 'map_border_width') ?? 4; $mapColor = data_get($sectionOptions, 'map_color') ?? ($primaryBgColor80 ?? '#f2f0eb'); $mapColorHover = data_get($sectionOptions, 'map_hover') ?? ($primaryBgColor ?? '#4682B4'); $mapWidth = data_get($sectionOptions, 'map_width') ?? 300; $mapHeight = data_get($sectionOptions, 'map_height') ?? 300; $mapWidth = forceToInt($mapWidth) . 'px'; $mapHeight = forceToInt($mapHeight) . 'px'; $svgMapSearchPage = urlQuery(\App\Services\UrlGen::search()) ->removeParameters(['country', 'r']) ->toString(); @endphp @if ($mapCanBeShown) @if (!$locCanBeShown)