Enhance SettingsTable: Added state formatting for boolean types to display emojis in the settings table. This improves user experience by providing a visual representation of boolean values, making the table more intuitive.

This commit is contained in:
Ümit Tunç
2025-10-20 15:24:30 -03:00
parent 1450e8baf2
commit a01c24616c
@@ -37,7 +37,16 @@ class SettingsTable
->label(__('settings.table_value'))
->searchable()
->limit(50)
->wrap(),
->wrap()
->formatStateUsing(function ($state, $record) {
// Boolean tipler için emoji göster
if ($record->type === 'boolean') {
return filter_var($state, FILTER_VALIDATE_BOOLEAN)
? '✅'
: '❌';
}
return $state;
}),
TextColumn::make('type')
->label(__('settings.table_type'))