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