functionality to Apple Warranty link

This commit is contained in:
akemidx 2023-02-07 17:27:39 -05:00 committed by snipe
parent d9857d955b
commit a84081068d

View file

@ -595,10 +595,12 @@
{{ $asset->warranty_months }}
{{ trans('admin/hardware/form.months') }}
@if (($asset->serial && $asset->model->manufacturer) && $asset->model->manufacturer->name == 'Apple')
@if ($asset->serial)
@if ((strtolower($asset->model->manufacturer->name) == "apple") || (str_starts_with(str_replace(' ','',strtolower($asset->model->manufacturer->name)),"appleinc")))
<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 Status Lookup</span></i>
</a>
@endif
@endif
</div>
</div>