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.

This commit is contained in:
Ümit Tunç
2025-10-29 17:51:14 -03:00
parent 75ea4e9618
commit 05eb3bf34a
@@ -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()