conditionally showing relationship.
Hey all, I'm using the table builder.
I have a model Customer that has a many to many relationship with Customer_types.
I want to conditionally display a check icon if the id is in the relationship. (e.g $customer->types->contain('id',$id)) and another icon if returns false.
Whats best practice for this?
1 Reply
How would you normally do it in Blade & Eloquent? That gives you a clue in how to achieve it in Filament