{{ @$data['title'] }}
@csrf
@if ($errors->has('department_id'))
{{ $errors->first('department_id') }}
@endif
@if ($errors->has('designation_id'))
{{ $errors->first('designation_id') }}
@endif
@if ($errors->has('shift_id'))
{{ $errors->first('shift_id') }}
@endif
@if ($errors->has('title'))
{{ $errors->first('title') }}
@endif
@foreach ($data['competence_types'] as $competence_type)
{{ $competence_type->name }}

@foreach ($competence_type->competencies as $competences) @if (@$data['edit']->rates) @php $rate = array_values( array_filter($data['edit']->rates, function ($item) use ($competences) { return @$item['id'] == $competences->id ? true : false; }), ); @endphp @endif
{{ $competences->name }}
@endforeach @endforeach