@php $state = $getState(); $size = $getSize() ?? 'lg'; $stateColor = $getStateColor(); $stateIcon = $getStateIcon(); $hoverColor = $getHoverColor(); $iconClasses = \Illuminate\Support\Arr::toCssClasses([ match ($stateColor) { 'danger' => 'text-danger-500', 'primary' => 'text-primary-500', 'success' => 'text-success-500', 'warning' => 'text-warning-500', 'secondary' => 'text-gray-300 dark:text-gray-600', null => \Illuminate\Support\Arr::toCssClasses(['text-gray-700', 'dark:text-gray-200' => config('tables.dark_mode'),]), default => $stateColor, }, match ($hoverColor) { 'danger' => 'hover:text-danger-500', 'primary' => 'hover:text-primary-500', 'success' => 'hover:text-success-500', 'warning' => 'hover:text-warning-500', 'secondary' => 'hover:text-gray-300 dark:text-gray-600', null => \Illuminate\Support\Arr::toCssClasses(['hover:text-gray-700', 'dark:hover:text-gray-200' => config('tables.dark_mode'),]), default => 'hover:'.$hoverColor, }, match ($size) { 'xs' => 'h-3 w-3', 'sm' => 'h-4 w-4', 'md' => 'h-5 w-5', 'lg' => 'h-6 w-6', 'xl' => 'h-7 w-7', default => null, }, ]); @endphp
merge($getExtraAttributes())->class([ 'filament-tables-toggle-column', ]) }} >