diff --git a/app/Abstracts/View/Components/DocumentShow.php b/app/Abstracts/View/Components/DocumentShow.php
index d059cfe97..d3172ea14 100644
--- a/app/Abstracts/View/Components/DocumentShow.php
+++ b/app/Abstracts/View/Components/DocumentShow.php
@@ -902,12 +902,12 @@ abstract class DocumentShow extends Base
$route = Str::plural(config('type.' . $type . '.contact_type'), 2) . '.show';
try {
- route($route, $config_parameters);
+ route($route, $parameter);
} catch (\Exception $e) {
try {
$route = Str::plural($type, 2) . '.' . $config_key;
- route($route, $config_parameters);
+ route($route, $parameter);
} catch (\Exception $e) {
$route = '';
}
diff --git a/app/Abstracts/View/Components/TransactionShow.php b/app/Abstracts/View/Components/TransactionShow.php
index be39a35e7..df7260ed7 100644
--- a/app/Abstracts/View/Components/TransactionShow.php
+++ b/app/Abstracts/View/Components/TransactionShow.php
@@ -729,12 +729,12 @@ abstract class TransactionShow extends Base
$route = Str::plural(config('type.' . $type . '.contact_type'), 2) . '.show';
try {
- route($route, $config_parameters);
+ route($route, $parameter);
} catch (\Exception $e) {
try {
$route = Str::plural($type, 2) . '.' . $config_key;
- route($route, $config_parameters);
+ route($route, $parameter);
} catch (\Exception $e) {
$route = '';
}
diff --git a/resources/views/components/transactions/show/header.blade.php b/resources/views/components/transactions/show/header.blade.php
index 27c00baf0..cfd2895b8 100644
--- a/resources/views/components/transactions/show/header.blade.php
+++ b/resources/views/components/transactions/show/header.blade.php
@@ -39,10 +39,13 @@
-
+ @if (!empty($transaction->contact->id))
+
+ {{ $transaction->contact->name }}
+
+ @else
{{ $transaction->contact->name }}
-
-
+ @endif
diff --git a/resources/views/purchases/vendors/show.blade.php b/resources/views/purchases/vendors/show.blade.php
index 3fe301339..e783d7390 100644
--- a/resources/views/purchases/vendors/show.blade.php
+++ b/resources/views/purchases/vendors/show.blade.php
@@ -30,7 +30,7 @@
@stack('bill_button_end')
@stack('payment_button_start')
- @can('create-purchases-payment')
+ @can('create-purchases-payments')
{{ trans('payments.create_payment') }}