Skip to content

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Jun 27, 2021
1 parent 9c6e776 commit 15645ee
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Abstracts/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function company()
*/
public function owner()
{
return $this->belongsTo('App\Models\Auth\User', 'id', 'created_by');
return $this->belongsTo('App\Models\Auth\User', 'created_by', 'id');
}

/**
Expand Down
4 changes: 4 additions & 0 deletions app/Http/ViewComposers/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ public function compose(View $view)

if ($new_apps) {
foreach ($new_apps as $new_app) {
if (setting('notifications.' . user()->id . '.' . $new_app->alias)) {
continue;
}

$notifications++;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@stack('company_logo_start')
@if (!$hideCompanyLogo)
@if (!empty($document->contact->logo) && !empty($document->contact->logo->id))
<img class="c-logo" src="{{ Storage::url($document->contact->logo->id) }}" height="128" width="128" alt="{{ $document->contact_name }}"/>
<img class="c-logo" src="{{ $logo }}" alt="{{ $document->contact_name }}"/>
@else
<img class="c-logo" src="{{ $logo }}" alt="{{ setting('company.name') }}" />
@endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@stack('company_logo_start')
@if (!$hideCompanyLogo)
@if (!empty($document->contact->logo) && !empty($document->contact->logo->id))
<img class="d-logo" src="{{ Storage::url($document->contact->logo->id) }}" height="128" width="128" alt="{{ $document->contact_name }}"/>
<img class="d-logo" src="{{ $logo }}" alt="{{ $document->contact_name }}"/>
@else
<img class="d-logo" src="{{ $logo }}" alt="{{ setting('company.name') }}"/>
@endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@stack('company_logo_start')
@if (!$hideCompanyLogo)
@if (!empty($document->contact->logo) && !empty($document->contact->logo->id))
<img src="{{ Storage::url($document->contact->logo->id) }}" height="128" width="128" alt="{{ $document->contact_name }}"/>
<img src="{{ $logo }}" alt="{{ $document->contact_name }}"/>
@else
<img src="{{ $logo }}" alt="{{ setting('company.name') }}" />
@endif
Expand Down

0 comments on commit 15645ee

Please sign in to comment.