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