F
Filament•16mo ago
Josh

Best Approach for View Customer

Hey! I want to put the customer box (infolist) next to the last order placed (widget) and also make it responsive so that last order place is slightly wider to fit snug with the customer info. Am I better off makin it a custom page? Have I done the right approach with making last order a widet and customer info an infolist or am I approaching this wrong? https://gist.github.com/Diddyy/39abf6ff8dafd3953ff61fa38a87c069
Gist
CustomerResource.php
GitHub Gist: instantly share code, notes, and snippets.
6 Replies
awcodes
awcodes•16mo ago
No need for a custom page. Just use a grid layout component. Sharing some code would help too.
Josh
JoshOP•16mo ago
Cheers dude! I did Gist all the relevent parts in the OP 🙂 I don't know why but I am really drawing a blank at how I can get the two next to each other. See the original gist. Its because I have to edit infobuilder in the CustomerResource and the LastOrder widget in ViewCustomer. The widget is a 'Header Widget'
awcodes
awcodes•16mo ago
Didn’t realize one was a widget. Sorry. You’ll need to do a custom page then.
unexpected_journey
unexpected_journey•16mo ago
It might work to turn LastOrder an info list component and add that to the existing info list using a grid like mentioned before.
Josh
JoshOP•16mo ago
Just curious @awcodes how you would approach it. Keep last order as a widget and just call it on a custom page so I can position it next to an infolist or is there a better approach I’m not thinking of?
awcodes
awcodes•16mo ago
I would just make a custom view page. It’s all in the docs.
Want results from more Discord servers?
Add your server