fixed all recurring issues #315

This commit is contained in:
denisdulici
2018-05-02 00:59:55 +03:00
parent 7e21634d77
commit c049b8ce73
7 changed files with 110 additions and 41 deletions

View File

@@ -3,13 +3,13 @@
@section('title', trans('general.title.edit', ['type' => trans_choice('general.revenues', 1)]))
@section('content')
@if ($revenue->recurring()->count())
@if (($recurring = $invoice->recurring) && ($next = $recurring->next()))
<div class="callout callout-info">
<h4>{{ trans('recurring.recurring') }}</h4>
<p>{{ trans('recurring.message', [
'type' => mb_strtolower(trans_choice('general.revenues', 1)),
'date' => $revenue->recurring->schedule()->next()->getStart()->format($date_format)
'date' => $next->format($date_format)
]) }}
</p>
</div>