@props([ 'name', 'label' => null, 'value' => null, 'type' => 'text', 'helperText' => null, ]) @if($label) @endif merge([ 'class' => 'form-control next-input' . ($errors->has($name) ? ' is-invalid' : ''), 'name' => $name, 'id' => $name, ]) }} value="{{ old($name) && ! is_array(old($name)) ? old($name) : $value }}"> @if($helperText) {{ Form::helper($helperText) }} @endif {{ $slot }}