@if(!$add && !$update)Elenco causali @else Inserimento/modifica causale @endif

@if(!$add && !$update)

Aggiungi   

@endif
@if(!$add && !$update)
@foreach($records as $record) @endforeach
Nome Tipologia Abilitato ...
{{$record->name}} {{$record->type == 'IN' ? 'Ingresso' : 'Uscita'}} {{$record->enabled ? 'attivo' : 'disattivo'}}
@else
@error('name')
{{ $message }}
@enderror
@if($add) @endif @if($update) @endif
@endif