CRUD
CRUD copied to clipboard
add a counter widget
it a simple widget but really useful.
it uses LineAwesome
How to use:
$normalUsers = count(\App\User::all());
[ 'type' => 'counter',
'content' => [
'icon' => 'la-users',
'icon_bg' => 'bg-primary',
'title' => 'Users',
'link' => 'user',
'number' => $normalUsers,
'link_title' => 'Show All'
]
]
Here's how it looks like in my demo dashboard.

The inspection completed: No new issues
I like this! Thanks for submitting the PR @iMokhles , I've tagged this so we take a look at it when we release 4.2, maybe we include it there 🥳
Whoaw. It's been more than 3 years since this was submitted, sorry for dropping the ball @iMokhles .
This is no longer relevant today, we have the progress widgets that can be used to achieve the same result. And they're in themes now, so merging this PR would be impossible.
Sorry for answering so late to this. And closing it. Please don't let this discourage you. I'm shutting down my own PRs too, regularly, it's just the way things go. If you (or anybody else) think I'm wrong here and it does make sense to merge, that it's important for us to do so - let me know and we'll taken another look, re-open. I'm human, I make mistakes all the time.
Cheers!