@php
use Filament\Support\Enums\VerticalAlignment;
$verticalAlignment = $getVerticalAlignment();
if (! $verticalAlignment instanceof VerticalAlignment) {
$verticalAlignment = filled($verticalAlignment) ? (VerticalAlignment::tryFrom($verticalAlignment) ?? $verticalAlignment) : null;
}
@endphp
merge($getExtraAttributes(), escape: false)
->class([
'fi-fo-split flex gap-6',
match ($getFromBreakpoint()) {
'sm' => 'flex-col sm:flex-row ' . match ($verticalAlignment) {
VerticalAlignment::Center => 'sm:items-center',
VerticalAlignment::End => 'sm:items-end',
default => 'sm:items-start',
},
'md' => 'flex-col md:flex-row ' . match ($verticalAlignment) {
VerticalAlignment::Center => 'md:items-center',
VerticalAlignment::End => 'md:items-end',
default => 'md:items-start',
},
'lg' => 'flex-col lg:flex-row ' . match ($verticalAlignment) {
VerticalAlignment::Center => 'lg:items-center',
VerticalAlignment::End => 'lg:items-end',
default => 'lg:items-start',
},
'xl' => 'flex-col xl:flex-row ' . match ($verticalAlignment) {
VerticalAlignment::Center => 'xl:items-center',
VerticalAlignment::End => 'xl:items-end',
default => 'xl:items-start',
},
'2xl' => 'flex-col 2xl:flex-row ' . match ($verticalAlignment) {
VerticalAlignment::Center => '2xl:items-center',
VerticalAlignment::End => '2xl:items-end',
default => '2xl:items-start',
},
default => match ($verticalAlignment) {
VerticalAlignment::Center => 'items-center',
VerticalAlignment::End => 'items-end',
default => 'items-start',
},
},
])
}}
>
@foreach ($getChildComponentContainers() as $container)
@foreach ($container->getComponents() as $component)
$component->canGrow(),
])
>
{{ $component }}
@endforeach
@endforeach