10c0910bfSGreg Roach<?php 2dd6b2bfcSGreg Roach 30c0910bfSGreg Roachuse Fisharebest\Webtrees\GedcomRecord; 40c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 5*5bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsAction; 60c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N; 70c0910bfSGreg Roach 80c0910bfSGreg Roach?> 90c0910bfSGreg Roach 105fb051e9SGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route('manage-trees', ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?> 11dd6b2bfcSGreg Roach 12dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 13dd6b2bfcSGreg Roach 14*5bbfbb82SGreg Roach<form method="post" action="<?= e(route(MergeFactsAction::class, ['tree' => $tree->name()])) ?>"> 15dd6b2bfcSGreg Roach <?= csrf_field() ?> 16*5bbfbb82SGreg Roach 17*5bbfbb82SGreg Roach <input type="hidden" name="xref1" value="<?= e($record1->xref()) ?>"> 18*5bbfbb82SGreg Roach <input type="hidden" name="xref2" value="<?= e($record2->xref()) ?>"> 19*5bbfbb82SGreg Roach 20dd6b2bfcSGreg Roach <p> 21dd6b2bfcSGreg Roach <?= I18N::translate('Select the facts and events to keep from both records.') ?> 22dd6b2bfcSGreg Roach </p> 23dd6b2bfcSGreg Roach <div class="card mb-4"> 24dd6b2bfcSGreg Roach <div class="card-header"> 25dd6b2bfcSGreg Roach <h2 class="card-title"> 26dd6b2bfcSGreg Roach <?= I18N::translate('The following facts and events were found in both records.') ?> 27dd6b2bfcSGreg Roach </h2> 28dd6b2bfcSGreg Roach </div> 29dd6b2bfcSGreg Roach <div class="card-body"> 30dd6b2bfcSGreg Roach <?php if (!empty($facts)) : ?> 31dd6b2bfcSGreg Roach <table class="table table-bordered table-sm"> 32dd6b2bfcSGreg Roach <thead> 33dd6b2bfcSGreg Roach <tr> 34dd6b2bfcSGreg Roach <th> 35dd6b2bfcSGreg Roach <?= I18N::translate('Select') ?> 36dd6b2bfcSGreg Roach </th> 37dd6b2bfcSGreg Roach <th> 38dd6b2bfcSGreg Roach <?= I18N::translate('Details') ?> 39dd6b2bfcSGreg Roach </th> 40dd6b2bfcSGreg Roach </tr> 41dd6b2bfcSGreg Roach </thead> 42dd6b2bfcSGreg Roach <tbody> 43dd6b2bfcSGreg Roach <?php foreach ($facts as $fact_id => $fact) : ?> 44dd6b2bfcSGreg Roach <tr> 45dd6b2bfcSGreg Roach <td> 46905ab80aSGreg Roach <input type="checkbox" name="keep1[]" value="<?= $fact->id() ?>" checked> 47dd6b2bfcSGreg Roach </td> 48dd6b2bfcSGreg Roach <td> 497d0db648SGreg Roach <div class="gedcom-data" dir="ltr"><?= e($fact->gedcom()) ?></div> 50dc124885SGreg Roach <?php if ($fact->target() instanceof GedcomRecord) : ?> 51dc124885SGreg Roach <a href="<?= e($fact->target()->url()) ?>"> 5239ca88baSGreg Roach <?= $fact->target()->fullName() ?> 53dd6b2bfcSGreg Roach </a> 54dd6b2bfcSGreg Roach <?php endif ?> 55dd6b2bfcSGreg Roach </td> 56dd6b2bfcSGreg Roach </tr> 57dd6b2bfcSGreg Roach <?php endforeach ?> 58dd6b2bfcSGreg Roach </tbody> 59dd6b2bfcSGreg Roach </table> 60dd6b2bfcSGreg Roach <?php else : ?> 61dd6b2bfcSGreg Roach <p> 62dd6b2bfcSGreg Roach <?= I18N::translate('No matching facts found') ?> 63dd6b2bfcSGreg Roach </p> 64dd6b2bfcSGreg Roach <?php endif ?> 65dd6b2bfcSGreg Roach </div> 66dd6b2bfcSGreg Roach </div> 67dd6b2bfcSGreg Roach 68dd6b2bfcSGreg Roach <div class="row"> 69dd6b2bfcSGreg Roach <div class="col-sm-6"> 70dd6b2bfcSGreg Roach <div class="card"> 71dd6b2bfcSGreg Roach <div class="card-header"> 72dd6b2bfcSGreg Roach <h2 class="card-title"> 7339ca88baSGreg 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>' ?> 74dd6b2bfcSGreg Roach </h2> 75dd6b2bfcSGreg Roach </div> 76dd6b2bfcSGreg Roach <div class="card-body"> 77dd6b2bfcSGreg Roach <?php if (!empty($facts1)) : ?> 78dd6b2bfcSGreg Roach <table class="table table-bordered table-sm"> 79dd6b2bfcSGreg Roach <thead> 80dd6b2bfcSGreg Roach <tr> 81dd6b2bfcSGreg Roach <th> 82dd6b2bfcSGreg Roach <?= I18N::translate('Select') ?> 83dd6b2bfcSGreg Roach </th> 84dd6b2bfcSGreg Roach <th> 85dd6b2bfcSGreg Roach <?= I18N::translate('Details') ?> 86dd6b2bfcSGreg Roach </th> 87dd6b2bfcSGreg Roach </tr> 88dd6b2bfcSGreg Roach </thead> 89dd6b2bfcSGreg Roach <tbody> 90dd6b2bfcSGreg Roach <?php foreach ($facts1 as $fact_id => $fact) : ?> 91dd6b2bfcSGreg Roach <tr> 92dd6b2bfcSGreg Roach <td> 93905ab80aSGreg Roach <input type="checkbox" name="keep1[]" value="<?= $fact->id() ?>" checked> 94dd6b2bfcSGreg Roach </td> 95dd6b2bfcSGreg Roach <td> 967d0db648SGreg Roach <div class="gedcom-data" dir="ltr"><?= e($fact->gedcom()) ?></div> 97dc124885SGreg Roach <?php if ($fact->target() instanceof GedcomRecord) : ?> 98dc124885SGreg Roach <a href="<?= e($fact->target()->url()) ?>"> 9939ca88baSGreg Roach <?= $fact->target()->fullName() ?> 100dd6b2bfcSGreg Roach </a> 101dd6b2bfcSGreg Roach <?php endif ?> 102dd6b2bfcSGreg Roach </td> 103dd6b2bfcSGreg Roach </tr> 104dd6b2bfcSGreg Roach <?php endforeach ?> 105dd6b2bfcSGreg Roach </tbody> 106dd6b2bfcSGreg Roach </table> 107dd6b2bfcSGreg Roach <?php else : ?> 108dd6b2bfcSGreg Roach <p> 109dd6b2bfcSGreg Roach <?= I18N::translate('No matching facts found') ?> 110dd6b2bfcSGreg Roach </p> 111dd6b2bfcSGreg Roach <?php endif ?> 112dd6b2bfcSGreg Roach </div> 113dd6b2bfcSGreg Roach </div> 114dd6b2bfcSGreg Roach </div> 115dd6b2bfcSGreg Roach <div class="col-sm-6"> 116dd6b2bfcSGreg Roach <div class="card"> 117dd6b2bfcSGreg Roach <div class="card-header"> 118dd6b2bfcSGreg Roach <h2 class="card-title"> 11939ca88baSGreg 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>' ?> 120dd6b2bfcSGreg Roach </h2> 121dd6b2bfcSGreg Roach </div> 122dd6b2bfcSGreg Roach <div class="card-body"> 123dd6b2bfcSGreg Roach <?php if (!empty($facts2)) : ?> 124dd6b2bfcSGreg Roach <table class="table table-bordered table-sm"> 125dd6b2bfcSGreg Roach <thead> 126dd6b2bfcSGreg Roach <tr> 127dd6b2bfcSGreg Roach <th> 128dd6b2bfcSGreg Roach <?= I18N::translate('Select') ?> 129dd6b2bfcSGreg Roach </th> 130dd6b2bfcSGreg Roach <th> 131dd6b2bfcSGreg Roach <?= I18N::translate('Details') ?> 132dd6b2bfcSGreg Roach </th> 133dd6b2bfcSGreg Roach </tr> 134dd6b2bfcSGreg Roach </thead> 135dd6b2bfcSGreg Roach <tbody> 136dd6b2bfcSGreg Roach <?php foreach ($facts2 as $fact_id => $fact) : ?> 137dd6b2bfcSGreg Roach <tr> 138dd6b2bfcSGreg Roach <td> 139905ab80aSGreg Roach <input type="checkbox" name="keep2[]" value="<?= $fact->id() ?>" checked> 140dd6b2bfcSGreg Roach </td> 141dd6b2bfcSGreg Roach <td> 1427d0db648SGreg Roach <div class="gedcom-data" dir="ltr"><?= e($fact->gedcom()) ?></div> 143dc124885SGreg Roach <?php if ($fact->target() instanceof GedcomRecord) : ?> 144dc124885SGreg Roach <a href="<?= e($fact->target()->url()) ?>"> 14539ca88baSGreg Roach <?= $fact->target()->fullName() ?> 146dd6b2bfcSGreg Roach </a> 147dd6b2bfcSGreg Roach <?php endif ?> 148dd6b2bfcSGreg Roach </td> 149dd6b2bfcSGreg Roach </tr> 150dd6b2bfcSGreg Roach <?php endforeach ?> 151dd6b2bfcSGreg Roach </tbody> 152dd6b2bfcSGreg Roach </table> 153dd6b2bfcSGreg Roach <?php else : ?> 154dd6b2bfcSGreg Roach <p> 155dd6b2bfcSGreg Roach <?= I18N::translate('No matching facts found') ?> 156dd6b2bfcSGreg Roach </p> 157dd6b2bfcSGreg Roach <?php endif ?> 158dd6b2bfcSGreg Roach </div> 159dd6b2bfcSGreg Roach </div> 160dd6b2bfcSGreg Roach </div> 161dd6b2bfcSGreg Roach </div> 162dd6b2bfcSGreg Roach 163dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 164dd6b2bfcSGreg Roach <?= view('icons/save') ?> 165dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 166dd6b2bfcSGreg Roach </button> 167dd6b2bfcSGreg Roach</form> 168