mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-15 09:52:55 -05:00
fix logo display issue
This commit is contained in:
@@ -373,16 +373,7 @@ class Payment extends Model implements HasMedia
|
||||
{
|
||||
$company = Company::find($this->company_id);
|
||||
|
||||
$logo = $company->getMedia('logo')->first();
|
||||
|
||||
$isSystem = FileDisk::whereSetAsDefault(true)->first()->isSystem();
|
||||
$isLocalhost = config('session.domain') === 'localhost';
|
||||
|
||||
if ($logo && $isLocalhost && $isSystem) {
|
||||
$logo = $logo->getPath();
|
||||
} else if($logo) {
|
||||
$logo = $logo->getFullUrl();
|
||||
}
|
||||
$logo = $company->logo;
|
||||
|
||||
view()->share([
|
||||
'payment' => $this,
|
||||
|
||||
Reference in New Issue
Block a user