Dashboard in SubNavigation
In my Resource I am trying to do setup a subNavigation with a Dashboard Item that gives me a link to a dashboard just for the record.
The error I get
Ofcourse... but any Idea how to get it working to utilize Dashboard as a SubNavigation Page for a specific record?
16 Replies
Is this page registered in the Panel Provider?
@CyQuer Yes.
Does it works if you don't extend
BaseDashboard
?@Vp No. Because route() is not available here:
In my Resource file. Route is only available if I extend the Dashboard class with ViewRecord or so. But not with Page oder BaseDashboard.
This works. But now how to add dashboard functionality to this page?
What kind of dashboard functionality? it is a custom page, you can add widgets (https://filamentphp.com/docs/3.x/panels/pages#adding-widgets-to-pages) or table or form etc
https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component
https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component
If you want filter (like dashboard) that I don't know
Yes, this was one idea to utilize this filterForm on this page.
I think you can create your own filter (not sure how to do it) and apply on widgets https://filamentphp.com/docs/3.x/panels/pages#passing-data-to-widgets-from-the-page
Ok. Thank you for your help. Maybe someone else will come up with an idea 🙂
https://demo.filamentphp.com/shop/orders take a look at this, displaying widgets like this is also nice, it changes based on table filter also (not what you want exactly but for reference 😆 )
Yes, this doesn't help me :/
This is how you create custom filter
And accept the data like this and filter the widgets https://filamentphp.com/docs/3.x/panels/pages#passing-properties-to-widgets-on-pages
@Vp thanks! I will dig into your idea. Really appreciate your help.