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?
Was this page helpful?