2022-06-01 10:15:55 +03:00
|
|
|
@php
|
|
|
|
$started_date = '<span class="font-medium">' . company_date($transaction->recurring->started_at) . '</span>';
|
|
|
|
$frequency = Str::lower(trans('recurring.' . str_replace('ly', 's', $transaction->recurring->frequency)));
|
|
|
|
@endphp
|
|
|
|
|
2022-08-18 10:55:39 +03:00
|
|
|
<x-show.accordion type="schedule">
|
|
|
|
<x-slot name="head">
|
|
|
|
<x-show.accordion.head
|
|
|
|
title="{{ trans_choice('general.schedules', 1) }}"
|
|
|
|
description="{!! trans('transactions.slider.schedule', ['frequency' => $frequency, 'interval' => $transaction->recurring->interval, 'date' => $started_date]) !!}"
|
|
|
|
/>
|
|
|
|
</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
|
|
|
<div class="flex my-3 space-x-2 rtl:space-x-reverse">
|
|
|
|
@if ($next = $transaction->recurring->getNextRecurring())
|
|
|
|
{{ trans('recurring.next_date', ['date' => $next->format(company_date_format())]) }}
|
|
|
|
<br>
|
2022-06-02 10:26:07 +03:00
|
|
|
@if ($transaction->recurring->limit_by == 'count')
|
2022-06-01 10:15:55 +03:00
|
|
|
@if ($transaction->recurring->limit_count == 0)
|
|
|
|
{{ trans('recurring.ends_never') }}
|
|
|
|
@else
|
|
|
|
{{ trans('recurring.ends_after', ['times' => $transaction->recurring->limit_count]) }}
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
{{ trans('recurring.ends_date', ['date' => company_date($transaction->recurring->limit_date)]) }}
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
{{ trans('documents.statuses.ended') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
2022-08-18 10:55:39 +03:00
|
|
|
</x-slot>
|
|
|
|
</x-show.accordion>
|