Confirm Uninstall

{{-- Back Button --}}
Back to Modules
{{-- Warning Header --}}

Cannot Uninstall "{{ $targetModule['name'] }}"

The following installed modules depend on {{ $targetModule['name'] }}. Removing it will break their database tables (foreign keys). Choose how to proceed:

{{-- Dependent Modules List --}}

Dependent Modules ({{ count($dependents) }})

@foreach($uninstallDetails as $index => $detail)
{{ $index + 1 }}
{{ $detail['name'] }} v{{ $detail['version'] }} @if($detail['alias'] === $targetModule['alias']) TARGET @endif
@if(!empty($detail['tables']))

Tables: {{ implode(', ', $detail['tables']) }}

@endif
@if($detail['is_active']) Active @else Inactive @endif
@endforeach
{{-- Uninstall Order Info --}}

Cascade uninstall order: @foreach($uninstallDetails as $detail) {{ $detail['name'] }}{{ !$loop->last ? ' → ' : '' }} @endforeach

Deepest dependents are uninstalled first. Each module's tables are dropped and data is permanently deleted. Module files are kept for reinstallation.

{{-- Action Buttons --}}
{{-- Option 1: Cascade Uninstall All --}}

Option 1: Cascade Uninstall All ({{ count($uninstallDetails) }} modules)

Uninstalls all dependent modules first, then uninstalls {{ $targetModule['name'] }}. All tables will be dropped in the correct order. Data will be permanently lost.

{{-- Hidden form, submitted via modal --}}
{{-- Option 2: Force Uninstall --}}

Option 2: Force Uninstall Only "{{ $targetModule['name'] }}"

Uninstalls only {{ $targetModule['name'] }} and drops its tables. Dependent modules will remain installed but their foreign key references will break. You accept the risk of broken data.

{{-- Hidden form, submitted via modal --}}
{{-- Option 3: Cancel --}}
Cancel — Go Back
{{-- ============================================================ --}} {{-- MODAL 1: CASCADE UNINSTALL CONFIRMATION --}} {{-- ============================================================ --}} {{-- ============================================================ --}} {{-- MODAL 2: FORCE UNINSTALL CONFIRMATION --}} {{-- ============================================================ --}} {{-- ============================================================ --}} {{-- MODAL CSS & JS --}} {{-- ============================================================ --}}