akaunting/resources/views/components/transactions/show/children.blade.php

23 lines
880 B
PHP
Raw Normal View History

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