Action shows view with nested actions?

Hey guys, how are you?

How would you approach creating an action that is a livewire component by itself? Meaning, that when you click it renders a dynamic view with actions nested?

I've used:

                ->modalContentFooter(fn ($record) => view(
                    'filament.actions.media-browser',
                    ['documents' => $record->getDocuments()],
                )),


this returns an array, and in the blade file I user a foreach... but I want to be able to click an array item and when I click it, it renders a modal with something.

Thank you so much!
Was this page helpful?