Blame view

resources/views/ajax/education.blade.php 1.12 KB
a9dfa8c95   Андрей Ларионов   Обновление на 7 м...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  <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>