How to display in a resource table view the summary of the detail in a RelationManager
In a RelationManager on this resource I have stats I gather every week.
I'd like to summarize these stats do some calcs and show in the table view of the original resource.
Is this possible with standard tools
Is this possible with custom tools / views?
Is there a plugin? from the demo I don't think advanced tables does this.
Can anyone point me in the right direction ?
4 Replies
like?
https://filamentphp.com/docs/3.x/tables/summaries
or you can use a relationship which returns a sum?
Summaries looks handy for the data of the Resource, but I'm looking for data of the Resources's RelationManager.
Resource: People
What do you mean? The relation manager uses the same kind of table as your resources index? Can you eloborate or perhaps send a screenshot what you are actually trying to achieve? 🤔
Different tables. I'll change my example
Table in BuilderResource shows the builders table. Each Builder has a number of Related "builds" that he has done in a RelationManager. Each build has a number of pieces, time it took. On the Builder's table view I'd like to show the summary of each Builder's "Builds" Total pieces, time it took .