Filament's Stat shows a label, a value, a description and a sparkline. Stat Cards is a subclass of it that adds more, without a new widget class or a Livewire component to register.
What it adds
- Progress bars, with a custom maximum and an optional label.
- Icon tiles, at the start of the label row or the far end of the card.
- Colours for the card background, icon, label, value and description.
- Trends: pass the current and previous numbers and it writes "12.4% increase" with an arrow, green when the change is good and red when bad.
- Badges next to the label.
- Bar charts as plain SVG, with no JavaScript.
Install and switch
composer require amjadiqbal/filament-stat-cards Then swap one import in your widget:
- use Filament\Widgets\StatsOverviewWidget\Stat; + use AmjadIqbal\FilamentStatCards\Stat; Core Stat objects and these ones can sit in the same widget.
Dark mode and limits
Colours come from your panel palette. In dark mode they appear as solid text, lines, bars and borders, never as a translucent wash. progress() takes numbers only, and the package covers the stats widget, not charts or tables. It needs PHP 8.2+, Laravel 12 or 13, and Filament 4 or 5. License: MIT.