Blame view
resources/views/block_real.blade.php
916 Bytes
98484071e Обновленная стран... |
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 |
@php $colors = Array('#F4C4C2', '#FBF1C8', '#ECFDEF', '#F3ECF6', '#ECFDEF'); $i = 0; $k = 0; @endphp @if ($flot->count()) @foreach ($flot as $key => $cat) @if ($k == 0) <div class="vacancies__list-label">{{ $title }}</div> @endif <a href="{{ route('list-vacancies', ['categories' => $cat->id_title]) }}" class="vacancies__item"> <span style="border-color:{{$colors[$i]}}"> <b>{{ $cat->name }}</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">{{ $title }}</div> <a class="vacancies__item"> <span style="border-color:{{$colors[1]}}"> <b>Тут нет информации</b> </span> </a> @endif |