@php use Illuminate\Support\Arr; use SolutionForest\FilamentTranslateField\Forms\Component\Translate\Tab; $locales = $getLocales() ?? []; $defaultLocale = $locales[0] ?? null; $isContained = $isContained(); $visibleTabClasses = \Illuminate\Support\Arr::toCssClasses([ 'p-6' => $isContained, 'mt-6' => ! $isContained, ]); $invisibleTabClasses = 'invisible h-0 overflow-y-hidden p-0'; $childComponentsWithLocale = collect($getChildComponentContainers()) ->map(fn ($container) => $container->getComponents()); $tabs = collect($childComponentsWithLocale) ->map(fn ($components) => Arr::first($components, fn ($component) => $component instanceof Tab)); $livewireKey = "{$this->getId()}.{$getStatePath()}." . \SolutionForest\FilamentTranslateField\Forms\Component\Translate::class . '.container'; @endphp