@if($tripPopupAd) @php // Per-current-ad translations only; no other account's advertising copy is serialized. $tpAdLabels=[]; foreach (\App\Services\TripPlanner\TripPlannerLocaleLibrary::ENABLED as $tpAdLocale) { $tpAdLabels[$tpAdLocale]=[ 'title'=>trim((string)($tripPopupTranslations[$tpAdLocale]['title']??'')), 'description'=>trim((string)($tripPopupTranslations[$tpAdLocale]['description']??'')), ]; } $tpAdEnabled=(array)data_get($settings??[],'languages.active',['tr']); @endphp @endif