Contact show link fixed..
This commit is contained in:
parent
c168153023
commit
0ecd5b667a
@ -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 = '';
|
||||
}
|
||||
|
@ -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 = '';
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user