10f5fd22fSGreg Roach<?php 20f5fd22fSGreg Roach 30f5fd22fSGreg Roachuse Fisharebest\Webtrees\Family; 40f5fd22fSGreg Roachuse Fisharebest\Webtrees\I18N; 50f5fd22fSGreg Roachuse Fisharebest\Webtrees\Individual; 6*4991f205SGreg Roachuse Fisharebest\Webtrees\Location; 70f5fd22fSGreg Roachuse Fisharebest\Webtrees\Media; 80f5fd22fSGreg Roachuse Fisharebest\Webtrees\Note; 90f5fd22fSGreg Roachuse Fisharebest\Webtrees\Source; 100f5fd22fSGreg Roachuse Fisharebest\Webtrees\Tree; 110f5fd22fSGreg Roachuse Illuminate\Support\Collection; 120f5fd22fSGreg Roach 130f5fd22fSGreg Roach/** 140f5fd22fSGreg Roach * @var string $details 1536779af1SGreg Roach * @var ?Collection<int,Family> $linked_families 1636779af1SGreg Roach * @var ?Collection<int,Individual> $linked_individuals 17*4991f205SGreg Roach * @var ?Collection<int,Location> $linked_locations 1836779af1SGreg Roach * @var ?Collection<int,Media> $linked_media_objects 1936779af1SGreg Roach * @var ?Collection<int,Note> $linked_notes 2036779af1SGreg Roach * @var ?Collection<int,Source> $linked_sources 210f5fd22fSGreg Roach * @var Tree $tree 220f5fd22fSGreg Roach */ 230f5fd22fSGreg Roach 240f5fd22fSGreg Roach?> 250f5fd22fSGreg Roach 260f5fd22fSGreg Roach<ul class="nav nav-tabs" role="tablist"> 270f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 28315eb316SGreg Roach <a class="nav-link active" data-bs-toggle="tab" role="tab" href="#details"> 290f5fd22fSGreg Roach <?= I18N::translate('Details') ?> 300f5fd22fSGreg Roach </a> 310f5fd22fSGreg Roach </li> 320f5fd22fSGreg Roach 330f5fd22fSGreg Roach <?php if ($linked_individuals instanceof Collection) : ?> 340f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 35315eb316SGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#individuals"> 360f5fd22fSGreg Roach <?= I18N::translate('Individuals') ?> 370f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_individuals->count()]) ?> 380f5fd22fSGreg Roach </a> 390f5fd22fSGreg Roach </li> 400f5fd22fSGreg Roach <?php endif ?> 410f5fd22fSGreg Roach 420f5fd22fSGreg Roach <?php if ($linked_families instanceof Collection) : ?> 430f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 44315eb316SGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#families"> 450f5fd22fSGreg Roach <?= I18N::translate('Families') ?> 460f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_families->count()]) ?> 470f5fd22fSGreg Roach </a> 480f5fd22fSGreg Roach </li> 490f5fd22fSGreg Roach <?php endif ?> 500f5fd22fSGreg Roach 510f5fd22fSGreg Roach <?php if ($linked_media_objects instanceof Collection) : ?> 520f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 53315eb316SGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#media"> 540f5fd22fSGreg Roach <?= I18N::translate('Media objects') ?> 550f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_media_objects->count()]) ?> 560f5fd22fSGreg Roach </a> 570f5fd22fSGreg Roach </li> 580f5fd22fSGreg Roach <?php endif ?> 590f5fd22fSGreg Roach 600f5fd22fSGreg Roach <?php if ($linked_sources instanceof Collection) : ?> 610f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 62315eb316SGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#sources"> 630f5fd22fSGreg Roach <?= I18N::translate('Sources') ?> 640f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_sources->count()]) ?> 650f5fd22fSGreg Roach </a> 660f5fd22fSGreg Roach </li> 670f5fd22fSGreg Roach <?php endif ?> 680f5fd22fSGreg Roach 690f5fd22fSGreg Roach <?php if ($linked_notes instanceof Collection) : ?> 700f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 71315eb316SGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#notes"> 720f5fd22fSGreg Roach <?= I18N::translate('Notes') ?> 730f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_notes->count()]) ?> 740f5fd22fSGreg Roach </a> 750f5fd22fSGreg Roach </li> 760f5fd22fSGreg Roach <?php endif ?> 77*4991f205SGreg Roach 78*4991f205SGreg Roach <?php if ($linked_locations instanceof Collection) : ?> 79*4991f205SGreg Roach <li class="nav-item" role="presentation"> 80*4991f205SGreg Roach <a class="nav-link" data-bs-toggle="tab" role="tab" href="#notes"> 81*4991f205SGreg Roach <?= I18N::translate('Notes') ?> 82*4991f205SGreg Roach <?= view('components/badge', ['count' => $linked_locations->count()]) ?> 83*4991f205SGreg Roach </a> 84*4991f205SGreg Roach </li> 85*4991f205SGreg Roach <?php endif ?> 860f5fd22fSGreg Roach</ul> 870f5fd22fSGreg Roach 880f5fd22fSGreg Roach<div class="tab-content"> 890f5fd22fSGreg Roach <div class="tab-pane fade show active" role="tabpanel" id="details"> 900f5fd22fSGreg Roach <?= $details ?> 910f5fd22fSGreg Roach </div> 920f5fd22fSGreg Roach 930f5fd22fSGreg Roach <?php if ($linked_individuals instanceof Collection) : ?> 940f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="individuals"> 950f5fd22fSGreg Roach <?= view('lists/individuals-table', ['individuals' => $linked_individuals, 'sosa' => false, 'tree' => $tree]) ?> 960f5fd22fSGreg Roach </div> 970f5fd22fSGreg Roach <?php endif ?> 980f5fd22fSGreg Roach 990f5fd22fSGreg Roach <?php if ($linked_families instanceof Collection) : ?> 1000f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="families"> 1010f5fd22fSGreg Roach <?= view('lists/families-table', ['families' => $linked_families, 'tree' => $tree]) ?> 1020f5fd22fSGreg Roach </div> 1030f5fd22fSGreg Roach <?php endif ?> 1040f5fd22fSGreg Roach 1050f5fd22fSGreg Roach <?php if ($linked_media_objects instanceof Collection) : ?> 1060f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="media"> 1070f5fd22fSGreg Roach <?= view('lists/media-table', ['media_objects' => $linked_media_objects, 'tree' => $tree]) ?> 1080f5fd22fSGreg Roach </div> 1090f5fd22fSGreg Roach <?php endif ?> 1100f5fd22fSGreg Roach 1110f5fd22fSGreg Roach <?php if ($linked_sources instanceof Collection) : ?> 1120f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="sources"> 1130f5fd22fSGreg Roach <?= view('lists/sources-table', ['sources' => $linked_sources, 'tree' => $tree]) ?> 1140f5fd22fSGreg Roach </div> 1150f5fd22fSGreg Roach <?php endif ?> 1160f5fd22fSGreg Roach 1170f5fd22fSGreg Roach <?php if ($linked_notes instanceof Collection) : ?> 1180f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="notes"> 1190f5fd22fSGreg Roach <?= view('lists/notes-table', ['notes' => $linked_notes, 'tree' => $tree]) ?> 1200f5fd22fSGreg Roach </div> 1210f5fd22fSGreg Roach <?php endif ?> 122*4991f205SGreg Roach 123*4991f205SGreg Roach <?php if ($linked_locations instanceof Collection) : ?> 124*4991f205SGreg Roach <div class="tab-pane fade" role="tabpanel" id="notes"> 125*4991f205SGreg Roach <?= view('lists/locations-table', ['locations' => $linked_locations, 'tree' => $tree]) ?> 126*4991f205SGreg Roach </div> 127*4991f205SGreg Roach <?php endif ?> 1280f5fd22fSGreg Roach</div> 129