CRUD icon indicating copy to clipboard operation
CRUD copied to clipboard

add a counter widget

Open iMokhles opened this issue 5 years ago • 2 comments

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. Capture d’écran 2020-05-15 à 21 17 27

iMokhles avatar May 15 '20 19:05 iMokhles

The inspection completed: No new issues

scrutinizer-notifier avatar May 15 '20 19:05 scrutinizer-notifier

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 🥳

tabacitu avatar Oct 29 '20 17:10 tabacitu

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!

tabacitu avatar Oct 11 '23 11:10 tabacitu