© 2026 Hedgehog Software, LLC
Customer
priority
class Customer extends Model { public const PRIORITY_SELECT = [ 1 => 'Low', 2 => 'Medium', 3 => 'High', ]; }
TextColumn::make('priority')
Tables\Columns\TextColumn::make('priority') ->badge() ->description(fn (Customer $record): string => Customer::PRIORITY_SELECT[$record->priority]) ->color(fn (string $state): string => match ($state) { '1' => 'gray', '2' => 'warning', '3' => 'success', }),
->formatStateUsing()