F
Filamentβ€’4mo ago
Sujay Barma

Can we have 2 level Relation Manager

I need suggest on how do I build 2 level Relation Manager. In my application I have Client which has many Campaign . Each Campaign has many Videos. I have created Relation between Client->Campaign. I would like if I click on Campaign it opens a similiar page as on image (attached) with Videos listed in that Campaign. Currently after clicking on Campaign it opens Edit form in Model.
No description
4 Replies
toeknee
toekneeβ€’4mo ago
You could build a campaigns lifewire element which loads in a table based of the elements. I did this for transactions for a bank account
Sujay Barma
Sujay BarmaOPβ€’4mo ago
Thank you. Do you have any open source code example?
toeknee
toekneeβ€’4mo ago
Build a livewire component which has a table https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component But modify the query to pull in the id from the table icon that is passed into the mount method πŸ™‚
toeknee
toekneeβ€’4mo ago
means a slideover or modal for the table but it works Or you add a custom page with a table, and render the content based on the passed in id.
Want results from more Discord servers?
Add your server