Lines Matching refs:tree
105 'tree' => $individual->tree(),
119 ->where('gedcom_id', '=', $individual->tree()->id())
149 … return Auth::isManager($individual->tree()) || $this->getStoriesForIndividual($individual) !== [];
178 * @param Tree $tree
182 public function getMenu(Tree $tree): Menu|null argument
187 'tree' => $tree->name(),
212 $tree = Validator::attributes($request)->treeOptional();
214 if (!$tree instanceof Tree) {
215 $tree = $this->tree_service->all()->first();
216 if ($tree instanceof Tree) {
217 …direct(route('module', ['module' => $this->name(), 'action' => 'Admin', 'tree' => $tree->name()]));
225 ->where('gedcom_id', '=', $tree->id())
233 $story->individual = Registry::individualFactory()->make($xref, $tree);
239 ->map(static fn (Tree $tree): string => $tree->title());
244 'title' => $this->title() . ' — ' . $tree->title(),
245 'tree' => $tree,
273 $tree = Validator::attributes($request)->tree();
283 $title = I18N::translate('Add a story') . ' — ' . e($tree->title());
293 $title = I18N::translate('Edit the story') . ' — ' . e($tree->title());
296 $individual = Registry::individualFactory()->make($xref, $tree);
304 'tree' => $tree,
317 $tree = Validator::attributes($request)->tree();
323 …t_url = route('module', ['module' => $this->name(), 'action' => 'Admin', 'tree' => $tree->name()]);
331 'gedcom_id' => $tree->id(),
336 'gedcom_id' => $tree->id(),
359 $tree = Validator::attributes($request)->tree();
373 'tree' => $tree->name(),
386 $tree = Validator::attributes($request)->tree();
390 ->where('gedcom_id', '=', $tree->id())
392 ->map(function (object $story) use ($tree): object {
396 $story->individual = Registry::individualFactory()->make($xref, $tree);
410 'tree' => $tree,