Relation Info on same page as Resource
Often I will want to put a list of resource records, and a relation on the same 'view'.
For example, I could have a list of products and then each product hasMany productNotes.
I can make a relationmanager for productNotes, and then when you view an individual product the relation table is there.
What about if I want just to click between those products as they are on the table, see the notes, without having to go in and out of each record?
Interested to hear how anyone approaches this ?
Thanks
4 Replies
I typically do a custom table action with an Infolist to show some details of a resource that doesn't warrant going to the actual view/edit page of that resource...something like this:
🤔
That is a nice way of providing more information...but...I'm looking at instances of related records, particulary those with a potential hasMany ?
Another idea: clickable column with action that opens modal? Here's our example: https://filamentexamples.com/tutorial/clickable-table-column-that-opens-modal-with-view
Filament Examples
Filament: Clickable Table Column to Open Modal with Details
In Filament tables, sometimes we show just the sum/count number cause we don't have enough space. So, let's add a Modal action to the column.