Skip to main content

Table Footer: Total Column Calculations

Premium
3:22

The Full Lesson is Only for Premium Members

Want to access all of our courses? (31 h 16 min)

You also get:

55 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

CM
Catalin Motatu ✓ Link copied!

Hi Povilas, this is very interesting. I will be nice to know how the total can be extended to all the values, taking into account the filters, in case there are more pages. Thanks.

PK
Povilas Korop ✓ Link copied!

I don't have the immediate answer but I will research it in a few upcoming days, and will get back to you.

PK
Povilas Korop ✓ Link copied!

After some researching, I couldn't find the quick answer, sorry, please ask on Laracasts forum or directly on Filament GitHub.

CM
Catalin Motatu ✓ Link copied!

Ok, thank you for checking this out. I will ask on the forum.

MH
Michael HASSE ✓ Link copied!

When I set the filament theme to dark (config/filament.php: 'dark_mode' => true), the total row illegible (white text on white background). Do you know how to make custom views work with the dark_mode option?

PK
Povilas Korop ✓ Link copied!

I haven't experimented much with dark_mode, so can't really help here, sorry

HN
Huy Nguyen ✓ Link copied!

hi, could you show me where the "getTableContentFooter()" method was documented(how to use) in filament documentation? I can't find that part.

Thank you

N
Nerijus ✓ Link copied!

Unfortunately, it isn't documented.

A
aurawindsurfing ✓ Link copied!

it will be part of v3 update and totals for tables will be native to filament

N
niusek ✓ Link copied!

Hi! I have in the table a column with time : TextColumn::make('hours')->time('H:i'), How to sum up the total time?

N
Nerijus ✓ Link copied!

I assume it's a carbon value then if not cast it to carbon and do it similart like it it done in Povilas video https://www.youtube.com/watch?v=6zHH1nv2uJM

N
niusek ✓ Link copied!

Thank you for the quick reply. I have no idea how to implement this code into Filament. I am working on solving my problem..

P
Pablo ✓ Link copied!

Alternative. https://filamentphp.com/tricks/aggregate-data-in-table-footer Thanks.