education.blade.php
1.12 KB
<div class="main__ads" id="block" name="block">
@if ($educations->count())
@foreach($educations as $edu)
<div class="main__ads-item">
<div class="main__ads-item-pic">
<img src="@if (!empty($edu->image)) {{ asset(Storage::url($edu->image)) }} @else {{ asset('images/education.jpg') }} @endif" alt="{{ $edu->name }}">
<span>
<svg>
<use xlink:href="{{ asset('images/sprite.svg#v') }}"></use>
</svg>
</span>
</div>
<div class="main__ads-item-body">
<b>{{ $edu->name }}</b>
<span>{{ $edu->program_education->count() }} учебных направлений</span>
<a href="" class="button button_light">Читать далее</a>
</div>
</div>
@endforeach
{{ $educations->appends($_GET)->links('paginate') }}
@else
<H2>Нет данных</H2>
@endif
</div>