@props(['name', 'id' => null, 'label' => null, 'options' => [], 'optionValue' => 'value', 'optionLabel' => 'label', 'placeholder' => null, 'required' => false, 'disabled' => false, 'errorMassage' => null])
@php
$id = $id ?? $name;
$selected = old($name, $attributes->get('value'));
$isRequired = filter_var($required, FILTER_VALIDATE_BOOLEAN) || $attributes->has('required');
@endphp
@if ($label)
{{ $label }}
@endif