@if(empty($name)) <x-boilerplate::input> The name attribute has not been set @else
@isset($label) @endisset @if($prepend || $prependText || $append || $appendText)
@endif @if($prepend || $prependText)
@if($prepend) {!! $prepend !!} @else {!! $prependText !!} @endif
@endif @if($type === 'password') {!! Form::password($name, array_merge(['class' => 'form-control'.$errors->first($name,' is-invalid').(isset($class) ? ' '.$class : '')], $attributes)) !!} @elseif($type === 'file') {!! Form::file($name, array_merge(['class' => 'form-control-file'.$errors->first($name,' is-invalid').(isset($class) ? ' '.$class : '')], $attributes)) !!} @elseif($type === 'select') {!! Form::select($name, $options ?? [], old($name, $value ?? ''), array_merge(['class' => 'form-control'.$errors->first($name,' is-invalid').(isset($class) ? ' '.$class : '')], $attributes)) !!} @else {!! Form::{$type ?? 'text'}($name, old($name, $value ?? ''), array_merge(['class' => 'form-control'.$errors->first($name,' is-invalid').(isset($class) ? ' '.$class : '')], $attributes)) !!} @endif @if($append || $appendText)
@if($append) {!! $append !!} @else {!! $appendText !!} @endif
@endif @if($prepend || $prependText || $append || $appendText)
@endif @if($help ?? false) @lang($help) @endif @error($name)
{{ $message }}
@enderror
@endif