Commit a82fb8ae68ef458723d871826be27d29ea164ec5
1 parent
e983bf0e27
Exists in
master
Главная страница
Showing 1 changed file with 7 additions and 1 deletions Side-by-side Diff
resources/views/index.blade.php
... | ... | @@ -140,9 +140,15 @@ |
140 | 140 | <div class="swiper-slide"> |
141 | 141 | <div class="employer__item"> |
142 | 142 | @endif |
143 | - <a href=""> | |
143 | + @if (!empty($emp->logo)) | |
144 | + <a href="{{ route('ad-employer', ['ad_employer' => $emp->id]) }}"> | |
144 | 145 | <img src="{{ asset(Storage::url($emp->logo)) }}" alt="{{ $emp->name_company }}"> |
145 | 146 | </a> |
147 | + @else | |
148 | + <a href="{{ route('ad-employer', ['ad_employer' => $emp->id]) }}"> | |
149 | + <img src="{{ asset('images/logo_emp.png') }}" alt="{{ $emp->name_company }}"> | |
150 | + </a> | |
151 | + @endif | |
146 | 152 | @if (($rec==4) || ($rec==8) || ($rec==12) || ($rec==16) || ($rec==20) || ($rec == $count)) |
147 | 153 | </div> |
148 | 154 | </div> |