@php $textAttributes = [ 'id' => $id . '_label', 'class' => 'form-control field-link-label ' . (isset($language) && $language == $defaultLang ? ' default-lang' : ''), 'maxlength' => $maxLength, 'data-toggle' => (isset($errors) && $errors->has($errorKey . '.label') ? 'tooltip': null), 'title' => (isset($errors) && $errors->has($errorKey . '.label') ? $errors->first($errorKey . '.label'): null), 'placeholder' => trans('backend.insert_link_label') ]; $searchAttributes = [ 'id' => $id . '_search', 'class' => 'form-control multiple-picker-search-field', 'maxlength' => '150', 'placeholder' => ucfirst(Illuminate\Support\Facades\Lang::get('backend.search')), ]; $urlAttributes = [ 'id' => $id . '_url', 'class' => 'form-control field-link-url' . (isset($language) && $language == $defaultLang ? ' default-lang' : ''), 'data-toggle' => (isset($errors) && $errors->has($errorKey . '.url') ? 'tooltip': null), 'title' => (isset($errors) && $errors->has($errorKey . '.url') ? $errors->first($errorKey . '.url'): null), 'placeholder' => trans('backend.insert_link_url') ]; $isExternalAttributes = [ 'id' => $id . '_isExternal', 'class' => 'is-external-checkbox', ]; $isNewtabAttributes = [ 'id' => $id . '_isNewtab', 'class' => 'is-newtab-checkbox', ]; if (!$enabled) { $textAttributes['disabled'] = true; $isExternalAttributes['disabled'] = true; $isNewtabAttributes['disabled'] = true; $urlAttributes['disabled'] = true; $searchAttributes['disabled'] = true; } @endphp @if(isset($language))