StatCard
Compact metric cards ideal for key numbers, KPIs, and summary statistics.
Variants
24
Tasks Today
18
Completed
+3 today
6
Overdue
-1 this week
12
Day Streak
Without Delta
1,204
Total Users
$42.5k
Revenue
PHP PHP Methods (Fluent)
| Method / Property | Parameters | Description |
|---|---|---|
$m->statCard($id) | string | Create a stat card component. |
->value($value) | string | Set the main metric value (e.g. "42", "$1.2k"). |
->label($label) | string | Set the descriptive label below the value. |
->icon($faIcon) | string | Set the Font Awesome icon. |
->variant($variant) | string | Set colour variant: primary, success, warning, danger, purple, secondary. |
->primary() | | Apply primary colour. |
->success() | | Apply success colour. |
->warning() | | Apply warning colour. |
->danger() | | Apply danger colour. |
->purple() | | Apply purple colour. |
->delta($text) | string | Set delta text (e.g. "+5 today", "-2%"). |
->deltaUp() | | Show green up-arrow indicator. |
->deltaDown() | | Show red down-arrow indicator. |