xref: /webtrees/resources/views/modules/place-hierarchy/events.phtml (revision 36779af1bd0601de7819554b13a393f6edb92507)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
37c2c99faSGreg Roachuse Fisharebest\Webtrees\Family;
4d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
57c2c99faSGreg Roachuse Fisharebest\Webtrees\Individual;
67c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree;
77c2c99faSGreg Roachuse Illuminate\Support\Collection;
87c2c99faSGreg Roach
97c2c99faSGreg Roach/**
10*36779af1SGreg Roach * @var Collection<int,Family>     $famlist
11*36779af1SGreg Roach * @var Collection<int,Individual> $indilist
127c2c99faSGreg Roach * @var Tree                       $tree
137c2c99faSGreg Roach */
14d70512abSGreg Roach
15d70512abSGreg Roach?>
16a634ddebSGreg Roach
17a634ddebSGreg Roach<ul class="nav nav-tabs" role="tablist">
186a4003b9SGreg Roach    <li class="nav-item" role="presentation">
19315eb316SGreg Roach        <a class="nav-link active<?= $indilist->isEmpty() ? ' text-muted' : '' ?>" data-bs-toggle="tab" role="tab" href="#individuals">
20a634ddebSGreg Roach            <?= I18N::translate('Individuals') ?>
21a634ddebSGreg Roach            <?= view('components/badge', ['count' => count($indilist)]) ?>
22a634ddebSGreg Roach        </a>
23a634ddebSGreg Roach    </li>
246a4003b9SGreg Roach    <li class="nav-item" role="presentation">
25315eb316SGreg Roach        <a class="nav-link<?= $famlist->isEmpty() ? ' text-muted' : '' ?>" data-bs-toggle="tab" role="tab" href="#families">
26a634ddebSGreg Roach            <?= I18N::translate('Families') ?>
27a634ddebSGreg Roach            <?= view('components/badge', ['count' => count($famlist)]) ?>
28a634ddebSGreg Roach        </a>
29a634ddebSGreg Roach    </li>
30a634ddebSGreg Roach</ul>
31a634ddebSGreg Roach<div class="tab-content">
32a634ddebSGreg Roach    <div class="tab-pane fade show active" role="tabpanel" id="individuals">
337c2c99faSGreg Roach        <?php if ($indilist->isEmpty()) : ?>
34a634ddebSGreg Roach            <p><?= I18N::translate('No results found.') ?></p>
35a634ddebSGreg Roach        <?php else : ?>
36a634ddebSGreg Roach            <?= view('lists/individuals-table', [
37a634ddebSGreg Roach            'individuals' => $indilist,
38a634ddebSGreg Roach            'sosa'        => false,
39a634ddebSGreg Roach            'tree'        => $tree,
40a634ddebSGreg Roach            ]) ?>
41a634ddebSGreg Roach        <?php endif ?>
42a634ddebSGreg Roach    </div>
43a634ddebSGreg Roach
44a634ddebSGreg Roach    <div class="tab-pane fade" role="tabpanel" id="families">
457c2c99faSGreg Roach        <?php if ($famlist->isEmpty()) : ?>
46a634ddebSGreg Roach            <p><?= I18N::translate('No results found.') ?></p>
47a634ddebSGreg Roach        <?php else : ?>
48a634ddebSGreg Roach            <?= view('lists/families-table', ['families' => $famlist, 'tree' => $tree]) ?>
49a634ddebSGreg Roach        <?php endif ?>
50a634ddebSGreg Roach    </div>
51a634ddebSGreg Roach</div>
52