@props(['options', 'modelId' , 'fieldName', 'selected' ])
<div>
    <select wire:change="selectChanged($event.target.value,'{{ $fieldName}}', {{ $modelId }})" class="border rounded">
            @foreach ($options as $id => $name)
                <option
                    value="{{ $id }}"
                    @if ($id == $selected)
                        selected="selected"
                    @endif
                >
                    {{ $name }}
                </option>
            @endforeach

    </select>
</div>