Text Column Badge Color based on Pivot attribute
Hello,
I am trying to define a badge color based on the value of a pivot attribute.
For example:
I am trying to define a badge color based on the value of a pivot attribute.
For example:
- User
belongsToManySquadrons and the SquadronsbelongsToManyUsers - bothwithPivot('is_primary').
is_primary - I cannot for the life of me figure out how to get it to dynamically change based on the pivot Boolean.