From 1885e737048ce344ac345ce856e93509f2b46d40 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 15 Sep 2022 15:42:47 -0700 Subject: [PATCH] Ignore warning icon if no purchase date Signed-off-by: snipe --- resources/views/hardware/view.blade.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index 5aaed904be..0ed8e10e03 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -596,7 +596,9 @@
{{ trans('admin/hardware/form.warranty_expires') }} + @if ($asset->purchase_date) {!! $asset->present()->warranty_expires() < date("Y-m-d") ? '' : '' !!} + @endif