10f5fd22fSGreg Roach<?php 20f5fd22fSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 50f5fd22fSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddNewFact; 60f5fd22fSGreg Roachuse Fisharebest\Webtrees\GedcomRecord; 70f5fd22fSGreg Roachuse Fisharebest\Webtrees\I18N; 80f5fd22fSGreg Roach 90f5fd22fSGreg Roach/** 100f5fd22fSGreg Roach * @var GedcomRecord $record 110f5fd22fSGreg Roach */ 120f5fd22fSGreg Roach 130f5fd22fSGreg Roach?> 140f5fd22fSGreg Roach 150f5fd22fSGreg Roach<span class="dropdown-header"> 160f5fd22fSGreg Roach <?= I18N::translate('Add a fact') ?> 170f5fd22fSGreg Roach </span> 180f5fd22fSGreg Roach 190f5fd22fSGreg Roach<?php foreach ($record->missingFacts() as $fact => $label) : ?> 200f5fd22fSGreg Roach <a class="dropdown-item" href="<?= e(route(AddNewFact::class, [ 210f5fd22fSGreg Roach 'fact' => $fact, 220f5fd22fSGreg Roach 'xref' => $record->xref(), 230f5fd22fSGreg Roach 'tree' => $record->tree()->name(), 240f5fd22fSGreg Roach ])) ?>"> 250f5fd22fSGreg Roach <?= view('icons/add') ?> 260f5fd22fSGreg Roach <?= $label ?> 270f5fd22fSGreg Roach </a> 280f5fd22fSGreg Roach<?php endforeach ?> 29