Check for time until depreciated

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-11 10:07:58 +01:00
parent ec063b4af5
commit 8be44f9cf2

View file

@ -290,12 +290,14 @@
</strong>
</div>
<div class="col-md-9">
@if ($license->time_until_depreciated()->y > 0)
{{ $license->time_until_depreciated()->y }}
{{ trans('admin/hardware/form.years') }},
@endif
{{ $license->time_until_depreciated()->m }}
{{ trans('admin/hardware/form.months') }}
@if ($license->time_until_depreciated())
@if ($license->time_until_depreciated()->y > 0)
{{ $license->time_until_depreciated()->y }}
{{ trans('admin/hardware/form.years') }},
@endif
{{ $license->time_until_depreciated()->m }}
{{ trans('admin/hardware/form.months') }}
@endif
</div>
</div>
@endif