@if($homeSection && $homeSection->tabs)
@php
$locale = App::getLocale();
$filteredTabs = collect($homeSection->tabs)->filter(function ($tab) use ($locale) {
return !empty($tab['title'][$locale] ?? null) && !empty($tab['content'][$locale] ?? null);
});
@endphp
@foreach($filteredTabs as $tab)
{{ $tab['title'][$locale] ?? '' }} >
@endforeach
@endif
@if($homeSection)
@php
$locale = App::getLocale();
$hasDestacadoTitle = !empty($homeSection->getTranslation('destacado_title', $locale, false));
$hasDestacadoContent = !empty($homeSection->getTranslation('destacado_content', $locale, false));
@endphp
@if($hasDestacadoTitle && $hasDestacadoContent)
{{ $homeSection->getTranslation('destacado_title', $locale, false) }}
@if($homeSection->destacado_image)
 }})
@endif
{!! $homeSection->getTranslation('destacado_content', $locale, false) !!}
@endif
@endif
@if($homeSection && $homeSection->tabs)
@php
$locale = App::getLocale();
$filteredTabs = collect($homeSection->tabs)->filter(function ($tab) use ($locale) {
return !empty($tab['title'][$locale] ?? null) && !empty($tab['content'][$locale] ?? null);
});
@endphp
@foreach($filteredTabs as $tab)
{{ $tab['title'][$locale] ?? '' }}
{!! $tab['content'][$locale] ?? '' !!}
@endforeach
@endif