File: D:/HostingSpaces/SBogers10/eleo.komma.nl/resources/views/organisms/vacancyList.blade.php
@if(isset($vacancies) && count($vacancies) > 0)
<ul class="o-vacancies">
@foreach($vacancies as $key => $vacancy)
@if(isset($vacancy->translation))
<li class="o-vacancies__item">
<a class="o-vacancies__link"
href="{{$links->vacancies->route . '/' . $vacancy->translation->slug}}">
<div class="o-vacancies__content">
<h2 class="o-vacancies__title">{{$vacancy->translation->name}}</h2>
@if(!empty($vacancy->translation->description))
<h3 class="o-vacancies__subtitle">{{$vacancy->translation->description}}</h3>
@endif
<div class="o-vacancies__properties">
@include('components.vacancyProperties', [
'properties' => [
'level' => $vacancy->translation->level,
'experience' => $vacancy->translation->experience,
'salary' => $vacancy->translation->salary,
'hours' => $vacancy->translation->hours,
]
])
</div>
</div>
<span class="o-vacancies__icon">
<span class="o-vacancies__icon-shape" hidden>
@include('components.svg.button-shape')
</span>
<span class="o-vacancies__icon-arrow">
@include('components.icons.arrow')
</span>
<span class="o-vacancies__icon-shape" hidden>
@include('components.svg.button-shape')
</span>
</span>
</a>
</li>
@endif
@if(!empty($amountOfVacancies))
@break($amountOfVacancies == $key + 1)
@endif
@endforeach
</ul>
@else
<div>{{__('vacancies.noVacancies')}}</div>
@endif