@php $error = $errors->has($name) ? 'is-invalid' : ''; @endphp merge(['class' => "form-control ". $error]) !!}> @error($name)