@php $isDisabled = $isDisabled(); $state = $getState(); @endphp
merge($getExtraAttributes(), escape: false) ->class([ 'fi-ta-toggle', 'px-3 py-4' => ! $isInline(), ]) }} > @php $offColor = $getOffColor() ?? 'gray'; $onColor = $getOnColor() ?? 'primary'; @endphp
'bg-gray-200 dark:bg-gray-700', default => 'fi-color-custom bg-custom-600', }, is_string($offColor) ? "fi-color-{$offColor}" : null, ]) }}') + (isLoading ? ' opacity-70 pointer-events-none' : '') " x-bind:style=" state ? '{{ \Filament\Support\get_color_css_variables( $onColor, shades: [600], alias: 'tables::columns.toggle-column.on', ) }}' : '{{ \Filament\Support\get_color_css_variables( $offColor, shades: [600], alias: 'tables::columns.toggle-column.off', ) }}' " @class([ 'relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent outline-none transition-colors duration-200 ease-in-out', 'pointer-events-none opacity-70' => $isDisabled, ]) >