Hide RelationManager card based on certain condition

Is there any way that I can hide RelationManager on Resource Edit based on a certain condition? Let say I have an Event which Participation Registration set to "Contact", as it's not "Ticket", I want to hide the "Tickets" RelationManager or at least show certain messages instead of "No records found" to be "The event is not using 'ticket' for participant registration". Thank you.
2 Replies
Kenneth Sese
Kenneth Sese2y ago
Take a look at this for changing the empty state: https://filamentphp.com/docs/2.x/tables/getting-started#empty-state You should be able to add that to your RelationManager
Filament
Getting started - Table Builder - Filament
The elegant TALL stack table builder for Laravel artisans.
Want results from more Discord servers?
Add your server