Recurring child issue solved..

This commit is contained in:
Cüneyt Şentürk
2022-06-07 11:29:11 +03:00
parent b33009c7cd
commit 7359e246c3
4 changed files with 25 additions and 17 deletions

View File

@@ -20,11 +20,11 @@
x-bind:class="children == 1 ? 'h-auto ' : 'scale-y-0 h-0'"
>
@if ($transaction->children()->count())
@foreach ($transaction->children() as $child)
@foreach ($transaction->children()->get() as $child)
@php $url = '<a href="' . route('transactions.show', $child->id) . '" class="text-purple">' . $child->number . '</a>' @endphp
<div class="my-2">
{{ trans('recurring.child', ['url' => $url, 'date' => company_date($child->paid_at)]) }}
{!! trans('recurring.child', ['url' => $url, 'date' => company_date($child->paid_at)]) !!}
</div>
@endforeach
@else