formatting

This commit is contained in:
spencerrlongg 2023-10-17 13:41:31 -05:00
parent 277608d962
commit 4bdd070f7b

View file

@ -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)) {