@php $latAttributes = [ 'id' => $id . '_lat', 'class' => 'form-control', 'maxlength' => 50, 'data-toggle' => (isset($errors) && $errors->has($errorLatKey) ? 'tooltip': null), 'title' => (isset($errors) && $errors->has($errorLatKey) ? $errors->first($errorLatKey): null) ]; $lngAttributes = [ 'id' => $id . '_lng', 'class' => 'form-control', 'maxlength' => 50, 'data-toggle' => (isset($errors) && $errors->has($errorLngKey) ? 'tooltip': null), 'title' => (isset($errors) && $errors->has($errorLngKey) ? $errors->first($errorLngKey): null) ]; if (!$enabled) { $latAttributes['disabled'] = true; $lngAttributes['disabled'] = true; } @endphp