Skip to content

Commit 95c1a16

Browse files
feat:lar-129 change text colunm text and badge color
1 parent 54f4aa1 commit 95c1a16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Filament/Resources/ThreadResource.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public static function table(Table $table): Table
4343
->falseIcon('heroicon-s-lock-open')
4444
->falseColor('success'),
4545
TextColumn::make('resolved_by')
46+
->label('Résolu')
4647
->badge()
47-
->getStateUsing(fn ($record) => $record->resolved_by == null ? 'Non résolu' : 'Résolu')
48-
->label(fn ($state) => $state)
49-
->color(fn ($record) => ($record?->resolved_by == null) ? 'warning' : 'success'),
48+
->getStateUsing(fn ($record) => $record->resolved_by == null ? 'Non' : 'Oui')
49+
->color(fn ($record) => ($record?->resolved_by == null) ? 'gray' : 'success'),
5050
TextColumn::make('created_at')
5151
->label('Date de publication')
5252
->dateTime(),

0 commit comments

Comments
 (0)