superPinnedInvestigation()->toPage(); $pinned = $page->pinnedInvestigations()->toPages(); if ($superPin) $pinned = $pinned->not($superPin); $shownIds = []; $list = []; if ($superPin) { $list[] = ['page' => $superPin, 'type' => 'super']; $shownIds[] = $superPin->id(); } foreach ($pinned as $p) { $list[] = ['page' => $p, 'type' => 'pinned']; $shownIds[] = $p->id(); } $rest = $page->children()->listed()->sortBy('created', 'desc') ->filter(fn($p) => !in_array($p->id(), $shownIds)); foreach ($rest as $p) { $list[] = ['page' => $p, 'type' => 'latest']; } ?> cover()->toFile(); ?>
<?= $investigation->title()->esc() ?>

title()->esc() ?>

chapo()->isNotEmpty()): ?>

chapo()->excerpt(200) ?>

incidentDate()->isNotEmpty()): ?>
Date de l'incident
partners()->toStructure()): ?> isNotEmpty()): ?>
Partenaire(s)
name()->value() ?>
incidentLocation()->isNotEmpty()): ?>
Lieu de l'incident
incidentLocation()->esc() ?>
keywords()->split()): ?>