diff --git a/src/Controller.php b/src/Controller.php index 31ab43c0..7c87f298 100644 --- a/src/Controller.php +++ b/src/Controller.php @@ -32,6 +32,7 @@ public function getIndex($group = null) $groups = [''=>'Choose a group'] + $groups; $numChanged = Translation::where('group', $group)->where('status', Translation::STATUS_CHANGED)->count(); + $allNumChanged = Translation::where('status', Translation::STATUS_CHANGED)->count(); $allTranslations = Translation::where('group', $group)->orderBy('key', 'asc')->get(); $numTranslations = count($allTranslations); @@ -47,6 +48,7 @@ public function getIndex($group = null) ->with('group', $group) ->with('numTranslations', $numTranslations) ->with('numChanged', $numChanged) + ->with('allNumChanged', $allNumChanged) ->with('editUrl', $group ? action('\Barryvdh\TranslationManager\Controller@postEdit', [$group]) : null) ->with('deleteEnabled', $this->manager->getConfig('delete_enabled')); }