xref: /webtrees/resources/views/modules/stories/list.phtml (revision 5062b1ca554e9384a3865a8ed7fa201483b30720)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4use Illuminate\Support\Collection;
5
6/**
7 * @var Collection<stdClass> $stories
8 * @var string               $title
9 */
10
11?>
12
13<h2 class="wt-page-title"><?= $title ?></h2>
14
15<table class="table table-bordered w-100">
16    <thead>
17        <tr>
18            <th><?= I18N::translate('Story title') ?></th>
19            <th><?= I18N::translate('Individual') ?></th>
20        </tr>
21    </thead>
22    <tbody>
23        <?php foreach ($stories as $story) : ?>
24            <tr>
25                <td>
26                    <?= e($story->title) ?>
27                </td>
28                <td>
29                    <a href="<?= e($story->individual->url()) ?>#tab-stories">
30                        <?= $story->individual->fullName() ?>
31                    </a>
32                </td>
33            </tr>
34        <?php endforeach ?>
35    </tbody>
36</table>
37