xref: /webtrees/resources/views/modules/html/template-statistics.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1fd303cbfSGreg Roach<?php
2fd303cbfSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
58e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePage;
6fd303cbfSGreg Roachuse Fisharebest\Webtrees\I18N;
77c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree;
87c2c99faSGreg Roach
97c2c99faSGreg Roach/**
107c2c99faSGreg Roach * @var Tree $tree
117c2c99faSGreg Roach */
12fd303cbfSGreg Roach
13fd303cbfSGreg Roach?>
14dd6b2bfcSGreg Roach
15dd6b2bfcSGreg Roach<div class="gedcom_stats">
16dd6b2bfcSGreg Roach    <p>
177c2c99faSGreg Roach        <a href="<?= e(route(TreePage::class, ['tree' => $tree->name()])) ?>">#gedcomTitle#</a>
18dd6b2bfcSGreg Roach    </p>
19dd6b2bfcSGreg Roach
20dd6b2bfcSGreg Roach    <?= I18N::translate('This family tree was last updated on %s.', '#gedcomUpdated#') ?>
21dd6b2bfcSGreg Roach
22dd6b2bfcSGreg Roach    <div class="row">
23dd6b2bfcSGreg Roach        <div class="col col-sm-4">
24dd6b2bfcSGreg Roach            <table class="table wt-facts-table">
25dd6b2bfcSGreg Roach                <tr>
26dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Individuals') ?></th>
27dd6b2bfcSGreg Roach                    <td>#totalIndividuals#</td>
28dd6b2bfcSGreg Roach                </tr>
29dd6b2bfcSGreg Roach                <tr>
30dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Males') ?></th>
31dd6b2bfcSGreg Roach                    <td>#totalSexMales#<br>#totalSexMalesPercentage#</td>
32dd6b2bfcSGreg Roach                </tr>
33dd6b2bfcSGreg Roach                <tr>
34dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Females') ?></th>
35dd6b2bfcSGreg Roach                    <td>#totalSexFemales#<br>#totalSexFemalesPercentage#</td>
36dd6b2bfcSGreg Roach                </tr>
37dd6b2bfcSGreg Roach                <tr>
38dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Total surnames') ?></th>
39dd6b2bfcSGreg Roach                    <td>#totalSurnames#</td>
40dd6b2bfcSGreg Roach                </tr>
41dd6b2bfcSGreg Roach                <tr>
42dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Families') ?></th>
43dd6b2bfcSGreg Roach                    <td>#totalFamilies#</td>
44dd6b2bfcSGreg Roach                </tr>
45dd6b2bfcSGreg Roach                <tr>
46dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Sources') ?></th>
47dd6b2bfcSGreg Roach                    <td>#totalSources#</td>
48dd6b2bfcSGreg Roach                </tr>
49dd6b2bfcSGreg Roach                <tr>
50dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Media objects') ?></th>
51dd6b2bfcSGreg Roach                    <td>#totalMedia#</td>
52dd6b2bfcSGreg Roach                </tr>
53dd6b2bfcSGreg Roach                <tr>
54dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Repositories') ?></th>
55dd6b2bfcSGreg Roach                    <td>#totalRepositories#</td>
56dd6b2bfcSGreg Roach                </tr>
57dd6b2bfcSGreg Roach                <tr>
58dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Events') ?></th>
59dd6b2bfcSGreg Roach                    <td>#totalEvents#</td>
60dd6b2bfcSGreg Roach                </tr>
61dd6b2bfcSGreg Roach                <tr>
62dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Users') ?></th>
63dd6b2bfcSGreg Roach                    <td>#totalUsers#</td>
64dd6b2bfcSGreg Roach                </tr>
65dd6b2bfcSGreg Roach            </table>
66dd6b2bfcSGreg Roach        </div>
67dd6b2bfcSGreg Roach
68dd6b2bfcSGreg Roach        <div class="col col-sm-8">
69dd6b2bfcSGreg Roach            <table class="table wt-facts-table">
70dd6b2bfcSGreg Roach                <tr>
71dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Earliest birth') ?></th>
72dd6b2bfcSGreg Roach                    <td>#firstBirth#</td>
73dd6b2bfcSGreg Roach                </tr>
74dd6b2bfcSGreg Roach                <tr>
75dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Latest birth') ?></th>
76dd6b2bfcSGreg Roach                    <td>#lastBirth#</td>
77dd6b2bfcSGreg Roach                </tr>
78dd6b2bfcSGreg Roach                <tr>
79dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Earliest death') ?></th>
80dd6b2bfcSGreg Roach                    <td>#firstDeath#</td>
81dd6b2bfcSGreg Roach                </tr>
82dd6b2bfcSGreg Roach                <tr>
83dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Latest death') ?></th>
84dd6b2bfcSGreg Roach                    <td>#lastDeath#</td>
85dd6b2bfcSGreg Roach                </tr>
86dd6b2bfcSGreg Roach                <tr>
87dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Individual who lived the longest') ?></th>
88dd6b2bfcSGreg Roach                    <td>#longestLife#</td>
89dd6b2bfcSGreg Roach                </tr>
90dd6b2bfcSGreg Roach                <tr>
91dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Average age at death') ?></th>
92dd6b2bfcSGreg Roach                    <td>#averageLifespan#</td>
93dd6b2bfcSGreg Roach                </tr>
94dd6b2bfcSGreg Roach                <tr>
95dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Family with the most children') ?></th>
96dd6b2bfcSGreg Roach                    <td>#largestFamilySize#<br>#largestFamily#</td>
97dd6b2bfcSGreg Roach                </tr>
98dd6b2bfcSGreg Roach                <tr>
99dd6b2bfcSGreg Roach                    <th scope="row"><?= I18N::translate('Average number of children per family') ?></th>
100dd6b2bfcSGreg Roach                    <td>#averageChildren#</td>
101dd6b2bfcSGreg Roach                </tr>
102dd6b2bfcSGreg Roach            </table>
103dd6b2bfcSGreg Roach        </div>
104dd6b2bfcSGreg Roach    </div>
105dd6b2bfcSGreg Roach
106dd6b2bfcSGreg Roach    <p>
107dd6b2bfcSGreg Roach        <b><?= I18N::translate('Most common surnames') ?></b>
108dd6b2bfcSGreg Roach    </p>
109dd6b2bfcSGreg Roach
110dd6b2bfcSGreg Roach    <p>
111dd6b2bfcSGreg Roach        #commonSurnames#
112dd6b2bfcSGreg Roach    </p>
113dd6b2bfcSGreg Roach</div>
114