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

{{ __('job_category_list') }} ({{ count($jobCategories) }})

@if (userCan('job_category.update') || userCan('job_category.delete')) @endif @forelse ($jobCategories as $category) @empty @endforelse
{{ __('image') }} {{ __('icon') }} {{ __('name') }}{{ __('action') }}
category
{{ $category->name }}
@foreach ($category->translations as $translation) @if (app()->getLocale() == $translation->locale) @else {{ getLanguageByCodeInLookUp($translation->locale,$app_language) }}: {{ $translation->name }} @endif @endforeach
@if (userCan('job_category.update')) @endif @if (userCan('job_category.delete'))
@method('DELETE') @csrf
@endif
{{ __('no_data_found') }}
{{ $jobCategories->links() }}
@if (!empty($jobCategory) && userCan('job_category.update'))

{{ __('edit') }} {{ 'category' }}

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

{{ __('create') }} {{ 'category' }}

@if (userCan('job_category.create'))
@csrf {{--
@error('name') {{ $message }} @enderror
--}} @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
@error('icon') {{ $message }} @enderror
@else

{{ __('dont_have_permission') }}

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