Blame view
resources/views/ajax/vacancies.blade.php
697 Bytes
bdd23ce34 На сервер. Правки |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
@php $colors = Array('#F4C4C2', '#FBF1C8', '#ECFDEF', '#F3ECF6', '#ECFDEF'); $i = 0; @endphp @if ($categories->count()) @foreach ($categories as $cat) <a href="{{ route('list-vacancies', ['categories' => $cat->id]) }}" class="vacancies__item"> <span style="border-color:{{$colors[$i]}}"> <b>{{ $cat->name }}</b> <u>{{ $cat->min_salary }} — {{ $cat->max_salary }} ₽</u> <i>Вакансий: <span>{{ $cat->cnt }}</span></i> </span> </a> @php $i++; if ($i > 4) {$i = 0;} @endphp @endforeach @else Тут пока нет никаких вакансий @endif |