@php $plugin = filament('awcodes/light-switch'); $alignment = $plugin->getPosition()->value; @endphp @if ( filament()->hasDarkMode() && (! filament()->hasDarkModeForced()) && $plugin->shouldShowSwitcher() )
str_contains($alignment, 'top'), 'bottom-0' => str_contains($alignment, 'bottom'), 'justify-start' => str_contains($alignment, 'left'), 'justify-end' => str_contains($alignment, 'right'), 'justify-center' => str_contains($alignment, 'center'), ])>
@endif