xref: /webtrees/resources/views/modules/place-hierarchy/events.phtml (revision 69100c6d2f376ba137a90d02f7e41a8ae5929352)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<ul class="nav nav-tabs" role="tablist">
4    <li class="nav-item">
5        <a class="nav-link active<?= $indilist === [] ? ' text-muted' : '' ?>" data-toggle="tab" role="tab" href="#individuals">
6            <?= I18N::translate('Individuals') ?>
7            <?= view('components/badge', ['count' => count($indilist)]) ?>
8        </a>
9    </li>
10    <li class="nav-item">
11        <a class="nav-link<?= $famlist === [] ? ' text-muted' : '' ?>" data-toggle="tab" role="tab" href="#families">
12            <?= I18N::translate('Families') ?>
13            <?= view('components/badge', ['count' => count($famlist)]) ?>
14        </a>
15    </li>
16</ul>
17<div class="tab-content">
18    <div class="tab-pane fade show active" role="tabpanel" id="individuals">
19        <?php if ($indilist === []) : ?>
20            <p><?= I18N::translate('No results found.') ?></p>
21        <?php else : ?>
22            <?= view('lists/individuals-table', [
23            'individuals' => $indilist,
24            'sosa'        => false,
25            'tree'        => $tree,
26            ]) ?>
27        <?php endif ?>
28    </div>
29
30    <div class="tab-pane fade" role="tabpanel" id="families">
31        <?php if ($famlist === []) : ?>
32            <p><?= I18N::translate('No results found.') ?></p>
33        <?php else : ?>
34            <?= view('lists/families-table', ['families' => $famlist, 'tree' => $tree]) ?>
35        <?php endif ?>
36    </div>
37</div>
38