@php $id = $getId(); $isInline = $isInline(); $currentState = $getState(); // Handle Enum values if ($currentState instanceof \BackedEnum) { $currentState = $currentState->value; } @endphp
merge($getExtraAttributes(), escape: false) ->class([ 'state-container', 'flex justify-end flex-wrap' => $isInline, ]) }} > @foreach ($getOptions() as $value => $label) @php $inputId = "{$id}-{$value}"; $isChecked = ((string) $currentState === (string) $value); @endphp
@endforeach
@push('styles') @endpush