@if($page_config && array_key_exists('seccion', $page_config)) @php $page_config_seccion = is_object($page_config) ? $page_config->seccion : $page_config['seccion']; @endphp @foreach ($page_config_seccion as $section) @php $id = is_object($page_config) ? $section->id : $section['id']; $is_active = is_object($page_config) ? $section->is_active : $section['is_active']; $image = is_object($page_config) ? $section->image->url : ($section['image']['url'] ?? null); $title = is_object($page_config) ? $section->title->$localeSelected : ($section['title'][$localeSelected] ?? null); $text = is_object($page_config) ? $section->text->$localeSelected : ($section['text'][$localeSelected] ?? null); $link = is_object($page_config) ? $section->link : $section['link']; $link_title = is_object($page_config) ? $section->link_title->$localeSelected : ($section['link_title'][$localeSelected] ?? null); @endphp @if ($id == 1 && $is_active)
@endif @endforeach @endif