xref: /webtrees/resources/views/record-page-menu-facts.phtml (revision bd29d468ac3a5ed7a23d7dd8f300504dda83fc72)
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