@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
  • config('filament.dark_mode'), ])>
    @if ($icon) @endif
    {{ $title }}
    ! count($children), ])>
    @if (count($actions))
    @endif
    @if (count($children)) @endif