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(),
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.
0 Replies
No replies yetBe the first to reply to this messageJoin