@foreach($records as $record)
|
@for ($i = 0; $i < $indentation; $i++)
@endfor
{{$record->name}}
|
{{$record->type == 'IN' ? 'Entrata' : 'Uscita'}} |
{{$record->enabled ? 'attivo' : 'disattivo'}}
|
|
@if(count($record->childs))
@include('livewire/causal_child',['records' => $record->childs, 'indentation' => $indentation + 1])
@endif
@endforeach