Table IconColumn different colors.
Hi,
I want to have different colors for my icons.
The code below tells me that 'danger' is applied by default as my 'x-circle' icon is, how do I apply a different color like 'success' to the records that actually like in this case have one 'briefcase' ?
Thanks.
2 Replies
->color(fn (Model $record): string => $record->briefcase_count === 1 ? 'success' : 'danger')
Thank you, works nicely...