Skip to content

A free open source IT asset/license management system

Ignore warning icon if no purchase date

snipe1885e737048c
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 @@
<div class="col-md-2">
<strong>
{{ trans('admin/hardware/form.warranty_expires') }}
+ @if ($asset->purchase_date)
{!! $asset->present()->warranty_expires() < date("Y-m-d") ? '<i class="fas fa-exclamation-triangle text-orange" aria-hidden="true"></i>' : '' !!}
+ @endif
</strong>
</div>