@php
$id = $getId();
$key = $getKey(isAbsolute: false);
$tabs = $getContainer()->getParentComponent();
$isContained = $tabs->isContained();
$livewireProperty = $tabs->getLivewireProperty();
$childSchema = $getChildSchema();
@endphp
@if (! empty($childSchema->getComponents()))
@if (blank($livewireProperty))
merge([
'aria-labelledby' => $id,
'id' => $id,
'role' => 'tabpanel',
'tabindex' => '0',
'wire:key' => $getLivewireKey() . '.container',
], escape: false)
->merge($getExtraAttributes(), escape: false)
->class(['fi-sc-tabs-tab'])
}}
>
{{ $childSchema }}
@elseif (strval($this->{$livewireProperty}) === strval($key))
merge([
'aria-labelledby' => $id,
'id' => $id,
'role' => 'tabpanel',
'tabindex' => '0',
'wire:key' => $getLivewireKey() . '.container',
], escape: false)
->merge($getExtraAttributes(), escape: false)
->class(['fi-sc-tabs-tab fi-active'])
}}
>
{{ $childSchema }}
@endif
@endif