@php $containerKey = 'filament_tree_container_' . $this->id; $maxDepth = $getMaxDepth() ?? 1; $records = collect($this->getRootLayerRecords() ?? []); @endphp @include('filament-tree::tree.scripts', ['containerKey' => $containerKey, $maxDepth => $maxDepth])