<div>
    COMPANY activity
    <br>    
    @if($is_edit)
        Nome<br>
        <input type="text" wire:model="name"><br>
        @error('name')
            {{ $message }}
        @enderror
        <br>
        Descrizione<br>
        <input type="text" wire:model="description"><br><br>
        Enable<br>
        <input type="checkbox" wire:model="enabled"><br><br>
        <a wire:click="save()">Salva</a>
        <a wire:click="cancel()">Annulla</a>
    @else
        <table border="1">
            <tr>
                <td>Nome</td>
                <td>

                </td>
            </tr>
            @foreach($company_activities as $c)
                <tr>
                    <td>{{$c->name}}</td>
                    <td><a wire:click="edit({{$c->id}})">Modifica</a></td>
                </tr>
            @endforeach
        </table>
        <a wire:click="add()">Aggiungi</a>
    @endif
</div>