定制 badinansoft/table-footer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

badinansoft/table-footer

最新稳定版本:1.0.1

Composer 安装命令:

composer require badinansoft/table-footer

包简介

A Laravel Nova tool for adding a footer to a table, that will calculate the total of the columns

README 文档

README

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

统计信息

  • 总下载量: 14.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 4
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04