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;
    }
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;
    }
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 ; }
get active logs summary

@param Collection $collection
@return array
get active logs summary