Commit 224d9d0ee8f73df59477ed109247ff5a318a8bd4

Authored by Андрей Ларионов
1 parent e3c7b0ffb6

Эмблемы работодатели

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>