@php if ( Ui::keyset($attributes, 'layout') == null || (Ui::keyset($attributes, 'layout') != null && $attributes['layout'] == 'h') ) { $horizental = true; $row = ' row'; $labelClass = 'col-2 col-form-label'; } else { $horizental = false; $row = ''; $labelClass = 'control-label'; } if (Ui::keyset($attributes, 'autocomplete') != null) { $typeaheadClass = 'typeahead'; } else { $typeaheadClass = ''; } if (isset($attributes['required']) && $attributes['required'] === true) { $labelClass .= ' required'; } @endphp
{{ Form::label($name . '_text', __('ui.' . $name), ['class' => $labelClass]) }} @if ($horizental)
@endif {{ Form::text($name . '_text', $textValue, array_merge(['class' => 'form-control open-tree', 'readonly' => 'readonly'], $attributes)) }} {{ Form::hidden($name, $value) }} @if ($horizental)
@endif