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