xref: /webtrees/resources/views/individual-page-names.phtml (revision 77c72ee5b2feabccd404f30f83ff89f5637dd0e0)
1<?php
2
3use Fisharebest\Webtrees\Fact;
4use Fisharebest\Webtrees\Individual;
5use Illuminate\Support\Collection;
6
7/**
8 * @var Individual $record
9 */
10?>
11
12<!-- Name accordion -->
13<div class="col-sm accordion" id="individual-names">
14    <?php foreach ($record->facts(['NAME']) as $fact) : ?>
15        <?= view('individual-name', ['fact' => $fact]) ?>
16    <?php endforeach ?>
17
18    <?php foreach ($record->facts(['SEX']) as $fact) : ?>
19        <?= view('individual-sex', ['fact' => $fact]) ?>
20    <?php endforeach ?>
21</div>
22