How to create navigation with groups liked to subqueries
Hi there,
say I have a User table/resource, with a created_at field. Is it possible, and if so, how can I have a nnavigation bar that would look like this:
User
| Q1 2024
| Q2 2024
| Q3 2024
I want to be able to have 4 links for the current year and its quarters, and when clicked dispay the resource table with the proper filters actvated ( I have a filter for filtering per quarter, so basically I have access to a link to that page with the filters active, but I don't know how to setup this navigation dynamically so that each year, to moves to the current year)
Thanks
Solution:Jump to solution
This is probably going to be your best bet. https://filamentphp.com/docs/3.x/panels/resources/listing-records#using-tabs-to-filter-the-records
2 Replies
Solution
This is probably going to be your best bet. https://filamentphp.com/docs/3.x/panels/resources/listing-records#using-tabs-to-filter-the-records
Ah ok. I see. I guess I’m not married to the idea of navigation links. It’s the same amount of clicks as anyway to expand a group it needs to be clicked. Thanks for pointing it out