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