2022-08-18 10:55:39 +03:00
|
|
|
<x-show.accordion type="children">
|
|
|
|
<x-slot name="head">
|
|
|
|
<x-show.accordion.head
|
|
|
|
title="{{ trans_choice('general.transactions', 2) }}"
|
|
|
|
description="{!! trans('transactions.slider.children', ['count' => $transaction->children()->count()]) !!}"
|
|
|
|
/>
|
|
|
|
</x-slot>
|
2022-06-01 10:15:55 +03:00
|
|
|
|
2022-08-18 10:55:39 +03:00
|
|
|
<x-slot name="body">
|
2022-06-01 10:15:55 +03:00
|
|
|
@if ($transaction->children()->count())
|
2022-06-07 11:29:11 +03:00
|
|
|
@foreach ($transaction->children()->get() as $child)
|
2022-09-13 09:38:25 +03:00
|
|
|
@php $url = '<a href="' . route('transactions.show', $child->id) . '" class="text-purple">' . $child->number . '</a>' @endphp
|
2022-06-01 10:15:55 +03:00
|
|
|
|
|
|
|
<div class="my-2">
|
2022-06-07 11:29:11 +03:00
|
|
|
{!! trans('recurring.child', ['url' => $url, 'date' => company_date($child->paid_at)]) !!}
|
2022-06-01 10:15:55 +03:00
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
@else
|
|
|
|
{{ trans('general.none') }}
|
|
|
|
@endif
|
2022-08-18 10:55:39 +03:00
|
|
|
</x-slot>
|
|
|
|
</x-show.accordion>
|