@php $legalLocale = $currentLocale ?? app()->getLocale(); $termsContent = data_get($legalContent, 'terms_conditions_' . $legalLocale) ?? data_get($legalContent, 'terms_conditions_en') ?? data_get($legalContent, 'terms_conditions_ar') ?? ''; $privacyContent = data_get($legalContent, 'policies_' . $legalLocale) ?? data_get($legalContent, 'policies_en') ?? data_get($legalContent, 'policies_ar') ?? ''; @endphp @if(filled($termsContent)) @endif @if(filled($privacyContent)) @endif