Ignore warning icon if no purchase date

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-09-15 15:42:47 -07:00
parent 24910433a1
commit 1885e73704

View file

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