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

{{ __('profession_list') }} ({{ count($professions) }})

@if (userCan('professions.update') || userCan('professions.delete')) @endif @forelse ($professions as $profession) @empty @endforelse
{{ __('name') }}{{ __('action') }}
{{ $profession->name }}
@foreach ($profession->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($prof) && userCan('professions.update'))

{{ __('edit') }} {{ __('profession') }}

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

{{ __('create') }} {{ __('profession') }}

@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