mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Merge pull request #12669 from akemidx/feature/sc-20178
#20178: Added Dell and Lenovo to warranty link function
This commit is contained in:
commit
e8e1ada776
BIN
public/img/demo/manufacturers/dellicon.png
Normal file
BIN
public/img/demo/manufacturers/dellicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
public/img/demo/manufacturers/lenovoicon.png
Normal file
BIN
public/img/demo/manufacturers/lenovoicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 766 B |
|
@ -42,5 +42,6 @@ return [
|
||||||
'error_messages' => 'Error messages:',
|
'error_messages' => 'Error messages:',
|
||||||
'success_messages' => 'Success messages:',
|
'success_messages' => 'Success messages:',
|
||||||
'alert_details' => 'Please see below for details.',
|
'alert_details' => 'Please see below for details.',
|
||||||
'custom_export' => 'Custom Export'
|
'custom_export' => 'Custom Export',
|
||||||
|
'mfg_warranty_lookup' => ':manufacturer Warranty Status Lookup',
|
||||||
];
|
];
|
||||||
|
|
|
@ -598,7 +598,15 @@
|
||||||
@if ($asset->serial && $asset->model->manufacturer)
|
@if ($asset->serial && $asset->model->manufacturer)
|
||||||
@if ((strtolower($asset->model->manufacturer->name) == "apple") || (str_starts_with(str_replace(' ','',strtolower($asset->model->manufacturer->name)),"appleinc")))
|
@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">
|
<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>
|
<i class="fa-brands fa-apple" aria-hidden="true"><span class="sr-only">{{ trans('hardware/general.mfg_warranty_lookup') }}</span></i>
|
||||||
|
</a>
|
||||||
|
@elseif ((strtolower($asset->model->manufacturer->name) == "dell") || (str_starts_with(str_replace(' ','',strtolower($asset->model->manufacturer->name)),"dellinc")))
|
||||||
|
<a href="https://www.dell.com/support/home/en-us?app=warranty" target="_blank">
|
||||||
|
<img src="/img/demo/manufacturers/dellicon.png" style="width:25px;height:25px;"><span class="sr-only">{{ trans('hardware/general.mfg_warranty_lookup') }}</span></i>
|
||||||
|
</a>
|
||||||
|
@elseif ((strtolower($asset->model->manufacturer->name) == "lenovo") || (str_starts_with(str_replace(' ','',strtolower($asset->model->manufacturer->name)),"lenovoinc")))
|
||||||
|
<a href="https://pcsupport.lenovo.com/us/en/warrantylookup#/" target="_blank">
|
||||||
|
<img src="/img/demo/manufacturers/lenovoicon.png" style="width:25px;height:25px;"><span class="sr-only">{{ trans('hardware/general.mfg_warranty_lookup') }}</span></i>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
|
|
Loading…
Reference in a new issue