@props(['class' => '', 'abas']) @php $selecionada = 0; foreach ($abas as $indice => $segmento) { if ($segmento['inicial']) { $selecionada = $indice; break; } } @endphp
@foreach ($abas as $aba)
index ? 'x-cloak' : '' }} x-show="selecionada == {{ $loop->index }}" class="border-2 border-solid h-9 inline-flex items-center px-4 rounded-full bg-babyblue border-deepblue text-on-babyblue font-bold text-xs whitespace-nowrap"> {{ $aba['nome'] }}
@endforeach
@foreach ($abas as $aba)
@endforeach