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

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

Aggiungi   

@endif
@if(!$add && !$update)
@foreach($records as $record) @if(count($record->childs)) @include('livewire/causal_child',['records' => $record->childs, 'indentation' => 1]) @endif @endforeach
Nome Tipologia Abilitato ...
{{$record->name}} {{$record->type == 'IN' ? 'Entrata' : 'Uscita'}} {{$record->enabled ? 'attivo' : 'disattivo'}}
@else
@if (session()->has('error')) @endif
@error('name')
{{ $message }}
@enderror
@if($add) @endif @if($update) @endif
@endif
@push('scripts') @endpush