diff --git a/resources/views/components/modal-confirmation.blade.php b/resources/views/components/modal-confirmation.blade.php
index 5859a2f00..eefb7d547 100644
--- a/resources/views/components/modal-confirmation.blade.php
+++ b/resources/views/components/modal-confirmation.blade.php
@@ -1,58 +1,161 @@
@props([
- 'title' => null,
- 'isErrorButton' => false,
- 'buttonTitle' => 'Confirm Action',
- 'buttonFullWidth' => false,
- 'customButton' => null,
- 'disabled' => false,
- 'action' => 'delete',
- 'content' => null,
+'title' => 'Are you sure?',
+'isErrorButton' => false,
+'buttonTitle' => 'Confirm Action',
+'buttonFullWidth' => false,
+'customButton' => null,
+'disabled' => false,
+'action' => 'delete',
+'content' => null,
+'checkboxes' => [],
+'checkboxActions' => [],
+'actions' => [],
+'confirmWithText' => true,
+'confirmWithPassword' => true,
])
-
+
+
@if ($customButton)
-
- {{ $customButton }}
-
+ @if ($buttonFullWidth)
+
+ {{ $customButton }}
+
@else
- @if ($content)
-
- {{ $content }}
-
- @else
-
- {{ $buttonTitle }}
-
- @endif
+
+ {{ $customButton }}
+
+ @endif
+ @else
+ @if ($content)
+
+ {{ $content }}
+
+ @else
+ @if ($disabled)
+ @if ($buttonFullWidth)
+
+ {{ $buttonTitle }}
+
+ @else
+
+ {{ $buttonTitle }}
+
+ @endif
+ @elseif ($isErrorButton)
+ @if ($buttonFullWidth)
+
+ {{ $buttonTitle }}
+
+ @else
+
+ {{ $buttonTitle }}
+
+ @endif
+ @else
+ @if ($buttonFullWidth)
+
+ {{ $buttonTitle }}
+
+ @else
+
+ {{ $buttonTitle }}
+
+ @endif
+ @endif
+ @endif
@endif
-
-
-
+
+
+
{{ $title }}
-
--}}
- {{ $slot }}
+ @if(!empty($checkboxes))
+
+
+
+
Select the actions you want to perform:
+
+ @foreach($checkboxes as $index => $checkbox)
+
+ @endforeach
+ {{--
$wire[action])" type="button">
+ Continue
+ --}}
+
+ @else
+
+ @endif
+
+
+
+
+
Warning
+
This operation is not reversible. Please proceed with caution.
+
+
The following actions will be performed:
+
+ -
+
+
+
+ All containers of this resource will be stopped and permanently deleted.
+
+
+ -
+
+
+
+
+
+
+
+
Please type DELETE to confirm this destructive action:
+
+
+
+
+
+
+
Final Confirmation
+
Please enter your password to confirm this destructive action.
+
+
+
+
+
+
+
+
+
+ 1 ? step-- : modalOpen = false" x-text="step > 1 ? 'Back' : 'Cancel'" class="w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300">
+
+ Continue
+
+
+ Confirm
+
diff --git a/resources/views/livewire/project/shared/danger.blade.php b/resources/views/livewire/project/shared/danger.blade.php
index cae7c1dd9..c9bbc2ed0 100644
--- a/resources/views/livewire/project/shared/danger.blade.php
+++ b/resources/views/livewire/project/shared/danger.blade.php
@@ -1,100 +1,27 @@
-
-
Danger Zone
-
-
-
-
-
Delete Resource
-
Once you delete a resource, there is no going back. Please be certain.
-
-
-
-
-
-
-
Select the actions you want to perform:
-
-
-
-
-
-
- Cancel
-
- Continue
-
-
-
-
-
-
-
-
Warning
-
This operation is not reversible. Please proceed with caution.
-
-
The following actions will be performed:
-
- -
-
-
-
- All containers of this resource will be stopped and permanently deleted.
-
-
- -
-
-
-
-
-
-
-
-
Please type DELETE to confirm this destructive action:
-
-
- Back
-
- Permanently Delete
-
-
-
-
-
-
-
-
Final Confirmation
-
Please enter your password to confirm this destructive action.
-
-
-
-
-
-
- Back
-
- Confirm Deletion
-
-
-
-
-
-
+
+
Danger Zone
+
Woah. I hope you know what are you doing.
+
Delete Resource
+
This will stop your containers, delete all related data, etc. Beware! There is no coming
+ back!
+
+ This resource will be deleted. It is not reversible. Please think again.
+