Courses

Laravel Filament Admin v2: Practical Course

Table Footer: Total Column Calculations

Previous: Table Column: URL Link to Another Resource
avatar

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.

avatar

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

avatar

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

avatar

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

avatar
You can use Markdown
avatar

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?

avatar

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

avatar
You can use Markdown
avatar

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

avatar

Unfortunately, it isn't documented.

avatar
You can use Markdown
avatar

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

avatar
You can use Markdown
avatar

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

avatar

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

avatar

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

avatar
You can use Markdown
avatar

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

avatar
You can use Markdown
avatar
You can use Markdown