1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3*7c2c99faSGreg Roachuse Fisharebest\Webtrees\Fact; 4d70512abSGreg Roachuse Fisharebest\Webtrees\Functions\FunctionsPrintFacts; 5*7c2c99faSGreg Roachuse Fisharebest\Webtrees\I18N; 6*7c2c99faSGreg Roachuse Fisharebest\Webtrees\Individual; 7*7c2c99faSGreg Roachuse Illuminate\Support\Collection; 8*7c2c99faSGreg Roach 9*7c2c99faSGreg Roach/** 10*7c2c99faSGreg Roach * @var bool $can_edit 11*7c2c99faSGreg Roach * @var Collection<Fact> $clipboard_facts 12*7c2c99faSGreg Roach * @var Collection<Fact> $facts 13*7c2c99faSGreg Roach * @var Individual $individual 14*7c2c99faSGreg Roach */ 15d70512abSGreg Roach 16d70512abSGreg Roach?> 174a2590a5SGreg Roach<div class="wt-tab-media py-4"> 18dd6b2bfcSGreg Roach <table class="table wt-facts-table"> 19dd6b2bfcSGreg Roach <?php foreach ($facts as $fact) : ?> 20dd6b2bfcSGreg Roach <?php FunctionsPrintFacts::printMainMedia($fact, 1) ?> 21dd6b2bfcSGreg Roach <?php FunctionsPrintFacts::printMainMedia($fact, 2) ?> 22dd6b2bfcSGreg Roach <?php FunctionsPrintFacts::printMainMedia($fact, 3) ?> 23dd6b2bfcSGreg Roach <?php FunctionsPrintFacts::printMainMedia($fact, 4) ?> 24dd6b2bfcSGreg Roach <?php endforeach ?> 25dd6b2bfcSGreg Roach 26075d1a05SGreg Roach <?php if ($facts->isEmpty()) : ?> 27dd6b2bfcSGreg Roach <tr> 28dd6b2bfcSGreg Roach <td colspan="2"> 29dd6b2bfcSGreg Roach <?= I18N::translate('There are no media objects for this individual.') ?> 30dd6b2bfcSGreg Roach </td> 31dd6b2bfcSGreg Roach </tr> 32dd6b2bfcSGreg Roach <?php endif ?> 332adcbd9aSGreg Roach 342adcbd9aSGreg Roach <?php if ($can_edit) : ?> 352adcbd9aSGreg Roach <?= view('edit/paste-fact-row', ['record' => $individual, 'facts' => $clipboard_facts]) ?> 362adcbd9aSGreg Roach <?php endif ?> 37dd6b2bfcSGreg Roach </table> 38dd6b2bfcSGreg Roach</div> 39