xref: /webtrees/resources/views/modules/place-hierarchy/events.phtml (revision c5cb081f84eaf817fc43486524a23d6714850ec0)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
310e06497SGreg Roachdeclare(strict_types=1);
410e06497SGreg Roach
57c2c99faSGreg Roachuse Fisharebest\Webtrees\Family;
6d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
77c2c99faSGreg Roachuse Fisharebest\Webtrees\Individual;
87c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree;
97c2c99faSGreg Roachuse Illuminate\Support\Collection;
107c2c99faSGreg Roach
117c2c99faSGreg Roach/**
1236779af1SGreg Roach * @var Collection<int,Family>     $famlist
1336779af1SGreg Roach * @var Collection<int,Individual> $indilist
147c2c99faSGreg Roach * @var Tree                       $tree
157c2c99faSGreg Roach */
16d70512abSGreg Roach
17d70512abSGreg Roach?>
18a634ddebSGreg Roach
19a634ddebSGreg Roach<ul class="nav nav-tabs" role="tablist">
206a4003b9SGreg Roach    <li class="nav-item" role="presentation">
21*c5cb081fSGreg Roach        <a class="nav-link active" data-bs-toggle="tab" role="tab" href="#individuals">
22a634ddebSGreg Roach            <?= I18N::translate('Individuals') ?>
23a634ddebSGreg Roach            <?= view('components/badge', ['count' => count($indilist)]) ?>
24a634ddebSGreg Roach        </a>
25a634ddebSGreg Roach    </li>
266a4003b9SGreg Roach    <li class="nav-item" role="presentation">
27*c5cb081fSGreg Roach        <a class="nav-link" data-bs-toggle="tab" role="tab" href="#families">
28a634ddebSGreg Roach            <?= I18N::translate('Families') ?>
29a634ddebSGreg Roach            <?= view('components/badge', ['count' => count($famlist)]) ?>
30a634ddebSGreg Roach        </a>
31a634ddebSGreg Roach    </li>
32a634ddebSGreg Roach</ul>
33a634ddebSGreg Roach<div class="tab-content">
34a634ddebSGreg Roach    <div class="tab-pane fade show active" role="tabpanel" id="individuals">
357c2c99faSGreg Roach        <?php if ($indilist->isEmpty()) : ?>
36a634ddebSGreg Roach            <p><?= I18N::translate('No results found.') ?></p>
37a634ddebSGreg Roach        <?php else : ?>
38a634ddebSGreg Roach            <?= view('lists/individuals-table', [
39a634ddebSGreg Roach            'individuals' => $indilist,
40a634ddebSGreg Roach            'sosa'        => false,
41a634ddebSGreg Roach            'tree'        => $tree,
42a634ddebSGreg Roach            ]) ?>
43a634ddebSGreg Roach        <?php endif ?>
44a634ddebSGreg Roach    </div>
45a634ddebSGreg Roach
46a634ddebSGreg Roach    <div class="tab-pane fade" role="tabpanel" id="families">
477c2c99faSGreg Roach        <?php if ($famlist->isEmpty()) : ?>
48a634ddebSGreg Roach            <p><?= I18N::translate('No results found.') ?></p>
49a634ddebSGreg Roach        <?php else : ?>
50a634ddebSGreg Roach            <?= view('lists/families-table', ['families' => $famlist, 'tree' => $tree]) ?>
51a634ddebSGreg Roach        <?php endif ?>
52a634ddebSGreg Roach    </div>
53a634ddebSGreg Roach</div>
54