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

    </select>
</div>