<x-wireui:modal-card title="{{ $roomId ? __('rooms.EditRoom') : __('rooms.CreateNew') }}" blur wire:model.defer="showModal">
    <div class="space-y-4">
        <x-wireui:input type="number" label="{{__('rooms.floor')}}" wire:model.defer="fields.floor" />
        <x-wireui:select
            label="{{__('rooms.type')}}"
            wire:model.defer="fields.type"
            placeholder="{{__('rooms.select_type')}}"
            :options="$typeOptions"
            option-label="name"
            option-value="value"
        />
        <x-wireui:input label="{{__('rooms.name')}}" wire:model.defer="fields.name" />
    </div>
    <x-slot name="footer">
        <div class="flex justify-between w-full">
            <x-wireui:button flat label="{{__('rooms.cancel')}}" wire:click="closeModal" />
            <x-wireui:button primary label="{{__('rooms.submit')}}" wire:click="save" />
        </div>
    </x-slot>
</x-wireui:modal-card>
    