@props([ 'record', 'containerKey', 'tree', 'title' => null, 'icon' => null, ]) @php /** @var $record \Illuminate\Database\Eloquent\Model */ /** @var $containerKey string */ /** @var $tree \SolutionForest\FilamentTree\Components\Tree */ $recordKey = $tree->getRecordKey($record); $parentKey = $tree->getParentKey($record); $children = $record->children; $actions = $tree->getActions(); @endphp