10c0910bfSGreg Roach<?php 2dd6b2bfcSGreg Roach 30c0910bfSGreg Roachuse Fisharebest\Webtrees\GedcomRecord; 40c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 5*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees; 65bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsAction; 70c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N; 80c0910bfSGreg Roach 90c0910bfSGreg Roach?> 100c0910bfSGreg Roach 11*6fd01894SGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?> 12dd6b2bfcSGreg Roach 13dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 14dd6b2bfcSGreg Roach 155bbfbb82SGreg Roach<form method="post" action="<?= e(route(MergeFactsAction::class, ['tree' => $tree->name()])) ?>"> 16dd6b2bfcSGreg Roach <?= csrf_field() ?> 175bbfbb82SGreg Roach 185bbfbb82SGreg Roach <input type="hidden" name="xref1" value="<?= e($record1->xref()) ?>"> 195bbfbb82SGreg Roach <input type="hidden" name="xref2" value="<?= e($record2->xref()) ?>"> 205bbfbb82SGreg Roach 21dd6b2bfcSGreg Roach <p> 22dd6b2bfcSGreg Roach <?= I18N::translate('Select the facts and events to keep from both records.') ?> 23dd6b2bfcSGreg Roach </p> 24dd6b2bfcSGreg Roach <div class="card mb-4"> 25dd6b2bfcSGreg Roach <div class="card-header"> 26dd6b2bfcSGreg Roach <h2 class="card-title"> 27dd6b2bfcSGreg Roach <?= I18N::translate('The following facts and events were found in both records.') ?> 28dd6b2bfcSGreg Roach </h2> 29dd6b2bfcSGreg Roach </div> 30dd6b2bfcSGreg Roach <div class="card-body"> 31075d1a05SGreg Roach <?php if ($facts !== []) : ?> 32dd6b2bfcSGreg Roach <table class="table table-bordered table-sm"> 33dd6b2bfcSGreg Roach <thead> 34dd6b2bfcSGreg Roach <tr> 35dd6b2bfcSGreg Roach <th> 36dd6b2bfcSGreg Roach <?= I18N::translate('Select') ?> 37dd6b2bfcSGreg Roach </th> 38dd6b2bfcSGreg Roach <th> 39dd6b2bfcSGreg Roach <?= I18N::translate('Details') ?> 40dd6b2bfcSGreg Roach </th> 41dd6b2bfcSGreg Roach </tr> 42dd6b2bfcSGreg Roach </thead> 43dd6b2bfcSGreg Roach <tbody> 44dd6b2bfcSGreg Roach <?php foreach ($facts as $fact_id => $fact) : ?> 45dd6b2bfcSGreg Roach <tr> 46dd6b2bfcSGreg Roach <td> 47905ab80aSGreg Roach <input type="checkbox" name="keep1[]" value="<?= $fact->id() ?>" checked> 48dd6b2bfcSGreg Roach </td> 49dd6b2bfcSGreg Roach <td> 507d0db648SGreg Roach <div class="gedcom-data" dir="ltr"><?= e($fact->gedcom()) ?></div> 51dc124885SGreg Roach <?php if ($fact->target() instanceof GedcomRecord) : ?> 52dc124885SGreg Roach <a href="<?= e($fact->target()->url()) ?>"> 5339ca88baSGreg Roach <?= $fact->target()->fullName() ?> 54dd6b2bfcSGreg Roach </a> 55dd6b2bfcSGreg Roach <?php endif ?> 56dd6b2bfcSGreg Roach </td> 57dd6b2bfcSGreg Roach </tr> 58dd6b2bfcSGreg Roach <?php endforeach ?> 59dd6b2bfcSGreg Roach </tbody> 60dd6b2bfcSGreg Roach </table> 61dd6b2bfcSGreg Roach <?php else : ?> 62dd6b2bfcSGreg Roach <p> 63dd6b2bfcSGreg Roach <?= I18N::translate('No matching facts found') ?> 64dd6b2bfcSGreg Roach </p> 65dd6b2bfcSGreg Roach <?php endif ?> 66dd6b2bfcSGreg Roach </div> 67dd6b2bfcSGreg Roach </div> 68dd6b2bfcSGreg Roach 69dd6b2bfcSGreg Roach <div class="row"> 70dd6b2bfcSGreg Roach <div class="col-sm-6"> 71dd6b2bfcSGreg Roach <div class="card"> 72dd6b2bfcSGreg Roach <div class="card-header"> 73dd6b2bfcSGreg Roach <h2 class="card-title"> 7439ca88baSGreg Roach <?= /* I18N: the name of an individual, source, etc. */ I18N::translate('The following facts and events were only found in the record of %s.', '<a href="' . e($record1->url()) . '">' . $record1->fullName()) . '</a>' ?> 75dd6b2bfcSGreg Roach </h2> 76dd6b2bfcSGreg Roach </div> 77dd6b2bfcSGreg Roach <div class="card-body"> 78075d1a05SGreg Roach <?php if ($facts1 !== []) : ?> 79dd6b2bfcSGreg Roach <table class="table table-bordered table-sm"> 80dd6b2bfcSGreg Roach <thead> 81dd6b2bfcSGreg Roach <tr> 82dd6b2bfcSGreg Roach <th> 83dd6b2bfcSGreg Roach <?= I18N::translate('Select') ?> 84dd6b2bfcSGreg Roach </th> 85dd6b2bfcSGreg Roach <th> 86dd6b2bfcSGreg Roach <?= I18N::translate('Details') ?> 87dd6b2bfcSGreg Roach </th> 88dd6b2bfcSGreg Roach </tr> 89dd6b2bfcSGreg Roach </thead> 90dd6b2bfcSGreg Roach <tbody> 91dd6b2bfcSGreg Roach <?php foreach ($facts1 as $fact_id => $fact) : ?> 92dd6b2bfcSGreg Roach <tr> 93dd6b2bfcSGreg Roach <td> 94905ab80aSGreg Roach <input type="checkbox" name="keep1[]" value="<?= $fact->id() ?>" checked> 95dd6b2bfcSGreg Roach </td> 96dd6b2bfcSGreg Roach <td> 977d0db648SGreg Roach <div class="gedcom-data" dir="ltr"><?= e($fact->gedcom()) ?></div> 98dc124885SGreg Roach <?php if ($fact->target() instanceof GedcomRecord) : ?> 99dc124885SGreg Roach <a href="<?= e($fact->target()->url()) ?>"> 10039ca88baSGreg Roach <?= $fact->target()->fullName() ?> 101dd6b2bfcSGreg Roach </a> 102dd6b2bfcSGreg Roach <?php endif ?> 103dd6b2bfcSGreg Roach </td> 104dd6b2bfcSGreg Roach </tr> 105dd6b2bfcSGreg Roach <?php endforeach ?> 106dd6b2bfcSGreg Roach </tbody> 107dd6b2bfcSGreg Roach </table> 108dd6b2bfcSGreg Roach <?php else : ?> 109dd6b2bfcSGreg Roach <p> 110dd6b2bfcSGreg Roach <?= I18N::translate('No matching facts found') ?> 111dd6b2bfcSGreg Roach </p> 112dd6b2bfcSGreg Roach <?php endif ?> 113dd6b2bfcSGreg Roach </div> 114dd6b2bfcSGreg Roach </div> 115dd6b2bfcSGreg Roach </div> 116dd6b2bfcSGreg Roach <div class="col-sm-6"> 117dd6b2bfcSGreg Roach <div class="card"> 118dd6b2bfcSGreg Roach <div class="card-header"> 119dd6b2bfcSGreg Roach <h2 class="card-title"> 12039ca88baSGreg Roach <?= /* I18N: the name of an individual, source, etc. */ I18N::translate('The following facts and events were only found in the record of %s.', '<a href="' . e($record2->url()) . '">' . $record2->fullName()) . '</a>' ?> 121dd6b2bfcSGreg Roach </h2> 122dd6b2bfcSGreg Roach </div> 123dd6b2bfcSGreg Roach <div class="card-body"> 124075d1a05SGreg Roach <?php if ($facts2 !== []) : ?> 125dd6b2bfcSGreg Roach <table class="table table-bordered table-sm"> 126dd6b2bfcSGreg Roach <thead> 127dd6b2bfcSGreg Roach <tr> 128dd6b2bfcSGreg Roach <th> 129dd6b2bfcSGreg Roach <?= I18N::translate('Select') ?> 130dd6b2bfcSGreg Roach </th> 131dd6b2bfcSGreg Roach <th> 132dd6b2bfcSGreg Roach <?= I18N::translate('Details') ?> 133dd6b2bfcSGreg Roach </th> 134dd6b2bfcSGreg Roach </tr> 135dd6b2bfcSGreg Roach </thead> 136dd6b2bfcSGreg Roach <tbody> 137dd6b2bfcSGreg Roach <?php foreach ($facts2 as $fact_id => $fact) : ?> 138dd6b2bfcSGreg Roach <tr> 139dd6b2bfcSGreg Roach <td> 140905ab80aSGreg Roach <input type="checkbox" name="keep2[]" value="<?= $fact->id() ?>" checked> 141dd6b2bfcSGreg Roach </td> 142dd6b2bfcSGreg Roach <td> 1437d0db648SGreg Roach <div class="gedcom-data" dir="ltr"><?= e($fact->gedcom()) ?></div> 144dc124885SGreg Roach <?php if ($fact->target() instanceof GedcomRecord) : ?> 145dc124885SGreg Roach <a href="<?= e($fact->target()->url()) ?>"> 14639ca88baSGreg Roach <?= $fact->target()->fullName() ?> 147dd6b2bfcSGreg Roach </a> 148dd6b2bfcSGreg Roach <?php endif ?> 149dd6b2bfcSGreg Roach </td> 150dd6b2bfcSGreg Roach </tr> 151dd6b2bfcSGreg Roach <?php endforeach ?> 152dd6b2bfcSGreg Roach </tbody> 153dd6b2bfcSGreg Roach </table> 154dd6b2bfcSGreg Roach <?php else : ?> 155dd6b2bfcSGreg Roach <p> 156dd6b2bfcSGreg Roach <?= I18N::translate('No matching facts found') ?> 157dd6b2bfcSGreg Roach </p> 158dd6b2bfcSGreg Roach <?php endif ?> 159dd6b2bfcSGreg Roach </div> 160dd6b2bfcSGreg Roach </div> 161dd6b2bfcSGreg Roach </div> 162dd6b2bfcSGreg Roach </div> 163dd6b2bfcSGreg Roach 164dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 165dd6b2bfcSGreg Roach <?= view('icons/save') ?> 166dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 167dd6b2bfcSGreg Roach </button> 168dd6b2bfcSGreg Roach</form> 169