@extends('backend.layouts.app') @section('title') {{ __('organization_types_list') }} @endsection @section('content')
This list will be displayed on the company settings page as well as the profile setup page. The company can select which organization type his company was in from a list.

{{ __('organization_types_list') }} ({{ $organizationTypes ? count($organizationTypes) : '0' }})

@forelse ($organizationTypes as $key => $organizationtype) @empty @endforelse
{{ __('name') }} {{ __('action') }}
{{ $organizationtype->name }}
@foreach ($organizationtype->translations as $translation) @if (app()->getLocale() == $translation->locale) @else {{ getLanguageByCodeInLookUp($translation->locale,$app_language) }}: {{ $translation->name }} @endif @endforeach
@method('DELETE') @csrf
{{ __('no_data_found') }}
@if (!empty($organizationType))

{{ __('edit') }} {{ __('organization_type') }}

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

{{ __('create') }} {{ __('organization_type') }}

@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
@endif
@endsection