<div class="modal fade" id="uninstallModal-{{ $addon['name'] }}" tabindex="-1">
    <div class="modal-dialog">
        <form method="POST" action="{{ route('admin.addon-modules.uninstall', $addon['name']) }}" class="modal-content">
            @csrf
            <div class="modal-header">
                <h5 class="modal-title">{{ __('admin/addons.uninstall_confirm_title', ['name' => $addon['label']]) }}</h5>
            </div>
            <div class="modal-body">
                <p class="text-danger"><i class="fas fa-exclamation-triangle"></i> {{ __('admin/addons.uninstall_confirm_body', ['tables' => '?']) }}</p>
                <div class="mb-3">
                    <label class="form-label">{{ __('admin/addons.uninstall_typing_label') }} <span class="text-danger">*</span></label>
                    <input type="text" name="confirm_name" class="form-control" placeholder="{{ $addon['name'] }}" required>
                    @error('confirm_name') <div class="invalid-feedback">{{ $message }}</div> @enderror
                </div>
                <div class="form-check">
                    <input type="checkbox" name="force" value="1" id="force-{{ $addon['name'] }}" class="form-check-input">
                    <label for="force-{{ $addon['name'] }}" class="form-check-label">{{ __('admin/addons.force_uninstall') }}</label>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{{ __('admin/common.cancel') }}</button>
                <button type="submit" class="btn btn-danger">{{ __('admin/addons.uninstall') }}</button>
            </div>
        </form>
    </div>
</div>
