FilamentF
Filament10mo ago
capins

Hello,I have a Table column like this:

Tables\Columns\TextColumn::make('distances.lenght')
                    ->listWithLineBreaks()
                    ->badge()
                    ->prefix('km ')
                    ->sortable(),

where distances is an HasMany relationship.
The question is: how to change the badge color for each distance and the suffix using a property of the distance? I have a boolean field in distances table (is_competitive), and if it's true I want a color different from the false one
Was this page helpful?