Added Applecare lookup link if manufacturer is apple

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-09-14 19:43:48 -07:00
parent 3877770160
commit 72feaee6c0

View file

@ -584,7 +584,11 @@
{{ $asset->warranty_months }}
{{ trans('admin/hardware/form.months') }}
@if (($asset->serial && $asset->model->manufacturer) && $asset->model->manufacturer->name == 'Apple')
<a href="https://checkcoverage.apple.com/us/{{ \App\Models\Setting::getSettings()->locale }}/?sn={{ $asset->serial }}" target="_blank">
<i class="fa-brands fa-apple" aria-hidden="true"><span class="sr-only">Applecare Statys Lookup</span></i>
</a>
@endif
</div>
</div>