Merge pull request #11825 from snipe/features/added_applecare_lookup_link

Added Applecare lookup link if manufacturer is apple
This commit is contained in:
snipe 2022-09-14 19:54:47 -07:00 committed by GitHub
commit ad7bc6f38a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>