We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9678bd8 commit 54f4aa1Copy full SHA for 54f4aa1
app/Filament/Resources/ThreadResource.php
@@ -42,8 +42,11 @@ public static function table(Table $table): Table
42
->trueColor('warning')
43
->falseIcon('heroicon-s-lock-open')
44
->falseColor('success'),
45
- TextColumn::make('resolvedBy.name')
46
- ->label('Résolu par'),
+ TextColumn::make('resolved_by')
+ ->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'),
50
TextColumn::make('created_at')
51
->label('Date de publication')
52
->dateTime(),
0 commit comments