Fix recurring invoice status label
This commit is contained in:
parent
800db04f1e
commit
d2fab1c747
1 changed files with 2 additions and 0 deletions
|
|
@ -81,6 +81,8 @@
|
|||
@if ($invoice->is_recurring && $invoice->isSent())
|
||||
@if (! $invoice->last_sent_date || $invoice->last_sent_date == '0000-00-00')
|
||||
{!! $invoice->present()->statusLabel(trans('texts.pending')) !!}
|
||||
@elseif ($invoice->end_date && Carbon::parse($invoice->end_date)->isPast())
|
||||
{!! $invoice->present()->statusLabel(trans('texts.status_completed')) !!}
|
||||
@else
|
||||
{!! $invoice->present()->statusLabel(trans('texts.active')) !!}
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue