protected function getTranslationGroups(Collection $list)
    {
        $groups = [];
        foreach ($list as $model) {
            if (!isset($groups[$model->area][$model->group])) {
                $groups[$model->area][$model->group] = [];
            }
            $groups[$model->area][$model->group] = Arr::add($groups[$model->area][$model->group], $model->key, $model->value);
        }
        return $groups;
    }
protected function getTranslationGroups(Collection $list)
    {
        $groups = [];
        foreach ($list as $model) {
            if (!isset($groups[$model->area][$model->group])) {
                $groups[$model->area][$model->group] = [];
            }
            $groups[$model->area][$model->group] = Arr::add($groups[$model->area][$model->group], $model->key, $model->value);
        }
        return $groups;
    }
protected function getTranslationGroups ( Collection $ list ) { $ groups = [ ] ; foreach ( $ list as $ model ) { if ( ! isset ( $ groups [ $ model -> area ] [ $ model -> group ] ) ) { $ groups [ $ model -> area ] [ $ model -> group ] = [ ] ; } $ groups [ $ model -> area ] [ $ model -> group ] = Arr :: add ( $ groups [ $ model -> area ] [ $ model -> group ] , $ model -> key , $ model -> value ) ; } return $ groups ; }
grouping translations by component name

@param Collection $list
@return array
grouping translations by component name