From b3b4c866fc89f6617eac38ec861c1d29c2e5a2b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Sun, 10 Jan 2021 20:36:37 +0300 Subject: [PATCH] Fixed class config function name.. --- app/Abstracts/View/Components/DocumentIndex.php | 16 ++++++++-------- app/Abstracts/View/Components/DocumentShow.php | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/Abstracts/View/Components/DocumentIndex.php b/app/Abstracts/View/Components/DocumentIndex.php index 92e37ce7c..6df551e5a 100644 --- a/app/Abstracts/View/Components/DocumentIndex.php +++ b/app/Abstracts/View/Components/DocumentIndex.php @@ -522,7 +522,7 @@ abstract class DocumentIndex extends Base return $classBulkAction; } - $class = $this->getTextFromConfig($type, 'bulk_action'); + $class = $this->getClassFromConfig($type, 'bulk_action'); if (!empty($class)) { return $class; @@ -556,7 +556,7 @@ abstract class DocumentIndex extends Base return $classDocumentNumber; } - $class = $this->getTextFromConfig($type, 'document_number'); + $class = $this->getClassFromConfig($type, 'document_number'); if (!empty($class)) { return $class; @@ -592,7 +592,7 @@ abstract class DocumentIndex extends Base return $classContactName; } - $class = $this->getTextFromConfig($type, 'contact_name'); + $class = $this->getClassFromConfig($type, 'contact_name'); if (!empty($class)) { return $class; @@ -611,7 +611,7 @@ abstract class DocumentIndex extends Base return $classAmount; } - $class = $this->getTextFromConfig($type, 'amount'); + $class = $this->getClassFromConfig($type, 'amount'); if (!empty($class)) { return $class; @@ -656,7 +656,7 @@ abstract class DocumentIndex extends Base return $classIssuedAt; } - $class = $this->getTextFromConfig($type, 'issued_at'); + $class = $this->getClassFromConfig($type, 'issued_at'); if (!empty($class)) { return $class; @@ -686,7 +686,7 @@ abstract class DocumentIndex extends Base return $classDueAt; } - $class = $this->getTextFromConfig($type, 'due_at'); + $class = $this->getClassFromConfig($type, 'due_at'); if (!empty($class)) { return $class; @@ -726,7 +726,7 @@ abstract class DocumentIndex extends Base return $classStatus; } - $class = $this->getTextFromConfig($type, 'status'); + $class = $this->getClassFromConfig($type, 'status'); if (!empty($class)) { return $class; @@ -745,7 +745,7 @@ abstract class DocumentIndex extends Base return $classActions; } - $class = $this->getTextFromConfig($type, 'actions'); + $class = $this->getClassFromConfig($type, 'actions'); if (!empty($class)) { return $class; diff --git a/app/Abstracts/View/Components/DocumentShow.php b/app/Abstracts/View/Components/DocumentShow.php index e4d287758..783d670d6 100644 --- a/app/Abstracts/View/Components/DocumentShow.php +++ b/app/Abstracts/View/Components/DocumentShow.php @@ -959,7 +959,7 @@ abstract class DocumentShow extends Base return $classHeaderStatus; } - $class = $this->getTextFromConfig($type, 'header_status'); + $class = $this->getClassFromConfig($type, 'header_status'); if (!empty($class)) { return $class; @@ -974,7 +974,7 @@ abstract class DocumentShow extends Base return $classHeaderContact; } - $class = $this->getTextFromConfig($type, 'header_contact'); + $class = $this->getClassFromConfig($type, 'header_contact'); if (!empty($class)) { return $class; @@ -989,7 +989,7 @@ abstract class DocumentShow extends Base return $classHeaderAmount; } - $class = $this->getTextFromConfig($type, 'header_amount'); + $class = $this->getClassFromConfig($type, 'header_amount'); if (!empty($class)) { return $class; @@ -1004,7 +1004,7 @@ abstract class DocumentShow extends Base return $classHeaderDueAt; } - $class = $this->getTextFromConfig($type, 'header_due_at'); + $class = $this->getClassFromConfig($type, 'header_due_at'); if (!empty($class)) { return $class;