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