xref: /webtrees/resources/views/modules/statistics-chart/individuals.phtml (revision 0010d42b5dcc725e166945c3345a365d5aa115e3)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<h3>
4    <?= I18N::translate('Total individuals: %s', $stats->totalIndividuals()) ?>
5</h3>
6
7<table class="table table-sm table-bordered">
8    <thead>
9        <tr>
10            <th><?= I18N::translate('Total males') ?></th>
11            <th><?= I18N::translate('Total females') ?></th>
12            <th><?= I18N::translate('Total living') ?></th>
13            <th><?= I18N::translate('Total dead') ?></th>
14        </tr>
15    </thead>
16    <tbody>
17        <tr>
18            <td><?= $stats->totalSexMales() ?></td>
19            <td><?= $stats->totalSexFemales() ?></td>
20            <td><?= $stats->totalLiving() ?></td>
21            <td><?= $stats->totalDeceased() ?></td>
22        </tr>
23    </tbody>
24    <tfoot>
25        <tr>
26            <td colspan="2"><?= $stats->chartSex() ?></td>
27            <td colspan="2"><?= $stats->chartMortality() ?></td>
28        </tr>
29    </tfoot>
30</table>
31
32<h3><?= I18N::translate('Events') ?></h3>
33
34<table class="table table-sm table-bordered">
35    <tbody>
36        <tr>
37            <th><?= I18N::translate('Total births') ?></th>
38            <th><?= I18N::translate('Total deaths') ?></th>
39        </tr>
40        <tr>
41            <td><?= $stats->totalBirths() ?></td>
42            <td><?= $stats->totalDeaths() ?></td>
43        </tr>
44        <tr>
45            <td><?= I18N::translate('Births by century') ?></td>
46            <td><?= I18N::translate('Deaths by century') ?></td>
47        </tr>
48        <tr>
49            <td><?= $stats->statsBirth() ?></td>
50            <td><?= $stats->statsDeath() ?></td>
51        </tr>
52        <tr>
53            <td><?= I18N::translate('Earliest birth') ?></td>
54            <td><?= I18N::translate('Earliest death') ?></td>
55        </tr>
56        <tr>
57            <td><?= $stats->firstBirth() ?></td>
58            <td><?= $stats->firstDeath() ?></td>
59        </tr>
60        <tr>
61            <td><?= I18N::translate('Latest birth') ?></td>
62            <td><?= I18N::translate('Latest death') ?></td>
63        </tr>
64        <tr>
65            <td><?= $stats->lastBirth() ?></td>
66            <td><?= $stats->lastDeath() ?></td>
67        </tr>
68    </tbody>
69</table>
70
71<h3><?= I18N::translate('Lifespan') ?></h3>
72
73<table>
74    <tr>
75        <td><?= I18N::translate('Average age at death') ?></td>
76        <td><?= I18N::translate('Males') ?></td>
77        <td><?= I18N::translate('Females') ?></td>
78    </tr>
79    <tr>
80        <td><?= $stats->averageLifespan(true) ?></td>
81        <td><?= $stats->averageLifespanMale(true) ?></td>
82        <td><?= $stats->averageLifespanFemale(true) ?></td>
83    </tr>
84    <tr>
85        <td colspan="3"><?= $stats->statsAge() ?></td>
86    </tr>
87</table>
88
89<h3><?= I18N::translate('Greatest age at death') ?></h3>
90
91<table>
92    <tr>
93        <td><?= I18N::translate('Males') ?></td>
94        <td><?= I18N::translate('Females') ?></td>
95    </tr>
96    <tr>
97        <td><?= $stats->topTenOldestMaleList() ?></td>
98        <td><?= $stats->topTenOldestFemaleList() ?></td>
99    </tr>
100</table>
101
102<?php if ($show_oldest_living) : ?>
103    <h3><?= I18N::translate('Oldest living individuals') ?></h3>
104
105    <table>
106        <tr>
107            <td><?= I18N::translate('Males') ?></td>
108            <td><?= I18N::translate('Females') ?></td>
109        </tr>
110        <tr>
111            <td><?= $stats->topTenOldestMaleListAlive() ?></td>
112            <td><?= $stats->topTenOldestFemaleListAlive() ?></td>
113        </tr>
114    </table>
115<?php endif ?>
116
117<h3><?= I18N::translate('Names') ?></h3>
118
119<table>
120    <tr>
121        <td><?= I18N::translate('Total surnames') ?></td>
122        <td><?= I18N::translate('Total given names') ?></td>
123    </tr>
124    <tr>
125        <td><?= $stats->totalSurnames() ?></td>
126        <td><?= $stats->totalGivennames() ?></td>
127    </tr>
128    <tr>
129        <td><?= I18N::translate('Top surnames') ?></td>
130        <td><?= I18N::translate('Top given names') ?></td>
131    </tr>
132    <tr>
133        <td><?= $stats->chartCommonSurnames() ?></td>
134        <td><?= $stats->chartCommonGiven() ?></td>
135    </tr>
136</table>
137