1<?php 2 3declare(strict_types=1); 4 5use Fisharebest\Webtrees\Family; 6use Fisharebest\Webtrees\I18N; 7use Fisharebest\Webtrees\Individual; 8use Fisharebest\Webtrees\Tree; 9use Illuminate\Support\Collection; 10 11/** 12 * @var Collection<int,Family> $famlist 13 * @var Collection<int,Individual> $indilist 14 * @var Tree $tree 15 */ 16 17?> 18 19<ul class="nav nav-tabs" role="tablist"> 20 <li class="nav-item" role="presentation"> 21 <a class="nav-link active" data-bs-toggle="tab" role="tab" href="#individuals"> 22 <?= I18N::translate('Individuals') ?> 23 <?= view('components/badge', ['count' => count($indilist)]) ?> 24 </a> 25 </li> 26 <li class="nav-item" role="presentation"> 27 <a class="nav-link" data-bs-toggle="tab" role="tab" href="#families"> 28 <?= I18N::translate('Families') ?> 29 <?= view('components/badge', ['count' => count($famlist)]) ?> 30 </a> 31 </li> 32</ul> 33<div class="tab-content"> 34 <div class="tab-pane fade show active" role="tabpanel" id="individuals"> 35 <?php if ($indilist->isEmpty()) : ?> 36 <p><?= I18N::translate('No results found.') ?></p> 37 <?php else : ?> 38 <?= view('lists/individuals-table', [ 39 'individuals' => $indilist, 40 'sosa' => false, 41 'tree' => $tree, 42 ]) ?> 43 <?php endif ?> 44 </div> 45 46 <div class="tab-pane fade" role="tabpanel" id="families"> 47 <?php if ($famlist->isEmpty()) : ?> 48 <p><?= I18N::translate('No results found.') ?></p> 49 <?php else : ?> 50 <?= view('lists/families-table', ['families' => $famlist, 'tree' => $tree]) ?> 51 <?php endif ?> 52 </div> 53</div> 54