PHPackages                             abordage/nova-total-card - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. abordage/nova-total-card

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

abordage/nova-total-card
========================

A Laravel Nova card that displays the total number of records of a specific model

1.0.0(1y ago)473.2k↓54.5%2[2 PRs](https://github.com/abordage/nova-total-card/pulls)1MITPHPPHP &gt;=7.4CI passing

Since Jun 25Pushed 1w ago1 watchersCompare

[ Source](https://github.com/abordage/nova-total-card)[ Packagist](https://packagist.org/packages/abordage/nova-total-card)[ Docs](https://github.com/abordage/nova-total-card)[ RSS](/packages/abordage-nova-total-card/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (6)Versions (13)Used By (1)

Nova Total Card
===============

[](#nova-total-card)

A Laravel Nova card that displays the total number of records for a model or the number of records matching a condition.

[![Laravel Nova Total Card](https://github.com/abordage/nova-total-card/raw/master/docs/images/abordage-nova-total-card-screenshot-2.png?raw=true)](https://github.com/abordage/nova-total-card/blob/master/docs/images/abordage-nova-total-card-screenshot-2.png?raw=true)

[ ![Packagist Version](https://camo.githubusercontent.com/8e9ee97f63e0c8b792748340bcd7c8ce6dbe5bc1604774ade614bdd9b7531f09/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61626f72646167652f6e6f76612d746f74616c2d63617264)](https://packagist.org/packages/abordage/nova-total-card "Packagist version")[ ![GitHub Code Style Status](https://camo.githubusercontent.com/6ac48f00f78c6dac05bfcab8223ad6a9edce3f4ddbcdaabe6dadd4930eb449bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61626f72646167652f6e6f76612d746f74616c2d636172642f7068702d63732d66697865722e796d6c3f6c6162656c3d636f64652532307374796c65)](https://github.com/abordage/nova-total-card/actions/workflows/php-cs-fixer.yml "GitHub Code Style Status")[ ![Laravel Nova Version](https://camo.githubusercontent.com/af6e6a3ca5d0da3fe216703d379ceed515bb2bf8f4cb8bf83cc5d4d8409c85ca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2532306e6f76612d352e302d314441354537)](https://nova.laravel.com/docs/4.0/ "Laravel Nova Version")[ ![PHP Version Support](https://camo.githubusercontent.com/bacdb59fe72283b1a56a6153ffc5365e1b5a6c5a095a5d32c18bc3276d81f8a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f61626f72646167652f6e6f76612d746f74616c2d63617264)](https://www.php.net/ "PHP version")[ ![License](https://camo.githubusercontent.com/1532fc8e6e626efd72d3aed34ad095ff634fb352a43b3d28da4024167f791a01/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61626f72646167652f6e6f76612d746f74616c2d63617264)](https://github.com/abordage/nova-total-card/blob/master/LICENSE.md "License")

Requirements
------------

[](#requirements)

- PHP 7.4 - 8.4
- Laravel 8.x - 11.x
- Nova 4.x - 5.x

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require abordage/nova-total-card
```

Usage
-----

[](#usage)

To add this card to the dashboard or resource add it to the `cards` method like this:

```
namespace App\Nova\Dashboards;

use Abordage\TotalCard\TotalCard;
use Laravel\Nova\Dashboard;

class Main extends Dashboard
{
    public function cards(): array
    {
        $cards = [
            /* simple */
            new TotalCard(\App\Models\User::class),

            /* with custom title */
            new TotalCard(\App\Models\User::class, 'All users'),

            /* with cache expiry time */
            new TotalCard(\App\Models\User::class, 'All users',  now()->addHour()),

            /* with condition */
            new TotalCard(\App\Models\User::where('is_active', 1), 'Active users'),
        ];
    }
}
```

You can set the size of the card using the methods `width` and `height`:

```
public function cards(): array
{
    $cards = [
        (new TotalCard(\App\Models\User::class))->height('dynamic'),
        (new TotalCard(\App\Models\User::class))->height('dynamic')->width('2/3'),
    ];
}
```

Feedback
--------

[](#feedback)

If you have any feedback, comments or suggestions, please feel free to open an issue within this repository.

Credits
-------

[](#credits)

- [Pavel Bychko](https://github.com/abordage)
- [All Contributors](https://github.com/abordage/nova-total-card/graphs/contributors)

Thanks to
---------

[](#thanks-to)

The original idea comes from the [total-records](https://github.com/techouse/total-records), so many thanks to its author and contributors!

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance72

Regular maintenance activity

Popularity36

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~186 days

Recently: every ~232 days

Total

6

Last Release

538d ago

Major Versions

0.2.1 → 1.0.02025-01-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/c87a6833167a0a9698e160af28d0c4bbc1813a672ca5dc8a83fbc5cdd7714e06?d=identicon)[abordage](/maintainers/abordage)

---

Top Contributors

[![abordage](https://avatars.githubusercontent.com/u/28537731?v=4)](https://github.com/abordage "abordage (57 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (33 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (24 commits)")

---

Tags

laravel-novalaravel-nova-cardslaravel-novanova cardnova total card

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/abordage-nova-total-card/health.svg)

```
[![Health](https://phpackages.com/badges/abordage-nova-total-card/health.svg)](https://phpackages.com/packages/abordage-nova-total-card)
```

###  Alternatives

[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2852.1M6](/packages/optimistdigital-nova-sortable)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2862.1M9](/packages/outl1ne-nova-sortable)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[abordage/nova-html-card

A Laravel Nova card that displays any html content, e.g. lists, notifications, small custom reports

12235.6k](/packages/abordage-nova-html-card)[abordage/nova-table-card

A Laravel Nova card for displaying lists with links to view and edit

1340.1k](/packages/abordage-nova-table-card)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
