1*0f5fd22fSGreg Roach<?php 2*0f5fd22fSGreg Roach 3*0f5fd22fSGreg Roachuse Fisharebest\Webtrees\Family; 4*0f5fd22fSGreg Roachuse Fisharebest\Webtrees\I18N; 5*0f5fd22fSGreg Roachuse Fisharebest\Webtrees\Individual; 6*0f5fd22fSGreg Roachuse Fisharebest\Webtrees\Media; 7*0f5fd22fSGreg Roachuse Fisharebest\Webtrees\Note; 8*0f5fd22fSGreg Roachuse Fisharebest\Webtrees\Source; 9*0f5fd22fSGreg Roachuse Fisharebest\Webtrees\Tree; 10*0f5fd22fSGreg Roachuse Illuminate\Support\Collection; 11*0f5fd22fSGreg Roach 12*0f5fd22fSGreg Roach/** 13*0f5fd22fSGreg Roach * @var string $details 14*0f5fd22fSGreg Roach * @var ?Collection<Family> $linked_families 15*0f5fd22fSGreg Roach * @var ?Collection<Individual> $linked_individuals 16*0f5fd22fSGreg Roach * @var ?Collection<Media> $linked_media_objects 17*0f5fd22fSGreg Roach * @var ?Collection<Note> $linked_notes 18*0f5fd22fSGreg Roach * @var ?Collection<Source> $linked_sources 19*0f5fd22fSGreg Roach * @var Tree $tree 20*0f5fd22fSGreg Roach */ 21*0f5fd22fSGreg Roach 22*0f5fd22fSGreg Roach?> 23*0f5fd22fSGreg Roach 24*0f5fd22fSGreg Roach<ul class="nav nav-tabs" role="tablist"> 25*0f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 26*0f5fd22fSGreg Roach <a class="nav-link active" data-toggle="tab" role="tab" href="#details"> 27*0f5fd22fSGreg Roach <?= I18N::translate('Details') ?> 28*0f5fd22fSGreg Roach </a> 29*0f5fd22fSGreg Roach </li> 30*0f5fd22fSGreg Roach 31*0f5fd22fSGreg Roach <?php if ($linked_individuals instanceof Collection) : ?> 32*0f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 33*0f5fd22fSGreg Roach <a class="nav-link" data-toggle="tab" role="tab" href="#individuals"> 34*0f5fd22fSGreg Roach <?= I18N::translate('Individuals') ?> 35*0f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_individuals->count()]) ?> 36*0f5fd22fSGreg Roach </a> 37*0f5fd22fSGreg Roach </li> 38*0f5fd22fSGreg Roach <?php endif ?> 39*0f5fd22fSGreg Roach 40*0f5fd22fSGreg Roach <?php if ($linked_families instanceof Collection) : ?> 41*0f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 42*0f5fd22fSGreg Roach <a class="nav-link" data-toggle="tab" role="tab" href="#families"> 43*0f5fd22fSGreg Roach <?= I18N::translate('Families') ?> 44*0f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_families->count()]) ?> 45*0f5fd22fSGreg Roach </a> 46*0f5fd22fSGreg Roach </li> 47*0f5fd22fSGreg Roach <?php endif ?> 48*0f5fd22fSGreg Roach 49*0f5fd22fSGreg Roach <?php if ($linked_media_objects instanceof Collection) : ?> 50*0f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 51*0f5fd22fSGreg Roach <a class="nav-link" data-toggle="tab" role="tab" href="#media"> 52*0f5fd22fSGreg Roach <?= I18N::translate('Media objects') ?> 53*0f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_media_objects->count()]) ?> 54*0f5fd22fSGreg Roach </a> 55*0f5fd22fSGreg Roach </li> 56*0f5fd22fSGreg Roach <?php endif ?> 57*0f5fd22fSGreg Roach 58*0f5fd22fSGreg Roach <?php if ($linked_sources instanceof Collection) : ?> 59*0f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 60*0f5fd22fSGreg Roach <a class="nav-link" data-toggle="tab" role="tab" href="#sources"> 61*0f5fd22fSGreg Roach <?= I18N::translate('Sources') ?> 62*0f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_sources->count()]) ?> 63*0f5fd22fSGreg Roach </a> 64*0f5fd22fSGreg Roach </li> 65*0f5fd22fSGreg Roach <?php endif ?> 66*0f5fd22fSGreg Roach 67*0f5fd22fSGreg Roach <?php if ($linked_notes instanceof Collection) : ?> 68*0f5fd22fSGreg Roach <li class="nav-item" role="presentation"> 69*0f5fd22fSGreg Roach <a class="nav-link" data-toggle="tab" role="tab" href="#notes"> 70*0f5fd22fSGreg Roach <?= I18N::translate('Notes') ?> 71*0f5fd22fSGreg Roach <?= view('components/badge', ['count' => $linked_notes->count()]) ?> 72*0f5fd22fSGreg Roach </a> 73*0f5fd22fSGreg Roach </li> 74*0f5fd22fSGreg Roach <?php endif ?> 75*0f5fd22fSGreg Roach</ul> 76*0f5fd22fSGreg Roach 77*0f5fd22fSGreg Roach<div class="tab-content"> 78*0f5fd22fSGreg Roach <div class="tab-pane fade show active" role="tabpanel" id="details"> 79*0f5fd22fSGreg Roach <?= $details ?> 80*0f5fd22fSGreg Roach </div> 81*0f5fd22fSGreg Roach 82*0f5fd22fSGreg Roach <?php if ($linked_individuals instanceof Collection) : ?> 83*0f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="individuals"> 84*0f5fd22fSGreg Roach <?= view('lists/individuals-table', ['individuals' => $linked_individuals, 'sosa' => false, 'tree' => $tree]) ?> 85*0f5fd22fSGreg Roach </div> 86*0f5fd22fSGreg Roach <?php endif ?> 87*0f5fd22fSGreg Roach 88*0f5fd22fSGreg Roach <?php if ($linked_families instanceof Collection) : ?> 89*0f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="families"> 90*0f5fd22fSGreg Roach <?= view('lists/families-table', ['families' => $linked_families, 'tree' => $tree]) ?> 91*0f5fd22fSGreg Roach </div> 92*0f5fd22fSGreg Roach <?php endif ?> 93*0f5fd22fSGreg Roach 94*0f5fd22fSGreg Roach <?php if ($linked_media_objects instanceof Collection) : ?> 95*0f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="media"> 96*0f5fd22fSGreg Roach <?= view('lists/media-table', ['media_objects' => $linked_media_objects, 'tree' => $tree]) ?> 97*0f5fd22fSGreg Roach </div> 98*0f5fd22fSGreg Roach <?php endif ?> 99*0f5fd22fSGreg Roach 100*0f5fd22fSGreg Roach <?php if ($linked_sources instanceof Collection) : ?> 101*0f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="sources"> 102*0f5fd22fSGreg Roach <?= view('lists/sources-table', ['sources' => $linked_sources, 'tree' => $tree]) ?> 103*0f5fd22fSGreg Roach </div> 104*0f5fd22fSGreg Roach <?php endif ?> 105*0f5fd22fSGreg Roach 106*0f5fd22fSGreg Roach <?php if ($linked_notes instanceof Collection) : ?> 107*0f5fd22fSGreg Roach <div class="tab-pane fade" role="tabpanel" id="notes"> 108*0f5fd22fSGreg Roach <?= view('lists/notes-table', ['notes' => $linked_notes, 'tree' => $tree]) ?> 109*0f5fd22fSGreg Roach </div> 110*0f5fd22fSGreg Roach <?php endif ?> 111*0f5fd22fSGreg Roach</div> 112