@props([
'title' => 'Are you sure?',
'isErrorButton' => false,
'buttonTitle' => 'Confirm Action',
'buttonFullWidth' => false,
'customButton' => null,
'disabled' => false,
'submitAction' => 'delete',
'content' => null,
'checkboxes' => [],
'actions' => [],
'confirmWithText' => true,
'confirmationText' => 'Confirm Deletion',
'confirmationLabel' => 'Please confirm the execution of the actions by entering the Name below',
'shortConfirmationLabel' => 'Name',
'confirmWithPassword' => true,
'step1ButtonText' => 'Continue Deletion',
'step2ButtonText' => 'Delete Permanently',
'step3ButtonText' => 'Confirm Permanent Deletion',
'dispatchEvent' => false,
'dispatchEventType' => 'success',
'dispatchEventMessage' => '',
])
@if ($customButton)
@if ($buttonFullWidth)
{{ $customButton }}
@else
{{ $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
@if(!empty($checkboxes))
Select the actions you want to perform:
@foreach($checkboxes as $index => $checkbox)
@endforeach
@endif
Warning
This operation is not reversible. Please proceed with caution.
The following actions will be performed:
@foreach($actions as $action)
-
{{ $action }}
@endforeach
@foreach($checkboxes as $checkbox)
-
{{ $checkbox['label'] }}
@endforeach
@if($confirmWithText)
@endif
Final Confirmation
Please enter your password to confirm this destructive action.
@error('password')
{{ $message }}
@enderror
Back
Cancel
{
if (dispatchEvent) {
$wire.dispatch(dispatchEventType, dispatchEventMessage);
}
modalOpen = false;
resetModal();
})">
{
if (dispatchEvent) {
$wire.dispatch(dispatchEventType, dispatchEventMessage);
}
modalOpen = false;
resetModal();
})">