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 34 <?php if ($can_edit) : ?> 35 <?= view('edit/paste-fact-row', ['record' => $individual, 'facts' => $clipboard_facts]) ?> 36 <?php endif ?> 37 </table> 38</div> 39