@if (!$this->validated)
    <button type="submit" class="btn btn-success mr-3" wire:click.prevent="cancel()">Annulla</button>
@else
    <button type="submit" class="btn btn-success mr-3" wire:click.prevent="cancel()">Chiudi</button>
@endif
@if ($add)
    <button type="submit" class="btn btn-primary py-3" wire:click.prevent="store()">Salva</button>
@endif
@if ($update)
    @if (!$this->validated)
        <button type="submit" class="btn btn-primary" wire:click.prevent="update(false)">Salva</button>
    @endif
@endif
