From 8be44f9cf26a522dee9af0fe04c8cf8c652cc399 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 11 Jul 2024 10:07:58 +0100 Subject: [PATCH] Check for time until depreciated Signed-off-by: snipe --- resources/views/licenses/view.blade.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/resources/views/licenses/view.blade.php b/resources/views/licenses/view.blade.php index 7c99e8b73..aabbdb260 100755 --- a/resources/views/licenses/view.blade.php +++ b/resources/views/licenses/view.blade.php @@ -290,12 +290,14 @@
- @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
@endif