@extends('backend.layouts.app') @section('title') {{ __('team_size_list') }} @endsection @section('content')
This list will be displayed on the company job page. The company can choose his team size from a list.

{{ __('team_size_list') }} ({{ count($team_sizes) }})

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

{{ __('edit') }} {{ __('team_size') }}

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

{{ __('create') }} {{ __('team_size') }}

@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
{{ $team_sizes->links() }}
@endsection