@extends('backend.layouts.app') @section('title') {{ __('job_role_list') }} @endsection @section('content')

{{ __('job_role_list') }} ({{ count($jobRoles) }})

@if (userCan('job_role.update') || userCan('job_role.delete')) @endif @forelse ($jobRoles as $key => $jobrole) @empty @endforelse
{{ __('name') }} {{ __('jobs') }}{{ __('action') }}
{{ $jobrole->name }}
@foreach ($jobrole->translations as $translation) @if (app()->getLocale() == $translation->locale) @else {{ getLanguageByCodeInLookUp($translation->locale,$app_language) }}: {{ $translation->name }} @endif @endforeach
{{ $jobrole->jobs_count }} {{ __('jobs') }} @if (userCan('job_role.update')) @endif @if (userCan('job_role.delete'))
@method('DELETE') @csrf
@endif
{{ __('no_data_found') }}
{{ $jobRoles->links() }}
@if (!empty($jobRole) && userCan('job_role.update'))

{{ __('edit') }} {{ __('job_role') }}

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

{{ __('create') }} {{ __('job_role') }}

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

{{ __('dont_have_permission') }}

@endif
@endif
@endsection @section('style') @endsection @section('script') @endsection