Show Warning in a toggle

I have a list of "resource" (random data), in the form I have:

Toggle::make('active')
 ->onColor('success')
 ->offColor('danger')
 ->helperText('')
 ->rule('boolean')
 ->default(true)
 ->accepted(),

i want to show a warning modal to the user when i deactivate it.
Was this page helpful?