capins
capins
FFilament
Created by capins on 3/14/2025 in #❓┊help
Hello,I have a Table column like this:
Tables\Columns\TextColumn::make('distances.lenght')
->listWithLineBreaks()
->badge()
->prefix('km ')
->sortable(),
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
16 replies