1<div class="wt-sidebar-content wt-sidebar-family-navigator"> 2 <!-- parent families --> 3 <?php foreach ($individual->childFamilies() as $family) : ?> 4 <?= view('modules/family_nav/sidebar-family', ['individual' => $individual, 'family' => $family, 'title' => $individual->getChildFamilyLabel($family)]) ?> 5 <?php endforeach ?> 6 7 <!-- step parents --> 8 <?php foreach ($individual->childStepFamilies() as $family) : ?> 9 <?= view('modules/family_nav/sidebar-family', ['individual' => $individual, 'family' => $family, 'title' => $individual->getStepFamilyLabel($family)]) ?> 10 <?php endforeach ?> 11 12 <!-- spouse and children --> 13 <?php foreach ($individual->spouseFamilies() as $family) : ?> 14 <?= view('modules/family_nav/sidebar-family', ['individual' => $individual, 'family' => $family, 'title' => $individual->spouse(FamilyLabel($family)]) ?> 15 <?php endforeach ?> 16 17 <!-- step children --> 18 <?php foreach ($individual->spouse(StepFamilies() as $family) : ?> 19 <?= view('modules/family_nav/sidebar-family', ['individual' => $individual, 'family' => $family, 'title' => $family->fullName()]) ?> 20 <?php endforeach ?> 21</div> 22