@if($icon)
@if($iconPosition == 'right') merge(['class' => $errors->has($name) ? 'form-control is-invalid' : 'form-control'])}} id="{{$getId($attributes)}}" type="{{$getType($attributes)}}" name="{{$name}}" value="{{old($name) ? old($name): (isset($value) ? $value : '')}}" > @endif
@if($iconPosition == 'left') merge(['class' => $errors->has($name) ? 'form-control is-invalid' : 'form-control'])}} id="{{$getId($attributes)}}" type="{{$getType($attributes)}}" name="{{$name}}" value="{{old($name) ? old($name): (isset($value) ? $value : '')}}" > @endif
@else merge(['class' => $errors->has($name) ? 'form-control is-invalid' : 'form-control'])}} id="{{$getId($attributes)}}" type="{{$getType($attributes)}}" name="{{$name}}" value="{{old($name) ? old($name): (isset($value) ? $value : '')}}" > @endif
{{$errors->first($name)}}