Fixed Portal transaction invoices link path ( #3qec07r )
This commit is contained in:
		@@ -459,9 +459,9 @@ abstract class Show extends Component
 | 
			
		||||
        // Attachment data..
 | 
			
		||||
        $this->attachment = '';
 | 
			
		||||
 | 
			
		||||
        if (!empty($attachment)) {
 | 
			
		||||
        if (! empty($attachment)) {
 | 
			
		||||
            $this->attachment = $attachment;
 | 
			
		||||
        } else if (!empty($transaction)) {
 | 
			
		||||
        } else if (! empty($transaction)) {
 | 
			
		||||
            $this->attachment = $transaction->attachment;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -475,7 +475,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTransactionTemplate($type, $transactionTemplate)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($transactionTemplate)) {
 | 
			
		||||
        if (! empty($transactionTemplate)) {
 | 
			
		||||
            return $transactionTemplate;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -490,7 +490,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getLogo($logo)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($logo)) {
 | 
			
		||||
        if (! empty($logo)) {
 | 
			
		||||
            return $logo;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -498,7 +498,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $media = Media::find($media_id);
 | 
			
		||||
 | 
			
		||||
        if (!empty($media)) {
 | 
			
		||||
        if (! empty($media)) {
 | 
			
		||||
            $path = $media->getDiskPath();
 | 
			
		||||
 | 
			
		||||
            if (Storage::missing($path)) {
 | 
			
		||||
@@ -544,7 +544,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getRouteButtonAddNew($type, $routeButtonAddNew)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($routeButtonAddNew)) {
 | 
			
		||||
        if (! empty($routeButtonAddNew)) {
 | 
			
		||||
            return $routeButtonAddNew;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -553,7 +553,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $route = $this->getRouteFromConfig($type, 'create', $parameter);
 | 
			
		||||
 | 
			
		||||
        if (!empty($route)) {
 | 
			
		||||
        if (! empty($route)) {
 | 
			
		||||
            return $route;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -562,7 +562,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getRouteButtonEdit($type, $routeButtonEdit)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($routeButtonEdit)) {
 | 
			
		||||
        if (! empty($routeButtonEdit)) {
 | 
			
		||||
            return $routeButtonEdit;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -571,7 +571,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $route = $this->getRouteFromConfig($type, 'edit', $parameter);
 | 
			
		||||
 | 
			
		||||
        if (!empty($route)) {
 | 
			
		||||
        if (! empty($route)) {
 | 
			
		||||
            return $route;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -580,7 +580,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getRouteButtonDuplicate($type, $routeButtonDuplicate)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($routeButtonDuplicate)) {
 | 
			
		||||
        if (! empty($routeButtonDuplicate)) {
 | 
			
		||||
            return $routeButtonDuplicate;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -589,7 +589,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $route = $this->getRouteFromConfig($type, 'duplicate', $parameter);
 | 
			
		||||
 | 
			
		||||
        if (!empty($route)) {
 | 
			
		||||
        if (! empty($route)) {
 | 
			
		||||
            return $route;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -598,7 +598,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getRouteButtonPrint($type, $routeButtonPrint)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($routeButtonPrint)) {
 | 
			
		||||
        if (! empty($routeButtonPrint)) {
 | 
			
		||||
            return $routeButtonPrint;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -607,7 +607,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $route = $this->getRouteFromConfig($type, 'print', $parameter);
 | 
			
		||||
 | 
			
		||||
        if (!empty($route)) {
 | 
			
		||||
        if (! empty($route)) {
 | 
			
		||||
            return $route;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -634,7 +634,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getSignedUrl($type, $signedUrl)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($signedUrl)) {
 | 
			
		||||
        if (! empty($signedUrl)) {
 | 
			
		||||
            return $signedUrl;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -643,7 +643,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $route = '';
 | 
			
		||||
 | 
			
		||||
        if (!empty($alias)) {
 | 
			
		||||
        if (! empty($alias)) {
 | 
			
		||||
            $route .= $alias . '.';
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -662,7 +662,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getRouteButtonEmail($type, $routeButtonEmail)
 | 
			
		||||
    {
 | 
			
		||||
        if (!  empty($routeButtonEmail)) {
 | 
			
		||||
        if (! empty($routeButtonEmail)) {
 | 
			
		||||
            return $routeButtonEmail;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -680,7 +680,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getRouteButtonPdf($type, $routeButtonPdf)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($routeButtonPdf)) {
 | 
			
		||||
        if (! empty($routeButtonPdf)) {
 | 
			
		||||
            return $routeButtonPdf;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -689,7 +689,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $route = $this->getRouteFromConfig($type, 'pdf', $parameter);
 | 
			
		||||
 | 
			
		||||
        if (!empty($route)) {
 | 
			
		||||
        if (! empty($route)) {
 | 
			
		||||
            return $route;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -698,7 +698,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getRouteButtonEnd($type, $routeButtonEnd)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($routeButtonEnd)) {
 | 
			
		||||
        if (! empty($routeButtonEnd)) {
 | 
			
		||||
            return $routeButtonEnd;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -707,7 +707,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $route = $this->getRouteFromConfig($type, 'end', $parameter);
 | 
			
		||||
 | 
			
		||||
        if (!empty($route)) {
 | 
			
		||||
        if (! empty($route)) {
 | 
			
		||||
            return $route;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -716,7 +716,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getRouteButtonDelete($type, $routeButtonDelete)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($routeButtonDelete)) {
 | 
			
		||||
        if (! empty($routeButtonDelete)) {
 | 
			
		||||
            return $routeButtonDelete;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -725,7 +725,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $route = $this->getRouteFromConfig($type, 'destroy', $parameter);
 | 
			
		||||
 | 
			
		||||
        if (!empty($route)) {
 | 
			
		||||
        if (! empty($route)) {
 | 
			
		||||
            return $route;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -734,7 +734,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getRouteContactShow($type, $routeContactShow)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($routeContactShow)) {
 | 
			
		||||
        if (! empty($routeContactShow)) {
 | 
			
		||||
            return $routeContactShow;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -755,7 +755,7 @@ abstract class Show extends Component
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!empty($route)) {
 | 
			
		||||
        if (! empty($route)) {
 | 
			
		||||
            return $route;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -764,13 +764,13 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextButtonAddNew($type, $textButtonAddNew)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textButtonAddNew)) {
 | 
			
		||||
        if (! empty($textButtonAddNew)) {
 | 
			
		||||
            return $textButtonAddNew;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'transactions');
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return trans('general.title.new', ['type' => trans_choice($translation, 1)]);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -779,7 +779,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextContentTitle($type, $textContentTitle)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textContentTitle)) {
 | 
			
		||||
        if (! empty($textContentTitle)) {
 | 
			
		||||
            return $textContentTitle;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -796,7 +796,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, $type . '_made', $default_key);
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -805,7 +805,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextNumber($type, $textNumber)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textNumber)) {
 | 
			
		||||
        if (! empty($textNumber)) {
 | 
			
		||||
            return $textNumber;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -814,13 +814,13 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextPaidAt($type, $textPaidAt)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textPaidAt)) {
 | 
			
		||||
        if (! empty($textPaidAt)) {
 | 
			
		||||
            return $textPaidAt;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'paid_at', 'date');
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -829,13 +829,13 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextAccount($type, $textAccount)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textAccount)) {
 | 
			
		||||
        if (! empty($textAccount)) {
 | 
			
		||||
            return $textAccount;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'accounts', 'accounts', 'trans_choice');
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -844,13 +844,13 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextCategory($type, $textCategory)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textCategory)) {
 | 
			
		||||
        if (! empty($textCategory)) {
 | 
			
		||||
            return $textCategory;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'categories', 'categories', 'trans_choice');
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -859,13 +859,13 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextPaymentMethods($type, $textPaymentMethods)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textPaymentMethods)) {
 | 
			
		||||
        if (! empty($textPaymentMethods)) {
 | 
			
		||||
            return $textPaymentMethods;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'payment_methods', 'payment_methods', 'trans_choice');
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -874,13 +874,13 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextReference($type, $textReference)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textReference)) {
 | 
			
		||||
        if (! empty($textReference)) {
 | 
			
		||||
            return $textReference;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'reference', 'reference');
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -889,13 +889,13 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextDescription($type, $textDescription)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textDescription)) {
 | 
			
		||||
        if (! empty($textDescription)) {
 | 
			
		||||
            return $textDescription;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'description', 'description');
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -904,13 +904,13 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextAmount($type, $textAmount)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textAmount)) {
 | 
			
		||||
        if (! empty($textAmount)) {
 | 
			
		||||
            return $textAmount;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'amount', 'amount');
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -919,7 +919,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextPaidBy($type, $textPaidBy)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textPaidBy)) {
 | 
			
		||||
        if (! empty($textPaidBy)) {
 | 
			
		||||
            return $textPaidBy;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -936,7 +936,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'paid_to_by', $default_key);
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -945,7 +945,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextRelatedTransansaction($type, $textRelatedTransansaction)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textRelatedTransansaction)) {
 | 
			
		||||
        if (! empty($textRelatedTransansaction)) {
 | 
			
		||||
            return $textRelatedTransansaction;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -962,7 +962,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'related_type', $default_key);
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -971,13 +971,13 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextRelatedDocumentNumber($type, $textRelatedDocumentNumber)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textRelatedDocumentNumber)) {
 | 
			
		||||
        if (! empty($textRelatedDocumentNumber)) {
 | 
			
		||||
            return $textRelatedDocumentNumber;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'related_document_number', 'numbers');
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -986,7 +986,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextRelatedContact($type, $textRelatedContact)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textRelatedContact)) {
 | 
			
		||||
        if (! empty($textRelatedContact)) {
 | 
			
		||||
            return $textRelatedContact;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -994,7 +994,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'related_contact', $default_key, 'trans_choice');
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -1003,7 +1003,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextRelatedDocumentDate($type, $textRelatedDocumentDate)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textRelatedDocumentDate)) {
 | 
			
		||||
        if (! empty($textRelatedDocumentDate)) {
 | 
			
		||||
            return $textRelatedDocumentDate;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -1020,7 +1020,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'related_document_date', $default_key);
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -1029,7 +1029,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextRelatedDocumentAmount($type, $textRelatedDocumentAmount)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textRelatedDocumentAmount)) {
 | 
			
		||||
        if (! empty($textRelatedDocumentAmount)) {
 | 
			
		||||
            return $textRelatedDocumentAmount;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -1046,7 +1046,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'related_document_amount', $default_key);
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -1055,13 +1055,13 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function getTextRelatedAmount($type, $textRelatedAmount)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($textRelatedAmount)) {
 | 
			
		||||
        if (! empty($textRelatedAmount)) {
 | 
			
		||||
            return $textRelatedAmount;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $translation = $this->getTextFromConfig($type, 'related_amount', 'amount');
 | 
			
		||||
 | 
			
		||||
        if (!empty($translation)) {
 | 
			
		||||
        if (! empty($translation)) {
 | 
			
		||||
            return $translation;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -1070,11 +1070,11 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
    protected function routeDocumentShow($type, $routeDocumentShow)
 | 
			
		||||
    {
 | 
			
		||||
        if (!empty($routeDocumentShow)) {
 | 
			
		||||
        if (! empty($routeDocumentShow)) {
 | 
			
		||||
            return $routeDocumentShow;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!$this->transaction->document) {
 | 
			
		||||
        if (! $this->transaction->document) {
 | 
			
		||||
            return $routeDocumentShow;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -1083,7 +1083,7 @@ abstract class Show extends Component
 | 
			
		||||
 | 
			
		||||
        $route = $this->getRouteFromConfig($this->transaction->document->type, 'show', $parameter);
 | 
			
		||||
 | 
			
		||||
        if (!empty($route)) {
 | 
			
		||||
        if (! empty($route)) {
 | 
			
		||||
            return $route;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user