From 22a955a79e92bb4e4294c6b6dca7fd6f2d033d9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Wed, 29 Oct 2025 17:51:14 -0300 Subject: [PATCH] Update SettingsTable to conditionally display group column: Re-enabled the group column with visibility control based on the active tab, while maintaining localization support for the column labels. --- .../Admin/Resources/Settings/Tables/SettingsTable.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Filament/Admin/Resources/Settings/Tables/SettingsTable.php b/app/Filament/Admin/Resources/Settings/Tables/SettingsTable.php index 6553802..cb1f6c7 100644 --- a/app/Filament/Admin/Resources/Settings/Tables/SettingsTable.php +++ b/app/Filament/Admin/Resources/Settings/Tables/SettingsTable.php @@ -58,13 +58,14 @@ class SettingsTable default => 'gray', }) ->formatStateUsing(fn (string $state): string => __("settings.type_{$state}")), - /* + TextColumn::make('group') ->label(__('settings.table_group')) ->badge() ->color('primary') + ->visible(fn ($livewire) => $livewire->activeTab === 'all') ->formatStateUsing(fn (string $state): string => __("settings.group_{$state}")), - */ + IconColumn::make('is_active') ->label(__('settings.table_active')) ->boolean()