<?php
namespace Youkok\Processors\Admin;

use Youkok\Models\Element;

class PendingProcessor
{
    public static function run()
    {
        return Element::where('pending', 1)->count();
    }
}

<?php
namespace Youkok\Processors\Admin;

use Youkok\Models\Element;

class PendingProcessor
{
    public static function run()
    {
        return Element
            ::where('pending', 1)
            ->where('deleted', 0)
            ->count();
    }
}

Make sure indicator for number of pending elements reflects the actual query
Make sure indicator for number of pending elements reflects the actual query
