xref: /webtrees/resources/views/record-page-menu-facts.phtml (revision 5bfc689774bb9a6401271c4ed15a6d50652c991b)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\AddNewFact;
4use Fisharebest\Webtrees\GedcomRecord;
5use Fisharebest\Webtrees\I18N;
6
7/**
8 * @var GedcomRecord $record
9 */
10
11?>
12
13<span class="dropdown-header">
14                <?= I18N::translate('Add a fact') ?>
15            </span>
16
17<?php foreach ($record->missingFacts() as $fact => $label) : ?>
18    <a class="dropdown-item" href="<?= e(route(AddNewFact::class, [
19        'fact' => $fact,
20        'xref' => $record->xref(),
21        'tree' => $record->tree()->name(),
22    ])) ?>">
23        <?= view('icons/add') ?>
24        <?= $label ?>
25    </a>
26<?php endforeach ?>
27