<div>
    <div class="mw-modal">
        <div class="mw-modal-dialog">
            <div class="mw-modal-content">
                @if(isset($moduleData['name']))


                    <form wire:submit.prevent="confirm">
                        <div class="mw-modal-header">
                            <h5 class="mw-modal-title">
                                {{_e('Uninstall')}} {{$moduleData['name']}}
                            </h5>
                            <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"
                                    wire:click="$emit('closeModal')"></button>

                        </div>
                        <div class="mw-modal-body">
                            {{_e('Are you sure you want to uninstall')}} {{$moduleData['name']}} ?
                        </div>
                        <div
                            class="mw-modal-footer d-flex justify-content-between align-items-center">
                            <button type="button" class="mw-admin-action-links mw-adm-liveedit-tabs mw-liveedit-button-animation-component" data-bs-dismiss="modal" aria-label="Close"
                                    wire:click="$emit('closeModal')">
                                {{_e('Cancel')}}
                            </button>

                            <button type="submit" class="mw-admin-action-links mw-adm-liveedit-tabs mw-liveedit-button-animation-component text-danger">
                                {{_e('Uninstall')}}
                            </button>

                        </div>
                    </form>

                @else
                    <div class="alert alert-danger">{{_e('Please select a module')}}</div>
                @endif

            </div>
        </div>
    </div>
</div>
