10f5fd22fSGreg Roach<?php 20f5fd22fSGreg Roach 310e06497SGreg Roachdeclare(strict_types=1); 410e06497SGreg Roach 50f5fd22fSGreg Roachuse Fisharebest\Webtrees\Family; 60f5fd22fSGreg Roachuse Fisharebest\Webtrees\I18N; 70f5fd22fSGreg Roachuse Fisharebest\Webtrees\Individual; 84991f205SGreg Roachuse Fisharebest\Webtrees\Location; 90f5fd22fSGreg Roachuse Fisharebest\Webtrees\Media; 100f5fd22fSGreg Roachuse Fisharebest\Webtrees\Note; 11e6a89f1cSGreg Roachuse Fisharebest\Webtrees\Repository; 120f5fd22fSGreg Roachuse Fisharebest\Webtrees\Source; 13e6a89f1cSGreg Roachuse Fisharebest\Webtrees\Submitter; 140f5fd22fSGreg Roachuse Fisharebest\Webtrees\Tree; 150f5fd22fSGreg Roachuse Illuminate\Support\Collection; 160f5fd22fSGreg Roach 170f5fd22fSGreg Roach/** 180f5fd22fSGreg Roach * @var string $details 19*1ff45046SGreg Roach * @var Collection<int,Family>|null $linked_families 20*1ff45046SGreg Roach * @var Collection<int,Individual>|null $linked_individuals 21*1ff45046SGreg Roach * @var Collection<int,Location>|null $linked_locations 22*1ff45046SGreg Roach * @var Collection<int,Media>|null $linked_media_objects 23*1ff45046SGreg Roach * @var Collection<int,Note>|null $linked_notes 24*1ff45046SGreg Roach * @var Collection<int,Repository>|null $linked_repositories 25*1ff45046SGreg Roach * @var Collection<int,Source>|null $linked_sources 26*1ff45046SGreg Roach * @var Collection<int,Submitter>|null $linked_submitters 270f5fd22fSGreg Roach * @var Tree $tree 280f5fd22fSGreg Roach */ 290f5fd22fSGreg Roach 300f5fd22fSGreg Roach?> 310f5fd22fSGreg Roach 320f5fd22fSGreg Roach<ul class="nav nav-tabs" role="tablist"> 330f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 34315eb316SGreg Roach <a class="nav-link active" data-bs-toggle="tab" role="tab" href="#details"> 350f5fd22fSGreg Roach <?= I18N::translate('Details') ?> 360f5fd22fSGreg Roach </a> 370f5fd22fSGreg Roach </li> 380f5fd22fSGreg Roach 390f5fd22fSGreg Roach <?php if ($linked_individuals instanceof Collection) : ?> 400f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 41315eb316SGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#individuals"> 420f5fd22fSGreg Roach <?= I18N::translate('Individuals') ?> 430f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_individuals->count()]) ?> 440f5fd22fSGreg Roach </a> 450f5fd22fSGreg Roach </li> 460f5fd22fSGreg Roach <?php endif ?> 470f5fd22fSGreg Roach 480f5fd22fSGreg Roach <?php if ($linked_families instanceof Collection) : ?> 490f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 50315eb316SGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#families"> 510f5fd22fSGreg Roach <?= I18N::translate('Families') ?> 520f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_families->count()]) ?> 530f5fd22fSGreg Roach </a> 540f5fd22fSGreg Roach </li> 550f5fd22fSGreg Roach <?php endif ?> 560f5fd22fSGreg Roach 570f5fd22fSGreg Roach <?php if ($linked_media_objects instanceof Collection) : ?> 580f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 59315eb316SGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#media"> 600f5fd22fSGreg Roach <?= I18N::translate('Media objects') ?> 610f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_media_objects->count()]) ?> 620f5fd22fSGreg Roach </a> 630f5fd22fSGreg Roach </li> 640f5fd22fSGreg Roach <?php endif ?> 650f5fd22fSGreg Roach 660f5fd22fSGreg Roach <?php if ($linked_sources instanceof Collection) : ?> 670f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 68315eb316SGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#sources"> 690f5fd22fSGreg Roach <?= I18N::translate('Sources') ?> 700f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_sources->count()]) ?> 710f5fd22fSGreg Roach </a> 720f5fd22fSGreg Roach </li> 730f5fd22fSGreg Roach <?php endif ?> 740f5fd22fSGreg Roach 750f5fd22fSGreg Roach <?php if ($linked_notes instanceof Collection) : ?> 760f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 77315eb316SGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#notes"> 780f5fd22fSGreg Roach <?= I18N::translate('Notes') ?> 790f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_notes->count()]) ?> 800f5fd22fSGreg Roach </a> 810f5fd22fSGreg Roach </li> 820f5fd22fSGreg Roach <?php endif ?> 834991f205SGreg Roach 84e6a89f1cSGreg Roach <?php if ($linked_repositories instanceof Collection) : ?> 85e6a89f1cSGreg Roach <li class="nav-item" role="presentation"> 86e6a89f1cSGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#repositories"> 87e6a89f1cSGreg Roach <?= I18N::translate('Repositories') ?> 88e6a89f1cSGreg Roach <?= view('components/badge', ['count' => $linked_repositories->count()]) ?> 89e6a89f1cSGreg Roach </a> 90e6a89f1cSGreg Roach </li> 91e6a89f1cSGreg Roach <?php endif ?> 92e6a89f1cSGreg Roach 93e6a89f1cSGreg Roach <?php if ($linked_submitters instanceof Collection) : ?> 94e6a89f1cSGreg Roach <li class="nav-item" role="presentation"> 95e6a89f1cSGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#submitters"> 96e6a89f1cSGreg Roach <?= I18N::translate('Submitters') ?> 97e6a89f1cSGreg Roach <?= view('components/badge', ['count' => $linked_submitters->count()]) ?> 98e6a89f1cSGreg Roach </a> 99e6a89f1cSGreg Roach </li> 100e6a89f1cSGreg Roach <?php endif ?> 101e6a89f1cSGreg Roach 1024991f205SGreg Roach <?php if ($linked_locations instanceof Collection) : ?> 1034991f205SGreg Roach <li class="nav-item" role="presentation"> 104623e53ccSRichard Cissée <a class="nav-link" data-bs-toggle="tab" role="tab" href="#locations"> 105623e53ccSRichard Cissée <?= I18N::translate('Locations') ?> 1064991f205SGreg Roach <?= view('components/badge', ['count' => $linked_locations->count()]) ?> 1074991f205SGreg Roach </a> 1084991f205SGreg Roach </li> 1094991f205SGreg Roach <?php endif ?> 1100f5fd22fSGreg Roach</ul> 1110f5fd22fSGreg Roach 1120f5fd22fSGreg Roach<div class="tab-content"> 1130f5fd22fSGreg Roach <div class="tab-pane fade show active" role="tabpanel" id="details"> 1140f5fd22fSGreg Roach <?= $details ?> 1150f5fd22fSGreg Roach </div> 1160f5fd22fSGreg Roach 1170f5fd22fSGreg Roach <?php if ($linked_individuals instanceof Collection) : ?> 1180f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="individuals"> 1190f5fd22fSGreg Roach <?= view('lists/individuals-table', ['individuals' => $linked_individuals, 'sosa' => false, 'tree' => $tree]) ?> 1200f5fd22fSGreg Roach </div> 1210f5fd22fSGreg Roach <?php endif ?> 1220f5fd22fSGreg Roach 1230f5fd22fSGreg Roach <?php if ($linked_families instanceof Collection) : ?> 1240f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="families"> 1250f5fd22fSGreg Roach <?= view('lists/families-table', ['families' => $linked_families, 'tree' => $tree]) ?> 1260f5fd22fSGreg Roach </div> 1270f5fd22fSGreg Roach <?php endif ?> 1280f5fd22fSGreg Roach 1290f5fd22fSGreg Roach <?php if ($linked_media_objects instanceof Collection) : ?> 1300f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="media"> 1310f5fd22fSGreg Roach <?= view('lists/media-table', ['media_objects' => $linked_media_objects, 'tree' => $tree]) ?> 1320f5fd22fSGreg Roach </div> 1330f5fd22fSGreg Roach <?php endif ?> 1340f5fd22fSGreg Roach 1350f5fd22fSGreg Roach <?php if ($linked_sources instanceof Collection) : ?> 1360f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="sources"> 1370f5fd22fSGreg Roach <?= view('lists/sources-table', ['sources' => $linked_sources, 'tree' => $tree]) ?> 1380f5fd22fSGreg Roach </div> 1390f5fd22fSGreg Roach <?php endif ?> 1400f5fd22fSGreg Roach 1410f5fd22fSGreg Roach <?php if ($linked_notes instanceof Collection) : ?> 1420f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="notes"> 1430f5fd22fSGreg Roach <?= view('lists/notes-table', ['notes' => $linked_notes, 'tree' => $tree]) ?> 1440f5fd22fSGreg Roach </div> 1450f5fd22fSGreg Roach <?php endif ?> 1464991f205SGreg Roach 147e6a89f1cSGreg Roach <?php if ($linked_repositories instanceof Collection) : ?> 148e6a89f1cSGreg Roach <div class="tab-pane fade" role="tabpanel" id="repositories"> 149e6a89f1cSGreg Roach <?= view('lists/repositories-table', ['repositories' => $linked_repositories, 'tree' => $tree]) ?> 150e6a89f1cSGreg Roach </div> 151e6a89f1cSGreg Roach <?php endif ?> 152e6a89f1cSGreg Roach 153e6a89f1cSGreg Roach <?php if ($linked_submitters instanceof Collection) : ?> 154e6a89f1cSGreg Roach <div class="tab-pane fade" role="tabpanel" id="submitters"> 155e6a89f1cSGreg Roach <?= view('lists/submitters-table', ['submitters' => $linked_submitters, 'tree' => $tree]) ?> 156e6a89f1cSGreg Roach </div> 157e6a89f1cSGreg Roach <?php endif ?> 158e6a89f1cSGreg Roach 1594991f205SGreg Roach <?php if ($linked_locations instanceof Collection) : ?> 160623e53ccSRichard Cissée <div class="tab-pane fade" role="tabpanel" id="locations"> 1614991f205SGreg Roach <?= view('lists/locations-table', ['locations' => $linked_locations, 'tree' => $tree]) ?> 1624991f205SGreg Roach </div> 1634991f205SGreg Roach <?php endif ?> 1640f5fd22fSGreg Roach</div> 165