@extends('backend.layouts.app') @section('title') {{ __('experience_list') }} @endsection @section('content')
This list will be displayed on the candidate settings page. The candidate can choose his experiance from a list.

{{ __('experience_list') }} ({{ count($experiences) }})

{{-- --}}
@if (userCan('professions.update') || userCan('professions.delete')) @endif @forelse ($experiences as $exp) @empty @endforelse
{{ __('name') }}{{ __('action') }}
{{ $exp->name }}
@foreach ($exp->translations as $translation) @if (app()->getLocale() == $translation->locale) @else {{ getLanguageByCodeInLookUp($translation->locale, $app_language) }}: {{ $translation->name }} @endif @endforeach
@if (userCan('professions.update')) @endif @if (userCan('professions.delete'))
@method('DELETE') @csrf
@endif
{{ __('no_data_found') }}
@if (!empty($experience) && userCan('professions.update'))

{{ __('edit') }} {{ __('experience') }}

{{ __('create') }}
@csrf @method('PUT') @foreach ($app_language as $key => $language) @php $label = __('name') . ' ' . getLanguageByCodeInLookUp($language->code, $app_language); $name = "name_{$language->code}"; $code = $experience->translations[$key]['locale'] ?? ''; $data = $experience->translations->where('locale', $language->code)->first(); $value = $data ? $data->name : ''; @endphp
@if ($errors->has($name)) {{ $errors->first($name) }} @endif
@endforeach
@else

{{ __('create') }} {{ __('experience') }}

@if (userCan('job_role.create'))
@csrf @foreach ($app_language as $key => $language) @php $label = __('name') . ' ' . getLanguageByCodeInLookUp($language->code, $app_language); $name = "name_{$language->code}"; @endphp
@if ($errors->has($name)) {{ $errors->first($name) }} @endif
@endforeach
@else

{{ __('dont_have_permission') }}

@endif
@endif
@endsection