2024-07-23 13:50:02 +00:00
|
|
|
@if(isset($label))
|
|
|
|
<label for="{{ $id ?? $name }}">{{ $label }}</label>
|
|
|
|
@endisset
|
2024-07-22 13:09:45 +00:00
|
|
|
<div class="form-group">
|
2024-07-23 13:50:02 +00:00
|
|
|
<div class="input-group has-validation">
|
|
|
|
@if(isset($icon) || isset($prepend))
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
<span class="input-group-text">@isset($icon)<i class="fas fa-fw {{ $icon }}"></i>@endisset @isset($prepend){!! $prepend !!}@endisset</span>
|
|
|
|
</div>
|
|
|
|
@endif()
|
|
|
|
{{ $slot }}
|
|
|
|
<span class="invalid-feedback" role="alert">
|
|
|
|
@error($name)
|
|
|
|
{{ $message }}
|
|
|
|
@elseif(isset($feedback))
|
|
|
|
{{ $feedback }}
|
|
|
|
@enderror
|
|
|
|
</span>
|
2024-07-22 13:09:45 +00:00
|
|
|
</div>
|
2024-07-23 13:50:02 +00:00
|
|
|
@isset($helper)
|
|
|
|
<span class="input-helper">{{ $helper }}</span>
|
|
|
|
@endif
|
|
|
|
</div>
|