Infolist index page + dynamic modal form
Hello, I wonder if I can make a admin page as follows.
- I want a infolist page as index, so showing the database records as cards with icon etc.
- Use the modals (v2 simple modal) to create a new entry
-- Make one select box that will render out the rest of the form depending on the selection
Solution:Jump to solution
Have a look at the contentGrid method on the table. https://filamentphp.com/docs/3.x/tables/layout#arranging-records-into-a-grid
4 Replies
Not entirely sure but I think each infolist "card" will need to be its own Livewire component. Then you could have a filament form at the top or bottom of the page, with a modal Action to create a new item and reload the page.
Looks like it's possible to have multiple infolists into one Livewire component
Mmm sounds like a little "too much". Just thought it would be nice to render the entries as card rather as table rows.
Solution
Have a look at the contentGrid method on the table. https://filamentphp.com/docs/3.x/tables/layout#arranging-records-into-a-grid
Ow. That is awesome