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