@include('components.form.label')

@if (($disabled ?? false) || ($readonly ?? false))
    @include('components.form.input', ['type' => 'hidden', 'label' => false])
@endif
<select name="{{ $name }}" class="form-control {{ $class ?? null }}"
    @if ($id_name ?? false) id="{{ $id_name }}" @endif
	@if ($style ?? false) style="{{ $style }}" @endif
	@if ($required ?? false) required @endif
    @if ($readonly ?? false) readonly @endif
	@if ($disabled ?? false) disabled @endif
	@if ($multiple ?? false) multiple @endif
    @if ($size ?? false) size="{{ $size }}" @endif
    @if ($dataId ?? false) data-id="{{ $dataId }}" @endif
	{{ $meta ?? null}}
>
	@isset($with_empty)
		<option value="{{ $with_empty_value ?? '' }}">{{ $with_empty }}</option>
	@endisset

	@if ($tree ?? false)
		@include('components.form.options.options-tree')
	@else
		@if ($multiple ?? false)
			@include('components.form.options.options-multiple')
		@else
			@include('components.form.options')
		@endif
	@endif

</select>
