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';
|
$route = Str::plural(config('type.' . $type . '.contact_type'), 2) . '.show';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
route($route, $config_parameters);
|
route($route, $parameter);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
try {
|
try {
|
||||||
$route = Str::plural($type, 2) . '.' . $config_key;
|
$route = Str::plural($type, 2) . '.' . $config_key;
|
||||||
|
|
||||||
route($route, $config_parameters);
|
route($route, $parameter);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$route = '';
|
$route = '';
|
||||||
}
|
}
|
||||||
|
@ -729,12 +729,12 @@ abstract class TransactionShow extends Base
|
|||||||
$route = Str::plural(config('type.' . $type . '.contact_type'), 2) . '.show';
|
$route = Str::plural(config('type.' . $type . '.contact_type'), 2) . '.show';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
route($route, $config_parameters);
|
route($route, $parameter);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
try {
|
try {
|
||||||
$route = Str::plural($type, 2) . '.' . $config_key;
|
$route = Str::plural($type, 2) . '.' . $config_key;
|
||||||
|
|
||||||
route($route, $config_parameters);
|
route($route, $parameter);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$route = '';
|
$route = '';
|
||||||
}
|
}
|
||||||
|
@ -39,10 +39,13 @@
|
|||||||
|
|
||||||
<strong>
|
<strong>
|
||||||
<span class="float-left long-texts mwpx-300 transaction-head-text">
|
<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 }}
|
{{ $transaction->contact->name }}
|
||||||
</a>
|
@endif
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</strong>
|
</strong>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
@stack('bill_button_end')
|
@stack('bill_button_end')
|
||||||
|
|
||||||
@stack('payment_button_start')
|
@stack('payment_button_start')
|
||||||
@can('create-purchases-payment')
|
@can('create-purchases-payments')
|
||||||
<a class="dropdown-item" href="{{ route('vendors.create-payment', $vendor->id) }}">
|
<a class="dropdown-item" href="{{ route('vendors.create-payment', $vendor->id) }}">
|
||||||
{{ trans('payments.create_payment') }}
|
{{ trans('payments.create_payment') }}
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user