1e759aebbSGreg Roach<?php 2e759aebbSGreg Roach 3e759aebbSGreg Roachuse Fisharebest\Webtrees\Individual; 4e759aebbSGreg Roachuse Illuminate\Support\Collection; 5e759aebbSGreg Roach 6e759aebbSGreg Roach/** 7e759aebbSGreg Roach * @var Collection|Individual[] $ancestors Indexed by sosa number 8e759aebbSGreg Roach * @var int $generation Draw this generation 9e759aebbSGreg Roach * @var int $generations Final generation to draw 10e759aebbSGreg Roach * @var Collection|string[] $links Links to extend the tree 11e759aebbSGreg Roach * @var int $sosa Draw this individual 12e759aebbSGreg Roach */ 13e759aebbSGreg Roach?> 14e759aebbSGreg Roach 15e759aebbSGreg Roach<div class="d-flex flex-column"> 16e759aebbSGreg Roach <?php if ($generation < $generations): ?> 17e759aebbSGreg Roach <div class="d-flex"> 18e759aebbSGreg Roach <?= view('modules/pedigree-chart/chart-up', ['ancestors' => $ancestors, 'sosa' => $sosa * 2, 'generation' => $generation + 1, 'generations' => $generations, 'links' => $links]) ?> 19e759aebbSGreg Roach 20e759aebbSGreg Roach <?= view('modules/pedigree-chart/chart-up', ['ancestors' => $ancestors, 'sosa' => $sosa * 2 + 1, 'generation' => $generation + 1, 'generations' => $generations, 'links' => $links]) ?> 21e759aebbSGreg Roach </div> 22e759aebbSGreg Roach <?php endif ?> 23e759aebbSGreg Roach 24e759aebbSGreg Roach <div class="position-relative d-flex justify-content-center wt-pedigree-generation wt-generation-fwd-<?= $generation ?> wt-generation-rev-<?= 1 + $generations - $generation ?>"> 25e759aebbSGreg Roach <div class="d-flex flex-column align-items-center"> 26e759aebbSGreg Roach <?php if ($generation === $generations && $links->get($sosa)) : ?> 27e759aebbSGreg Roach <?= $links->get($sosa) ?> 28e759aebbSGreg Roach <?php endif ?> 29e759aebbSGreg Roach 30*39c990acSGreg Roach <?= view('chart-box', ['individual' => $ancestors->get($sosa)]) ?> 31e759aebbSGreg Roach 32e759aebbSGreg Roach <?php if ($sosa === 1) : ?> 33e759aebbSGreg Roach <?= $links->get(1) ?> 34e759aebbSGreg Roach <?php endif ?> 35e759aebbSGreg Roach </div> 36e759aebbSGreg Roach 37e759aebbSGreg Roach <!-- lines to the next generation --> 38e759aebbSGreg Roach <?php if ($generation < $generations) : ?> 39e759aebbSGreg Roach <div class="wt-pedigree-lines position-absolute"></div> 40e759aebbSGreg Roach <?php endif ?> 41e759aebbSGreg Roach </div> 42e759aebbSGreg Roach</div> 43e759aebbSGreg Roach 44