mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -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">
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue