2022-06-01 10:15:55 +03:00
|
|
|
<x-show.accordion type="children" :open="($accordionActive == 'children')">
|
|
|
|
<x-slot name="head">
|
|
|
|
<x-show.accordion.head
|
|
|
|
title="{{ trans_choice('general.invoices', 2) }}"
|
|
|
|
description="{!! trans('invoices.slider.children', ['count' => $document->children()->count()]) !!}"
|
|
|
|
/>
|
|
|
|
</x-slot>
|
|
|
|
|
|
|
|
<x-slot name="body" class="block" override="class">
|
2022-06-07 11:29:11 +03:00
|
|
|
@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
|
2022-06-01 10:15:55 +03:00
|
|
|
|
2022-06-07 11:29:11 +03:00
|
|
|
<div class="my-2">
|
2022-09-26 18:31:53 +02:00
|
|
|
{!! trans('recurring.child', ['url' => $url, 'date' => company_date($child->created_at)]) !!}
|
2022-06-07 11:29:11 +03:00
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
@else
|
|
|
|
{{ trans('general.none') }}
|
|
|
|
@endif
|
2022-06-01 10:15:55 +03:00
|
|
|
</x-slot>
|
|
|
|
</x-show.accordion>
|