colorful
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled

This commit is contained in:
2026-05-01 12:54:12 +00:00
parent 6ef2e9fe4e
commit 7c5055075b
12 changed files with 128 additions and 26 deletions

View File

@@ -39,7 +39,13 @@ class FeedbackTable
->placeholder('-')
->toggleable(),
TextColumn::make('feedbackChannel.name')
->label('Channel'),
->label('Channel')
->formatStateUsing(fn ($state, $record) => sprintf(
'<span style="display:inline-block;background:%s;color:#fff;padding:2px 10px;border-radius:9999px;font-size:0.75rem;">%s</span>',
$record->feedbackChannel?->color ?: '#6b7280',
e($state)
))
->html(),
TextColumn::make('tags.name')
->badge()
->separator(','),