protected function errorLogs(array $collection)
    {
        $return = [
            'total_logs_count' => count($collection)
        ];
        $item   = [];
        foreach ($collection as $row) {
            $row  = array_except($row, 'date');
            $keys = array_keys($row);
            if (empty($item)) {
                $item = array_fill_keys($keys, 0);
            }
            foreach ($keys as $key) {
                $item[$key] += $row[$key];
            }
        }
        return $return + $item;
    }