protected function activeLogs(Collection $collection)
    {
        $return = [];
        foreach ($collection as $model) {
            $module = $model->component->name;
            if (!isset($return[$module][$model->name])) {
                $return[$module][$model->name] = 0;
            }
            $return[$module][$model->name] += 1;
        }
        return $return;
    }