Creating a Custom Page that fetch data from another resource
I wanted to make a Sales Page that displays a simple sales tracker like Latest Sales, Total Sales, Total All Product Sales and more . I Planned it will be something like this:
1. The data will be fetch from the TradingProfiles as inside the TradingProfile model there are a column of Customer Details , Product and Price
2. The Product in TradingProfiles just keep integer value where it refers to Product Model for the value description like 0 = product0
3. I would like it to display the table for each sales in each product , i dont think we will have any edit action for each row probably just view button to view more details of the product etc etc 4. I will also add some widgets to track up certain general value such as Total All Product Sales etc etc How should i achieve this ? I've been looking into using the CustomPage but i'm not sure what does the --resource will be is it TradingProfile?
3. I would like it to display the table for each sales in each product , i dont think we will have any edit action for each row probably just view button to view more details of the product etc etc 4. I will also add some widgets to track up certain general value such as Total All Product Sales etc etc How should i achieve this ? I've been looking into using the CustomPage but i'm not sure what does the --resource will be is it TradingProfile?
2 Replies
maybe a custom page
https://filamentphp.com/docs/2.x/admin/pages/getting-started
with custom widgets to render what you need
https://filamentphp.com/docs/2.x/admin/dashboard/getting-started#custom-widgets
https://filamentphp.com/docs/2.x/admin/pages/widgets
Filament
Getting started - Pages - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
Filament
Widgets - Pages - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
Filament
Getting started - Dashboard - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
@Leandro Ferreira Thanks got it worked !
It seems like i viewed the wrong custom page link on the Filament Documentation