1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 2dd6b2bfcSGreg Roach 3dd6b2bfcSGreg Roach<?= view('components/breadcrumbs', ['links' => [route('admin-control-panel') => I18N::translate('Control panel'), route('admin-trees') => I18N::translate('Manage family trees'), $title]]) ?> 4dd6b2bfcSGreg Roach 5dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 6dd6b2bfcSGreg Roach 7dd6b2bfcSGreg Roach<?php foreach ($duplicates as $category => $records) : ?> 8dd6b2bfcSGreg Roach <h2><?= $category ?></h2> 9dd6b2bfcSGreg Roach 10dd6b2bfcSGreg Roach <?php if (!empty($records)) : ?> 11dd6b2bfcSGreg Roach <ul> 12dd6b2bfcSGreg Roach <?php foreach ($records as $duplicates) : ?> 13dd6b2bfcSGreg Roach <li> 14dd6b2bfcSGreg Roach <?= $duplicates[0]->getFullName() ?> 15dd6b2bfcSGreg Roach <?php foreach ($duplicates as $record) : ?> 16dd6b2bfcSGreg Roach — 17dd6b2bfcSGreg Roach <a href="<?= e($record->url()) ?>"> 18*c0935879SGreg Roach <?= $record->xref() ?> 19dd6b2bfcSGreg Roach </a> 20dd6b2bfcSGreg Roach <?php endforeach ?> 21dd6b2bfcSGreg Roach <?php if (count($duplicates) === 2) : ?> 22dd6b2bfcSGreg Roach — 23*c0935879SGreg Roach <a href="<?= e(route('merge-records', ['ged' => $tree->name(), 'xref1' => $duplicates[0]->xref(), 'xref2' => $duplicates[1]->xref()])) ?>"> 24dd6b2bfcSGreg Roach <?= I18N::translate('Merge') ?> 25dd6b2bfcSGreg Roach </a> 26dd6b2bfcSGreg Roach <?php endif ?> 27dd6b2bfcSGreg Roach </li> 28dd6b2bfcSGreg Roach <?php endforeach ?> 29dd6b2bfcSGreg Roach </ul> 30dd6b2bfcSGreg Roach <?php else : ?> 31dd6b2bfcSGreg Roach <p><?= I18N::translate('No duplicates have been found.') ?></p> 32dd6b2bfcSGreg Roach <?php endif ?> 33dd6b2bfcSGreg Roach<?php endforeach ?> 34