Skip to content

Commit 54f4aa1

Browse files
feat:[lar-129] change resolver name to thread status
1 parent 9678bd8 commit 54f4aa1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/Filament/Resources/ThreadResource.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ public static function table(Table $table): Table
4242
->trueColor('warning')
4343
->falseIcon('heroicon-s-lock-open')
4444
->falseColor('success'),
45-
TextColumn::make('resolvedBy.name')
46-
->label('Résolu par'),
45+
TextColumn::make('resolved_by')
46+
->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'),
4750
TextColumn::make('created_at')
4851
->label('Date de publication')
4952
->dateTime(),

0 commit comments

Comments
 (0)