@extends('admin.layouts.app') @section('title') {{ __('industry_types_list') }} @endsection @section('content')

{{ __('industry_types_list') }} ({{ $industrytypes ? count($industrytypes) : '0' }})

@if (userCan('industry_types.update') || userCan('industry_types.delete')) @endif @forelse ($industrytypes as $key => $industrytype) @empty @endforelse
{{ __('name') }}{{ __('action') }}
{{ $industrytype->name }}
@foreach ($industrytype->translations as $translation) {{ getLanguageByCode($translation->locale) }}: {{ $translation->name }} @endforeach
@if (userCan('industry_types.update')) @endif @if (userCan('industry_types.delete'))
@method('DELETE') @csrf
@endif
{{ __('no_data_found') }}
@if (!empty($industryType) && userCan('industry_types.update'))

{{ __('edit') }} {{ __('industry_type') }}

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

{{ __('create') }} {{ __('industry_type') }}

@if (userCan('industry_types.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