@foreach($records as $record)
@if($showHidden || (!$record->hidden && $record->hidden !== null))
|
{{ str_repeat('— ', $indentation) }}{{ $record->name }}
|
{{ $record->type == 'IN' ? 'Entrata' : 'Uscita' }} |
{{ $record->enabled ? 'attivo' : 'disattivo' }}
|
@if($record->hidden)
@else
@endif
|
@if(count($record->childs))
@include('livewire/causal_child', ['records' => $record->childs, 'indentation' => $indentation + 1])
@endif
@endif
@endforeach