mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Ignore warning icon if no purchase date
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
24910433a1
commit
1885e73704
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue