Blame view

resources/views/block_real_new.blade.php 941 Bytes
2be890eea   Андрей Ларионов   коммит по изменен...
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
26
27
28
29
30
31
  @php $colors = Array('#F4C4C2', '#FBF1C8', '#ECFDEF', '#F3ECF6', '#ECFDEF');
   $i = 0;
   $k = 0;
  @endphp
  @if (count($it_main) > 0)
      @foreach ($it_main as $cat)
         @if ($k == 0)
             <div class="vacancies__list-label">{{ $category }}</div>
         @endif
  
             <a href="{{ route('list-vacancies', ['job' => $cat['id_job']]) }}" class="vacancies__item">
                  <span style="border-color:{{$colors[$i]}}">
                      <b>{{ $cat['jn'] }}</b>
                      <i>Вакансий: <span>{{ $cat['cnt'] }}</span></i>
                  </span>
              </a>
  
          @php
              $i++;
              $k++;
              if ($i > 4) {$i = 0;}
          @endphp
      @endforeach
  @else
      <div class="vacancies__list-label">{{ $category }}</div>
      <a class="vacancies__item">
          <span style="border-color:{{$colors[1]}}">
              <b>Тут нет информации</b>
          </span>
      </a>
  @endif