diff --git a/app/Abstracts/View/Components/DocumentIndex.php b/app/Abstracts/View/Components/DocumentIndex.php index fe21ddfb7..c6701fdaa 100644 --- a/app/Abstracts/View/Components/DocumentIndex.php +++ b/app/Abstracts/View/Components/DocumentIndex.php @@ -718,7 +718,7 @@ abstract class DocumentIndex extends Base if (!empty($alias)) { $translation = $alias . '::' . config('type.' . $type . '.translation.prefix') . '.statuses'; - if (is_array(trans($$translation))) { + if (is_array(trans($translation))) { return $translation . '.'; } } diff --git a/app/Abstracts/View/Components/DocumentShow.php b/app/Abstracts/View/Components/DocumentShow.php index e2f22f518..ac1d2363a 100644 --- a/app/Abstracts/View/Components/DocumentShow.php +++ b/app/Abstracts/View/Components/DocumentShow.php @@ -652,7 +652,7 @@ abstract class DocumentShow extends Base if (!empty($alias)) { $translation = $alias . '::' . config('type.' . $type . '.translation.prefix') . '.statuses'; - if (is_array(trans($$translation))) { + if (is_array(trans($translation))) { return $translation . '.'; } }