spouseFamilies()->map(static function (Family $family): Collection {
return $family->children();
})->flatten();
?>
= view('modules/hourglass-chart/children', ['children' => $children, 'generations' => $generations - 1, 'spouses' => $spouses]) ?>
= view('chart-box', ['individual' => $individual]) ?>
spouseFamilies() as $family): ?>
= view('chart-box', ['individual' => $family->spouse($individual)]) ?>
childFamilies()->first() !== null): ?>
= view('modules/hourglass-chart/parents', ['generations' => $generations - 1, 'family' => $individual->childFamilies()->first()]) ?>