1<?php 2 3use Fisharebest\Webtrees\Individual; 4use Fisharebest\Webtrees\Module\ModuleSidebarInterface; 5use Illuminate\Support\Collection; 6 7/** 8 * @var Individual $record 9 * @var Collection<ModuleSidebarInterface> $sidebars 10 */ 11?> 12 13<div class="col-sm-4 accordion" id="sidebar"> 14 <?php foreach ($sidebars as $sidebar) : ?> 15 <div class="card"> 16 <div class="card-header" role="tab" id="sidebar-header-<?= $sidebar->name() ?>"> 17 <div class="card-title mb-0"> 18 <a data-toggle="collapse" href="#sidebar-content-<?= $sidebar->name() ?>" aria-expanded="<?= $sidebar->name() === 'family_nav' ? 'true' : 'false' ?>" aria-controls="sidebar-content-<?= $sidebar->name() ?>"> 19 <?= view('icons/expand') ?> 20 <?= view('icons/collapse') ?> 21 <?= $sidebar->sidebarTitle($record) ?> 22 </a> 23 </div> 24 </div> 25 26 <div id="sidebar-content-<?= $sidebar->name() ?>" class="collapse<?= $sidebar->name() === 'family_nav' ? ' show' : '' ?>" data-parent="#sidebar" aria-labelledby="sidebar-header-<?= $sidebar->name() ?>"> 27 <div class="card-body"> 28 <?= $sidebar->getSidebarContent($record) ?> 29 </div> 30 </div> 31 </div> 32 <?php endforeach ?> 33</div> 34