Recurring child issue solved..
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
@if (! $hideCreate)
|
||||
@can($permissionCreate)
|
||||
<x-link href="{{ route($createRoute) }}" kind="primary">
|
||||
{{ trans($textCreate) }}
|
||||
{{ trans('general.title.new', ['type' => trans_choice($textPage, 1)]) }}
|
||||
</x-link>
|
||||
@endcan
|
||||
@endif
|
||||
|
@ -7,18 +7,18 @@
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="body" class="block" override="class">
|
||||
<div class="flex my-3 space-x-2 rtl:space-x-reverse">
|
||||
@if ($document->children()->count())
|
||||
@foreach ($document->children() as $child)
|
||||
@php $url = '<a href="' . route('transactions.show', $child->id) . '" class="text-purple" @click="e => e.target.classList.add(\'disabled\')">' . $child->number . '</a>' @endphp
|
||||
@if ($document->children()->count())
|
||||
@foreach ($document->children()->get() as $child)
|
||||
@php
|
||||
$url = '<a href="' . route(Str::replace('recurring-', '', $showRoute), $child->id) . '" class="text-purple">' . $child->document_number . '</a>';
|
||||
@endphp
|
||||
|
||||
<div class="my-2">
|
||||
{{ trans('recurring.child', ['url' => $url, 'date' => company_date($child->due_at)]) }}
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
{{ trans('general.none') }}
|
||||
@endif
|
||||
</div>
|
||||
<div class="my-2">
|
||||
{!! trans('recurring.child', ['url' => $url, 'date' => company_date($child->due_at)]) !!}
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
{{ trans('general.none') }}
|
||||
@endif
|
||||
</x-slot>
|
||||
</x-show.accordion>
|
||||
|
Reference in New Issue
Block a user