How to hide and show a div depending on the result of a submit? , something similar to v-show de vue?

Hello, I am doing a CRUD with Livewire, but, I would like to know how I can validate that the submit if it is successful shows me a message

Form:

@csrf
N° de version: @error('name') {{ $message }} @enderror REGISTRAR
______________________ Message:
Registration successful.

Currently it validates me perfectly when I cannot insert the data from the database and I show the error message

@if($errors->has(‘name’))

Corrige los datos destacados en rojo.
@endif

errorform

I would like to have the same result but with a message of success. Can you help me please?

Maybe flash messages could be useful here?

Hi, thanks I managed to deliver the message with flash messages :smiley: