@php use Filament\Support\Colors\Color; use Filament\Support\Enums\Alignment; $options = $getOptions(); $icons = $getIcons(); $images = $getImages(); $imageOnly = $getImageOnly(); $imageSize = $getImageSize() ?: 50; $checkedColor = Color::Green[500]; $multiple = $getMultiple(); $bgColor = $getBackgroundColor(); $activeBgColor = $getActiveBackgroundColor(); $alignment = $getAlignment(); if (! $alignment instanceof Alignment) { $alignment = filled($alignment) ? (Alignment::tryFrom($alignment) ?? $alignment) : null; } @endphp
merge($getExtraAttributes())->class(['ic-fo-picker']) }} >
'justify-start', Alignment::Center => 'justify-center', Alignment::End => 'justify-end', Alignment::Left => 'justify-start', Alignment::Right => 'justify-end', Alignment::Between => 'justify-between', Alignment::Justify => 'justify-around', default => $alignment, } ]) class="flex flex-wrap gap-2 justify-around" > @foreach($options as $value => $label) @endforeach