<x-wireui:modal-card title="{{ $artistId ? __('artists.EditArtist') : __('artists.CreateNew') }}" blur wire:model.defer="showModal">
    <div class="space-y-4">
        <x-wireui:select
            label="{{__('artists.category')}}"
            wire:model.defer="fields.category"
            placeholder="{{__('artists.select_category')}}"
            :options="$categoryOptions"
            option-label="name"
            option-value="value"
        />
        <x-wireui:input label="{{__('artists.name')}}" wire:model.defer="fields.name" />
        <x-wireui:toggle label="{{__('artists.enable')}}" wire:model.defer="fields.enable" />
    </div>

    <x-slot name="footer">
        <div class="flex justify-between w-full">
            <x-wireui:button flat label="{{__('artists.cancel')}}" wire:click="closeModal" />
            <x-wireui:button primary label="{{__('artists.submit')}}" wire:click="save" />
        </div>
    </x-slot>
</x-wireui:modal-card>
    