A Laravel Nova tool for adding a footer to a table, that will calculate the total of the columns
badinansoft/table-footer is a Laravel package for a laravel nova tool for adding a footer to a table, that will calculate the total of the columns.
It currently has 4 GitHub stars and 15.456 downloads on Packagist (latest version 1.0.1).
Install it with composer require badinansoft/table-footer.
Discover more Laravel packages by badinansoft
or browse all Laravel packages to compare alternatives.
Last updated
This Laravel Nova package is used for calculating the total of every column that supports every function you need.

php: >=7.4laravel/nova: ^3.0
Install the package in a Laravel Nova project via Composer:
composer require badinansoft/table-footer
To use these packages just need to install the package by the above command then for any resource any index filed add this method:-
ID::make(__('ID'), 'id')->calculate('count',__('Total Count')),
By above code in the footer of the ID column will show the total count of the id's
The calculate($function,$label,$symbol='') accept 3 argument as you see also support localization
2 arguments are required but $symbol is not required just for adding the symbol of the currency end of the amount
Number::make(__('Amount'),'amount')
->calculate('avg',__('Average Amount'),'$'),