Contact show link fixed..

This commit is contained in:
Cüneyt Şentürk 2021-06-30 18:41:43 +03:00
parent c168153023
commit 0ecd5b667a
4 changed files with 11 additions and 8 deletions

View File

@ -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 = '';
}

View File

@ -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 = '';
}

View File

@ -39,10 +39,13 @@
<strong>
<span class="float-left long-texts mwpx-300 transaction-head-text">
<a href="{{ route($routeContactShow, $transaction->contact->id) }}">
@if (!empty($transaction->contact->id))
<a href="{{ route($routeContactShow, $transaction->contact->id) }}">
{{ $transaction->contact->name }}
</a>
@else
{{ $transaction->contact->name }}
</a>
@endif
</span>
</strong>
<br><br>

View File

@ -30,7 +30,7 @@
@stack('bill_button_end')
@stack('payment_button_start')
@can('create-purchases-payment')
@can('create-purchases-payments')
<a class="dropdown-item" href="{{ route('vendors.create-payment', $vendor->id) }}">
{{ trans('payments.create_payment') }}
</a>