@if ($next = $transaction->recurring->getNextRecurring())
{{ trans('recurring.next_date', ['date' => $next->format(company_date_format())]) }}
@if ($transaction->recurring->limit_by == 'count')
@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