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> </strong>
</div> </div>
<div class="col-md-9"> <div class="col-md-9">
@if ($license->time_until_depreciated())
@if ($license->time_until_depreciated()->y > 0) @if ($license->time_until_depreciated()->y > 0)
{{ $license->time_until_depreciated()->y }} {{ $license->time_until_depreciated()->y }}
{{ trans('admin/hardware/form.years') }}, {{ trans('admin/hardware/form.years') }},
@endif @endif
{{ $license->time_until_depreciated()->m }} {{ $license->time_until_depreciated()->m }}
{{ trans('admin/hardware/form.months') }} {{ trans('admin/hardware/form.months') }}
@endif
</div> </div>
</div> </div>
@endif @endif