A free open source IT asset/license management system
Check for time until depreciated
snipe8be44f9cf26a
diff --git a/resources/views/licenses/view.blade.php b/resources/views/licenses/view.blade.phpindex 7c99e8b739..aabbdb2608 100755--- a/resources/views/licenses/view.blade.php+++ b/resources/views/licenses/view.blade.php@@ -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