@use('Illuminate\View\ComponentAttributeBag') @use('SolutionForest\TabLayoutPlugin\Components\Tabs') @use('SolutionForest\TabLayoutPlugin\Components\Tabs\Tab') @php $livewireId = $this->getId(); $currentTabId = $getId(); $generatedLivewireKey = "{$livewireId}." . Tabs::class . ".container"; $isContained = $isContained(); @endphp
merge([ 'id' => $currentTabId, 'wire:key' => $generatedLivewireKey, ], escape: false) ->merge($getExtraAttributes(), escape: false) ->merge($getExtraAlpineAttributes(), escape: false) ->class([ 'filament-tabs-component fi-sc-tabs', 'fi-contained shadow-sm' => $isContained, ]) }} {{ $getExtraAlpineAttributeBag() }} > @foreach ($getChildComponentContainer()->getComponents() as $tab) @php $tabUrl = $tab->getUrl(); $tabKey = $tab->getId(); $tabBadge = $tab->getBadge(); $tabBadgeColor = 'primary'; $tabBadgeIconPosition = "right"; $tabBadgeIcon = null; $tabBadgeTooltip = null; $tabIconPosition = 'before'; $tabIcon = $tab->getIcon(); $onClickEvent = filled($tabUrl) ? ($tab->shouldOpenUrlInNewTab() ? "window.open('{$tabUrl}', '_blank')" : "window.location.href='{$tabUrl}'") : "tab = '{$tabKey}'"; @endphp {{ $tab->getLabel() }} @endforeach @foreach ($getChildComponentContainer()->getComponents() as $tab) {{ $tab }} @endforeach