table inside tabs its possible?

hi im trying to recreate my app currently in native php to filament its like attached image it have tabs inside tabs and also a table with some invoice data from a mysql db. how i can achieve that? thank you
No description
26 Replies
agaitan026
agaitan026OP3mo ago
Any idea or tip? Thank you
nanopanda
nanopanda3mo ago
I may be wrong, but your top level tabs seem to more of a top Navigation? In that case you can use ->topNavigation() on your Filament PanelProvider to get a similar effect, although I think the default sidebar nav is more flexible and generally a better approach for a Filament app. Also, while you can likely achieve something close to your screenshot by creating custom Pages and a blade template wrapper, it will probably take a lot more work to get there vs. leveraging the UX of Filament's built-in layout + components.
agaitan026
agaitan026OP3mo ago
The top level are regular tabs when i click a client in a table it open that window to get details of user What you can recommend me?
agaitan026
agaitan026OP3mo ago
No description
No description
No description
agaitan026
agaitan026OP3mo ago
Attached sample flow first click on regular nav bar, show table, open user details with tabs and inside i have lot of info and also tabledd Tables
agaitan026
agaitan026OP3mo ago
No description
awcodes
awcodes3mo ago
You’ll definitely need to use a custom page for this with either filament components or your own components as wrappers around the form / table livewire components. It can be done, but yea, this is a complicated layout that will require some work but it can be done.
agaitan026
agaitan026OP3mo ago
And maybe i can change layout? To make it easier? I mean im open to any ideas. As this is a very old system with pure php but the deal i dont have source code thats why i need to migrate to filament
awcodes
awcodes3mo ago
With a custom page the layout of the content is anything you want it to be
Matthew
Matthew3mo ago
Assume these are different tables\models. A combination of top navigation and clusters could get you close.
awcodes
awcodes3mo ago
Possibly, I think the problem with top navigation though, if I’m understanding correctly is that top navigation is global, and I think this is relative to specific ‘resource’
agaitan026
agaitan026OP3mo ago
The top navigation have the same tabs for all clients. Of course the info changes per client. Im thinking if theres any other layout i can use
awcodes
awcodes3mo ago
Not to sound contrite but yes. A custom one. But I could very well be missing the point.
Povilas K
Povilas K3mo ago
To me, personally, structure seems like Relation Managers for the User Edit, if you want to view the tables of Invoices and other data for that specific customer. See this in the official Filament demo: https://demo.filamentphp.com/shop/customers/1/edit
No description
Matthew
Matthew3mo ago
You can make this very easily, using topNavigation and then clusters, which give something similar to the OP request. I would very much warn against taking on a project to replicate something legacy that aims to faithfully replicate the original product. Especially if you are then going to use a framework to try and do it. You'll just end up painting yourself into a corner. Be much wiser to understand what the customer wants, and give them a new solution that plays to the strengths of the environment you intend to deploy. If the legacy product is old, the business case will have moved on aswell anyway.
No description
agaitan026
agaitan026OP3mo ago
You right, im the client too is my own soft that someone do in pure php few years ago. i agreed i should take a look and provide new layouts using benefit of filement php
agaitan026
agaitan026OP3mo ago
for example this is the main screen
No description
agaitan026
agaitan026OP3mo ago
where i select the user to view or edit
agaitan026
agaitan026OP3mo ago
here then i edit one user and see details, invoices
No description
agaitan026
agaitan026OP3mo ago
general info too
No description
agaitan026
agaitan026OP3mo ago
this may works for tabs that have tables, but if you see not all tabs have tables, the first tab have general information of the user name, id, address sounds good too but no need top navigation, cluster looks good, i can use it so tab 1 may have a table, tab2 may have general info correct? like images attached
Povilas K
Povilas K3mo ago
Right, I see. Then, if you want to do it completely that way, then it would be probably more like a Livewire project with Filament components, and not a Filament project. A lot of custom things would be needed.
agaitan026
agaitan026OP3mo ago
yeah i mean im open, i dont need to make it like the actual system. im looking for recommendations , thats how it looks today but i would like to use filament for this even if i have to change all layout with cluster i cant have like one cluster a table, another general info without table etc?
Povilas K
Povilas K3mo ago
I don't remember by heart, to be honest, would need to re-read the docs and experiment. But my first guess is that you can't do that with clusters. I can actually spend some time trying to recreate the layout you're going for, but will have time for it only in 1-2 weeks, it's not a 5minute task
Matthew
Matthew3mo ago
You can do what you want with a combination of clusters and table widgets and relation managers. However, using filament panels, you've got access to infolists, modals and slideovers etc, that probably negate the need for many tabs. Having big forms as part of the display is a bit 2015. It looks like a failry hefty project. Assuming you've got a bit of time, and your existing system is not about to fall over, you would benefit from getting your filament skills first. Build a smaller project, or perhaps something that can be separated out completely. By doing so, you'll start to understand how it all fits together, and then when you have built the knowledge, you'll be able to much more easily and quickly build the app you want. It wiull be overall quicker than trying a big project, and doing all the rewrites when you realise something which had previously eluded you.
agaitan026
agaitan026OP3mo ago
yeah this project have like 10 years so looks old thank you all for the good recommendations
Want results from more Discord servers?
Add your server