10f5fd22fSGreg Roach<?php 20f5fd22fSGreg Roach 310e06497SGreg Roachdeclare(strict_types=1); 410e06497SGreg Roach 50f5fd22fSGreg Roachuse Fisharebest\Webtrees\Individual; 60f5fd22fSGreg Roachuse Fisharebest\Webtrees\Module\ModuleSidebarInterface; 70f5fd22fSGreg Roachuse Illuminate\Support\Collection; 80f5fd22fSGreg Roach 90f5fd22fSGreg Roach/** 100f5fd22fSGreg Roach * @var Individual $record 1136779af1SGreg Roach * @var Collection<int,ModuleSidebarInterface> $sidebars 120f5fd22fSGreg Roach */ 130f5fd22fSGreg Roach?> 140f5fd22fSGreg Roach 15*75f2a483SDavid Drury<div class="accordion wt-sidebar" id="sidebar"> 160f5fd22fSGreg Roach <?php foreach ($sidebars as $sidebar) : ?> 17290bb197SJonathan Jaubart <div class="accordion-item"> 18290bb197SJonathan Jaubart <div class="accordion-header" id="sidebar-header-<?= $sidebar->name() ?>"> 19290bb197SJonathan Jaubart <button class="accordion-button gap-1<?= $sidebar->name() === 'family_nav' ? '' : ' collapsed' ?>" type="button" data-bs-toggle="collapse" data-bs-target="#sidebar-content-<?= $sidebar->name() ?>" aria-expanded="<?= $sidebar->name() === 'family_nav' ? 'true' : 'false' ?>" aria-controls="sidebar-content-<?= $sidebar->name() ?>"> 200f5fd22fSGreg Roach <?= view('icons/expand') ?> 210f5fd22fSGreg Roach <?= view('icons/collapse') ?> 22db39ef31SGreg Roach <?= $sidebar->sidebarTitle($record) ?> 23290bb197SJonathan Jaubart </button> 240f5fd22fSGreg Roach </div> 25290bb197SJonathan Jaubart <div id="sidebar-content-<?= $sidebar->name() ?>" class="accordion-collapse collapse<?= $sidebar->name() === 'family_nav' ? ' show' : '' ?>" data-bs-parent="#sidebar" aria-labelledby="sidebar-header-<?= $sidebar->name() ?>"> 26290bb197SJonathan Jaubart <div class="accordion-body"> 270f5fd22fSGreg Roach <?= $sidebar->getSidebarContent($record) ?> 280f5fd22fSGreg Roach </div> 290f5fd22fSGreg Roach </div> 300f5fd22fSGreg Roach </div> 310f5fd22fSGreg Roach <?php endforeach ?> 320f5fd22fSGreg Roach</div> 33