@props(['titulo', 'lista_segmentos', 'search_placeholder', 'setores_segmentos'])
@php
$ativo = null;
foreach ($lista_segmentos as $indice => $segmento)
if ($segmento['inicial']) {
$ativo = $segmento['title'] ?? $segmento['setor_slug'] ?? null;
$setor_ativo = $segmento['setor_slug'] ?? null;
break;
}
if (empty($ativo)) {
$ativo = $lista_segmentos[0]['title'] ?? null;
$setor_ativo = $lista_segmentos[0]['setor_slug'] ?? null;
}
@endphp
{{ $titulo }}
@foreach ($lista_segmentos as $indice => $segmento)
{{ $segmento['title'] }}
@endforeach
@foreach ($lista_segmentos as $index => $segmento)
@php
$ref_container = 'segmentos_container_' . $index;
$ref_container_mobile = 'segmentos_container_mobile_' . $index;
@endphp
{{-- O corpo da aba. --}}
{{-- Aprensentacao --}}
{{ $segmento['title'] }}
{!! str($segmento['description'])->sanitizeHtml() !!}
{{-- Imagens Mobile --}}
{{-- Controles --}}
{{-- Imagens Desktop --}}
@endforeach
@pushonce('footer-scripts')
@endpushonce