xref: /webtrees/resources/views/modules/media/tab.phtml (revision 9deadf1c5b187f630fcc0ae0771860f690e7f202)
1<?php
2
3use Fisharebest\Webtrees\Fact;
4use Fisharebest\Webtrees\Functions\FunctionsPrintFacts;
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Individual;
7use Illuminate\Support\Collection;
8
9/**
10 * @var bool             $can_edit
11 * @var Collection<Fact> $clipboard_facts
12 * @var Collection<Fact> $facts
13 * @var Individual       $individual
14 */
15
16?>
17<div class="wt-tab-media py-4">
18    <table class="table wt-facts-table">
19        <?php foreach ($facts as $fact) : ?>
20            <?php FunctionsPrintFacts::printMainMedia($fact, 1) ?>
21            <?php FunctionsPrintFacts::printMainMedia($fact, 2) ?>
22            <?php FunctionsPrintFacts::printMainMedia($fact, 3) ?>
23            <?php FunctionsPrintFacts::printMainMedia($fact, 4) ?>
24        <?php endforeach ?>
25
26        <?php if ($facts->isEmpty()) : ?>
27            <tr>
28                <td colspan="2">
29                    <?= I18N::translate('There are no media objects for this individual.') ?>
30                </td>
31            </tr>
32        <?php endif ?>
33    </table>
34</div>
35