1f5402f3dSGreg Roach<?php 2f5402f3dSGreg Roach 3f5402f3dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticAction; 4f5402f3dSGreg Roachuse Fisharebest\Webtrees\I18N; 5dc270d8cSGreg Roachuse Fisharebest\Webtrees\Individual; 6dc270d8cSGreg Roachuse Fisharebest\Webtrees\Tree; 7dc270d8cSGreg Roachuse Illuminate\Support\Collection; 8dc270d8cSGreg Roach 9dc270d8cSGreg Roach/** 10*ca2d6785SGreg Roach * @var Collection<Tree> $all_trees 11dc270d8cSGreg Roach * @var string $firstname 12dc270d8cSGreg Roach * @var Collection<Individual> $individuals 13dc270d8cSGreg Roach * @var string $lastname 14dc270d8cSGreg Roach * @var string $place 15*ca2d6785SGreg Roach * @var Collection<Tree> $search_trees 16dc270d8cSGreg Roach * @var string $soundex 17dc270d8cSGreg Roach * @var string $title 18dc270d8cSGreg Roach * @var Tree $tree 19dc270d8cSGreg Roach */ 20f5402f3dSGreg Roach 21f5402f3dSGreg Roach?> 22dd6b2bfcSGreg Roach 23dd6b2bfcSGreg Roach<h2 class="wt-page-title"> 24dd6b2bfcSGreg Roach <?= $title ?> 25dd6b2bfcSGreg Roach</h2> 26dd6b2bfcSGreg Roach 27f5402f3dSGreg Roach<form method="post" action="<?= e(route(SearchPhoneticAction::class, ['tree' => $tree->name()])) ?>" class="wt-page-options wt-page-options-ancestors-chart hidden-print mb-4" name="searchform"> 28f5402f3dSGreg Roach <?= csrf_field() ?> 29f5402f3dSGreg Roach 30dd6b2bfcSGreg Roach <div class="row form-group"> 31dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="firstname"> 32dd6b2bfcSGreg Roach <?= I18N::translate('Given name') ?> 33dd6b2bfcSGreg Roach </label> 34dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 350d2905f7SGreg Roach <div class="input-group"> 360d2905f7SGreg Roach <input class= "form-control" type="text" name="firstname" id="firstname" value="<?= e($firstname) ?>" autofocus> 37dd6b2bfcSGreg Roach <?= view('edit/input-addon-keyboard', ['id' => 'firstname']) ?> 38dd6b2bfcSGreg Roach </div> 39dd6b2bfcSGreg Roach </div> 40dd6b2bfcSGreg Roach </div> 41dd6b2bfcSGreg Roach 42dd6b2bfcSGreg Roach <div class="row form-group"> 43dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="lastname"> 44dd6b2bfcSGreg Roach <?= I18N::translate('Surname') ?> 45dd6b2bfcSGreg Roach </label> 46dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 470d2905f7SGreg Roach <div class="input-group"> 480d2905f7SGreg Roach <input class="form-control" type="text" name="lastname" id="lastname" value="<?= e($lastname) ?>"> 49dd6b2bfcSGreg Roach <?= view('edit/input-addon-keyboard', ['id' => 'lastname']) ?> 50dd6b2bfcSGreg Roach </div> 51dd6b2bfcSGreg Roach </div> 52dd6b2bfcSGreg Roach </div> 53dd6b2bfcSGreg Roach 54dd6b2bfcSGreg Roach <div class="row form-group"> 55dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="place"> 56dd6b2bfcSGreg Roach <?= I18N::translate('Place') ?> 57dd6b2bfcSGreg Roach </label> 58dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 590d2905f7SGreg Roach <input class="form-control" type="text" name="place" id="place" value="<?= e($place) ?>"> 60dd6b2bfcSGreg Roach </div> 61dd6b2bfcSGreg Roach </div> 62dd6b2bfcSGreg Roach 63dd6b2bfcSGreg Roach <fieldset class="form-group"> 64dd6b2bfcSGreg Roach <div class="row"> 65dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label"> 66dd6b2bfcSGreg Roach <?= I18N::translate('Phonetic algorithm') ?> 67dd6b2bfcSGreg Roach </label> 68dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 69dd6b2bfcSGreg Roach <div class="form-check form-check-inline"> 70*ca2d6785SGreg Roach <input class="form-check-input" type="radio" name="soundex" value="Russell" <?= $soundex === 'Russell' ? 'checked' : '' ?> id="russell"> 71*ca2d6785SGreg Roach <label class="form-check-label" for="russell"> 72dd6b2bfcSGreg Roach <?= I18N::translate('Russell') ?> 73dd6b2bfcSGreg Roach </label> 74dd6b2bfcSGreg Roach </div> 75dd6b2bfcSGreg Roach <div class="form-check form-check-inline"> 76*ca2d6785SGreg Roach <input class="form-check-input" type="radio" name="soundex" value="DaitchM" <?= $soundex === 'DaitchM' ? 'checked' : '' ?> id="d-m"> 77*ca2d6785SGreg Roach <label class="form-check-label" for="d-m"> 78dd6b2bfcSGreg Roach <?= I18N::translate('Daitch-Mokotoff') ?> 79dd6b2bfcSGreg Roach </label> 80dd6b2bfcSGreg Roach </div> 81dd6b2bfcSGreg Roach </div> 82dd6b2bfcSGreg Roach </div> 83dd6b2bfcSGreg Roach </fieldset> 84dd6b2bfcSGreg Roach 85*ca2d6785SGreg Roach <?= view('search-trees', ['all_trees' => $all_trees, 'search_trees' => $search_trees]) ?> 86dd6b2bfcSGreg Roach 87dd6b2bfcSGreg Roach <div class="row form-group"> 88dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label"></label> 89dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 90dd6b2bfcSGreg Roach <input type="submit" class="btn btn-primary" value="<?= /* I18N: A button label. */ I18N::translate('search') ?>"> 91dd6b2bfcSGreg Roach </div> 92dd6b2bfcSGreg Roach </div> 93dd6b2bfcSGreg Roach</form> 94dd6b2bfcSGreg Roach 95dd6b2bfcSGreg Roach<?php if ($firstname !== '' || $lastname !== '' || $place !== '') : ?> 96075d1a05SGreg Roach <?php if ($individuals->isEmpty()) : ?> 97dd6b2bfcSGreg Roach <div class="alert alert-info row"> 98dd6b2bfcSGreg Roach <?= I18N::translate('No results found.') ?> 99dd6b2bfcSGreg Roach </div> 100dd6b2bfcSGreg Roach <?php else : ?> 101ef5d23f1SGreg Roach <?= view('search-results', ['individuals' => $individuals, 'search_families' => false, 'search_individuals' => true, 'search_notes' => false, 'search_sources' => false, 'search_repositories' => false, 'tree' => $tree]) ?> 102dd6b2bfcSGreg Roach <?php endif ?> 103dd6b2bfcSGreg Roach<?php endif ?> 104dd6b2bfcSGreg Roach 105dd6b2bfcSGreg Roach<?= view('modals/on-screen-keyboard') ?> 106