Skip to content

How can i do a Sum Row #1091

Closed Answered by lrljoe
BenOussama180 asked this question in Q&A
Mar 8, 2023 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

You'll need to pass the correct field to the footer. For example

            Column::make("In Progress", "in_progress")
                ->label(fn ($row) => $fmt->formatCurrency($row->links_orders_sum_price_progress, "EUR"))
                ->sortable()
                ->footer(function ($rows) {
                    return $rows->sum('links_orders_sum_price_progress');
                }),

Replies: 3 comments 3 replies

Comment options

lrljoe
Mar 9, 2023
Collaborator Sponsor

You must be logged in to vote
1 reply
@BenOussama180
Comment options

Comment options

lrljoe
Mar 13, 2023
Collaborator Sponsor

You must be logged in to vote
1 reply
@BenOussama180
Comment options

Comment options

lrljoe
Mar 14, 2023
Collaborator Sponsor

You must be logged in to vote
1 reply
@BenOussama180
Comment options

Answer selected by BenOussama180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants