Best Way to Show Different HasMany Relations using Separate Tabs?
Hello, everyone! Apologies if my question is dumb but I can't find the right way to do this by reading the manual.
Basically, I am creating a class management software for personal use. As a simple example, a Classroom has many Students, has activities and scores, and has different criteria for grading. In the main dashboard, I can choose the Classroom tab to show the list of registered Classrooms. But when I choose a classroom and the classroom's Edit page is shown with the basic classroom details ready to edit, I want to have separate tabs where the registered students, the activities, and the criteria can be listed and edited separately.
What is the best way to achieve this effect in Filament? Thank you in advance for any suggestions. No spoonfeeding needed, I appreciate any clues and I'll do my best to research from there!
5 Replies
Hey does filament provides anything more than CRUD.Currently i am in a confusion i want a custom page from where admin will choose course month year and submit then a report will appear.I tried from 2 days but i am faile dmisearable created custom page then resources even and used livewire inside but its not working can some help me in this i badly need the help.
Thank you very much, @Leandro Ferreira ! I have been trying to use Relation Managers but all the related models are being shown at the bottom of the parent model's edit page and I didn't realize that option is available. That might just be what I've been looking for. Thank you again!
@Sangram_11 , I'm just a beginner just like you but from what I understand, it seems that while Filament is very much focused on CRUD, it also contains tons of features useful in a dashboard or admin page scenario. If you want a custom page, it might be possible that not using Filament is the way to go, and instead, just use Laravel as is. But if you need to implement that feature without much restrictions on how it will look, Filament should work for you.
Filament provides custom pages.
https://filamentphp.com/docs/3.x/panels/resources/custom-pages/
Please open a new topic and explain what you need
@Leandro Ferreira i posted after all my attempts and try even after the link you referred. This is just make me understand how a custom page will interact with panel and on opening the required nav section lets say course it should open "The dropdown to select and submit then it should fetch report on table " but just guide me on registering the custom page and why on every resourse page in filament rquires model.