mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
formatting
This commit is contained in:
parent
277608d962
commit
4bdd070f7b
|
@ -106,12 +106,9 @@ class Label implements View
|
||||||
// Should we use the assets assigned company logo? (A.K.A. "Is `Labels > Use Asset Logo` enabled?"), and do we have a company logo?
|
// Should we use the assets assigned company logo? (A.K.A. "Is `Labels > Use Asset Logo` enabled?"), and do we have a company logo?
|
||||||
if ($settings->label2_asset_logo && $asset->company && $asset->company->image!='') {
|
if ($settings->label2_asset_logo && $asset->company && $asset->company->image!='') {
|
||||||
$logo = Storage::disk('public')->path('companies/'.e($asset->company->image));
|
$logo = Storage::disk('public')->path('companies/'.e($asset->company->image));
|
||||||
}
|
} elseif (!empty($settings->label_logo)) {
|
||||||
else {
|
|
||||||
// Use the general site label logo, if available
|
// Use the general site label logo, if available
|
||||||
if (!empty($settings->label_logo)) {
|
$logo = Storage::disk('public')->path('/'.e($settings->label_logo));
|
||||||
$logo = Storage::disk('public')->path('/'.e($settings->label_logo));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($logo)) {
|
if (!empty($logo)) {
|
||||||
|
|
Loading…
Reference in a new issue