dynamic link w/ dynamic image

This commit is contained in:
akemidx 2023-04-11 14:32:11 -04:00
parent 968701b971
commit 71ff987e3c

View file

@ -608,9 +608,9 @@
<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>
@elseif ((strtolower($asset->model->manufacturer->name) == "hp") || (str_starts_with(str_replace(' ','',strtolower($asset->model->manufacturer->name)),"lenovoinc")))
<a href="{{ (str_replace('_testlocale',\App\Models\Setting::getSettings()->locale,$asset->support_url))}}" 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>
@elseif (strtolower($asset->model->manufacturer->name))
<a href="{{ (str_replace('_testlocale_',\App\Models\Setting::getSettings()->locale,$asset->model->manufacturer->support_url))}}" target="_blank">
<img src="{{ Storage::disk('public')->url(app('manufacturers_upload_path').e($asset->model->manufacturer->image)) }}" style="width:25px;height:25px;"><span class="sr-only">{{ trans('hardware/general.mfg_warranty_lookup') }}</span></i>
</a>
@endif