fixed recurring route binding and scope
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
<x-documents.show.message type="recurring" background-color="bg-blue-100" text-color="text-blue-600" message="{{ $recurring_message }}" />
|
||||
@endif
|
||||
|
||||
@if (($parent = $document->parent))
|
||||
@if ($parent = $document->parent)
|
||||
@php
|
||||
$recurring_message = trans('recurring.message_parent', [
|
||||
'type' => mb_strtolower(trans_choice($textRecurringType, 1)),
|
||||
|
@ -14,11 +14,11 @@
|
||||
<x-documents.show.message type="recurring" background-color="bg-blue-100" text-color="text-blue-600" message="{{ $recurring_message }}" />
|
||||
@endif
|
||||
|
||||
@if (($parent = $transaction->parent))
|
||||
@if ($parent = $transaction->parent)
|
||||
@php
|
||||
$recurring_message = trans('recurring.message_parent', [
|
||||
'type' => mb_strtolower(trans_choice($textRecurringType, 1)),
|
||||
'link' => '<a href="' . route($routeTransactionShow, $parent->id) . '"><u>' . $parent->number . '</u></a>'
|
||||
'link' => '<a href="' . route(config('type.transaction.' . $transaction->parent->type . '.route.prefix') . '.show', $parent->id) . '"><u>' . $parent->number . '</u></a>'
|
||||
]);
|
||||
@endphp
|
||||
|
||||
|
Reference in New Issue
Block a user