xref: /webtrees/resources/views/modules/stories/list.phtml (revision 2c685d76b4ab2ea8f166ab8a2e4112fa1ba8de5d)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4use Illuminate\Support\Collection;
5
6/**
7 * @var Collection<int,object> $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