Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages

Readme

Table footer

This Laravel Nova package is used for calculating the total of every column that supports every function you need.

Detail View

Requirements

  • php: >=7.4
  • laravel/nova: ^3.0

Note: May this packge don't work with nova 4

Features

  • Add a footer to any index table you want.
  • Any calculatable columns you want you can get total
  • Support this function
    • sum
    • count
    • avg
    • min
    • max

Screenshot

Detail View

Installation

Install the package in a Laravel Nova project via Composer:

composer require badinansoft/table-footer

Usage

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'),'$'),

Reviews

By Ibrahim Al Khalaf on April 20, 2022

this is amazing package and many of projects need it thank you

By majdnassif on April 20, 2022

Super package , thank you so much

By shinwarismail on April 20, 2022

Perfect package , thanks you

Back to Top
Added 3 years ago
Last updated 3 Years Ago
Version 1.0.1
Composer
badinansoft/table-footer
GitHub stars 4
Packagist downloads 14,422

Favorites

2 users favorited

Rating

5.00
(out of 5)
★★★★★
★★★★
★★★
★★
3 ratings

Contributors

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas