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