Commit 2b96ca557dfcd5b56c0e92eff72f96f88a1ad9ad
1 parent
f46e3cd1e4
Exists in
master
Обновление
Showing 2 changed files with 13 additions and 5 deletions Side-by-side Diff
resources/views/employers/cabinet45.blade.php
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | <div class="cabinet__side"> |
15 | 15 | <div class="cabinet__side-toper"> |
16 | 16 | <div class="cabinet__side-toper-pic"> |
17 | - @if (isset($Employer[0]->logo)) | |
17 | + @if (!empty($Employer[0]->logo)) | |
18 | 18 | <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> |
19 | 19 | @else |
20 | 20 | <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> |
... | ... | @@ -38,7 +38,7 @@ |
38 | 38 | </div> |
39 | 39 | <div class="cabinet__avatar"> |
40 | 40 | <div class="cabinet__avatar-pic"> |
41 | - @if (isset($Employer[0]->logo)) | |
41 | + @if (!empty($Employer[0]->logo)) | |
42 | 42 | <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> |
43 | 43 | @else |
44 | 44 | <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> |
resources/views/info_company_new.blade.php
... | ... | @@ -99,7 +99,12 @@ |
99 | 99 | </div> |
100 | 100 | @endif |
101 | 101 | |
102 | - <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $company[0]->name_company }}" class="thing__pic"> | |
102 | + @if (!empty($company[0]->logo)) | |
103 | + <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $company[0]->name_company }}" class="thing__pic"> | |
104 | + @else | |
105 | + <img src="{{ asset('images/logo_emp.png') }}" alt="{{ $company[0]->name_company }}" class="thing__pic"> | |
106 | + @endif | |
107 | + | |
103 | 108 | <h1 class="thing__title">{{ $company[0]->name_company }}</h1> |
104 | 109 | <p class="thing__text">{{ $company[0]->text }}</p> |
105 | 110 | <div class="thing__buttons"> |
... | ... | @@ -190,8 +195,11 @@ |
190 | 195 | @foreach ($job->ad_job as $item) |
191 | 196 | <div class="main__employer-page-two-item"> |
192 | 197 | <div class="main__employer-page-two-item-toper"> |
193 | - <!-- end --> | |
194 | - <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $job->name }}"> | |
198 | + @if (!empty($company[0]->logo)) | |
199 | + <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $job->name }}"> | |
200 | + @else | |
201 | + <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $job->name }}"> | |
202 | + @endif | |
195 | 203 | <span>{{ $job->name }}</span> |
196 | 204 | </div> |
197 | 205 | <div class="main__employer-page-two-item-title">{{ $item->flot }}</div> |