@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
  • @if ($icon)
    @endif !$icon, 'font-semibold' ])> {{ $title }}
    !count($children), 'flex items-center justify-center pl-3'])>
    @if (count($actions))
    @endif
    @if (count($children)) @endif