label(fn (): string => app(RelatedNavigationResolver::class) ->primaryListAction(CrossResourceNavigationMatrix::SOURCE_FINDING, $this->getRecord())?->actionLabel ?? 'Open related record') ->url(fn (): ?string => app(RelatedNavigationResolver::class) ->primaryListAction(CrossResourceNavigationMatrix::SOURCE_FINDING, $this->getRecord())?->targetUrl) ->hidden(fn (): bool => ! (app(RelatedNavigationResolver::class) ->primaryListAction(CrossResourceNavigationMatrix::SOURCE_FINDING, $this->getRecord())?->isAvailable() ?? false)) ->color('gray'), Actions\ActionGroup::make(FindingResource::workflowActions()) ->label('Actions') ->icon('heroicon-o-ellipsis-vertical') ->color('gray'), ]; } public function getSubheading(): string|Htmlable|null { return FindingResource::findingSubheading($this->getRecord()); } }