@props([
'label' => null,
'name' => '',
'feedback' => null,
'options' => [],
'noLabel' => false,
])
@php
$name = $attributes->has('wire:model') ? $attributes->get('wire:model') : $name;
@endphp
has('x-select2')) wire:ignore @endif class="form-group" @if ($attributes->has('x-show')) x-show="{{ $attributes->get('x-show') }}" x-cloak @endif>
@if(!$noLabel)
@endif
@if ($feedback)
@elseif ($errors->has($name))
{{ $errors->first($name) }}
@endif