@if (isset($label))
@php
$for_id = preg_replace('/[^A-Za-z0-9\-]/', '', Str::lower($label));
@endphp
<label for="{{ $for_id ?? "" }}">{{ $label }}</label>
@endif
<select id="{{ $for_id ?? "" }}" name="{{ $name ?? "" }}" class="form-control {{ $class ?? "" }}" @if ($multiple) multiple @endif {{ $attribute ?? "" }}>
</select>
In case of an error, the API will return an error response containing a specific error code 400, 403 Failed and a user-friendly message. Refer to our API documentation for a comprehensive list of error codes and their descriptions.