@foreach ($this->records as $record)
@php $icon = $this->getTreeRecordIcon($record); @endphp @if ($icon) @endif
{{ $this->getRecordTitle($record) }}
@foreach ($this->getTreeActions() as $action) {{ $action }} @endforeach
@if ($record->children->count())
@foreach ($record->children as $child)
@php $icon = $this->getTreeRecordIcon($child); @endphp @if ($icon) @endif
{{ $this->getRecordTitle($child) }}
@foreach ($this->getTreeActions() as $action) {{ $action }} @endforeach
@endforeach
@endif
@endforeach