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