Nova resource table footer
soluzione-software/nova-resource-table-footer is a Laravel package for nova resource table footer.
It currently has 0 GitHub stars and 494 downloads on Packagist (latest version 0.2.2).
Install it with composer require soluzione-software/nova-resource-table-footer.
Discover more Laravel packages by soluzione-software
or browse all Laravel packages to compare alternatives.
Last updated
Note the package is currently in beta. During the beta period things can and probably will change. Don't use it in production until a stable version has been released. We appreciate you helping out with testing and reporting any bugs.
The package allows to customize the footer(rows and columns) in Nova Resource table.
composer require soluzione-software/nova-resource-table-footer
<?php
namespace App\Nova;
use Illuminate\Database\Eloquent\Builder;
use Laravel\Nova\Http\Requests\NovaRequest;
use SoluzioneSoftware\NovaResourceTableFooter\Contracts\HasFooter;
class User extends Resource implements HasFooter {
// ...
public function getFooter(NovaRequest $request, Builder $query): array
{
return [ // <tfoot>
[ // <tr>
[ // <td>
'attributes' => [ // <td ... v-bind="attributes">
'colspan' => 5,
//'rowspan' => 1,
],
'content' => '<span>...</span>', // html content
], // </td>
], // </tr>
]; // </tfoot>
}
}