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