xref: /webtrees/resources/views/modules/statistics-chart/families.phtml (revision 4947e7089adb08f24bf1eef67994a106a8df60aa)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<h3>
4    <?= I18N::translate('Total families: %s', $stats->totalFamilies()) ?>
5</h3>
6
7<table>
8    <tr>
9        <td><?= I18N::translate('Total marriages') ?></td>
10        <td><?= I18N::translate('Total divorces') ?></td>
11    </tr>
12    <tr>
13        <td><?= $stats->totalMarriages() ?></td>
14        <td><?= $stats->totalDivorces() ?></td>
15    </tr>
16    <tr>
17        <td><?= I18N::translate('Marriages by century') ?></td>
18        <td><?= I18N::translate('Divorces by century') ?></td>
19    </tr>
20    <tr>
21        <td><?= $stats->statsMarr() ?></td>
22        <td><?= $stats->statsDiv() ?></td>
23    </tr>
24    <tr>
25        <td><?= I18N::translate('Earliest marriage') ?></td>
26        <td><?= I18N::translate('Earliest divorce') ?></td>
27    </tr>
28    <tr>
29        <td><?= $stats->firstMarriage() ?></td>
30        <td><?= $stats->firstDivorce() ?></td>
31    </tr>
32    <tr>
33        <td><?= I18N::translate('Latest marriage') ?></td>
34        <td><?= I18N::translate('Latest divorce') ?></td>
35    </tr>
36    <tr>
37        <td><?= $stats->lastMarriage() ?></td>
38        <td><?= $stats->lastDivorce() ?></td>
39    </tr>
40</table>
41
42<h3><?= I18N::translate('Length of marriage') ?></h3>
43
44<table>
45    <tr>
46        <td><?= I18N::translate('Longest marriage'), ' - ', $stats->topAgeOfMarriage() ?></td>
47        <td><?= I18N::translate('Shortest marriage'), ' - ', $stats->minAgeOfMarriage() ?></td>
48    </tr>
49    <tr>
50        <td><?= $stats->topAgeOfMarriageFamily() ?></td>
51        <td><?= $stats->minAgeOfMarriageFamily() ?></td>
52    </tr>
53</table>
54
55<h3><?= I18N::translate('Age in year of marriage') ?></h3>
56
57<table>
58    <tr>
59        <td><?= I18N::translate('Youngest male'), ' - ', $stats->youngestMarriageMaleAge(true) ?></td>
60        <td><?= I18N::translate('Youngest female'), ' - ', $stats->youngestMarriageFemaleAge(true) ?></td>
61    </tr>
62    <tr>
63        <td><?= $stats->youngestMarriageMale() ?></td>
64        <td><?= $stats->youngestMarriageFemale() ?></td>
65    </tr>
66    <tr>
67        <td><?= I18N::translate('Oldest male'), ' - ', $stats->oldestMarriageMaleAge(true) ?></td>
68        <td><?= I18N::translate('Oldest female'), ' - ', $stats->oldestMarriageFemaleAge(true) ?></td>
69    </tr>
70    <tr>
71        <td><?= $stats->oldestMarriageMale() ?></td>
72        <td><?= $stats->oldestMarriageFemale() ?></td>
73    </tr>
74    <tr>
75        <td colspan="2"><?= $stats->statsMarrAge() ?></td>
76    </tr>
77</table>
78
79<h3><?= I18N::translate('Age at birth of child') ?></h3>
80
81<table>
82    <tr>
83        <td><?= I18N::translate('Youngest father'), ' - ', $stats->youngestFatherAge(true) ?></td>
84        <td><?= I18N::translate('Youngest mother'), ' - ', $stats->youngestMotherAge(true) ?></td>
85    </tr>
86    <tr>
87        <td><?= $stats->youngestFather() ?></td>
88        <td><?= $stats->youngestMother() ?></td>
89    </tr>
90    <tr>
91        <td><?= I18N::translate('Oldest father'), ' - ', $stats->oldestFatherAge(true) ?></td>
92        <td><?= I18N::translate('Oldest mother'), ' - ', $stats->oldestMotherAge(true) ?></td>
93    </tr>
94    <tr>
95        <td><?= $stats->oldestFather() ?></td>
96        <td><?= $stats->oldestMother() ?></td>
97    </tr>
98</table>
99
100<h3><?= I18N::translate('Children in family') ?></h3>
101
102<table>
103    <tr>
104        <td><?= I18N::translate('Average number of children per family') ?></td>
105        <td><?= I18N::translate('Number of families without children') ?></td>
106    </tr>
107    <tr>
108        <td><?= $stats->averageChildren() ?></td>
109        <td><?= $stats->noChildrenFamilies() ?></td>
110    </tr>
111    <tr>
112        <td><?= $stats->statsChildren() ?></td>
113        <td><?= $stats->chartNoChildrenFamilies() ?></td>
114    </tr>
115    <tr>
116        <td><?= I18N::translate('Largest families') ?></td>
117        <td><?= I18N::translate('Largest number of grandchildren') ?></td>
118    </tr>
119    <tr>
120        <td><?= $stats->topTenLargestFamilyList() ?></td>
121        <td><?= $stats->topTenLargestGrandFamilyList() ?></td>
122    </tr>
123</table>
124
125<h3><?= I18N::translate('Age difference') ?></h3>
126
127<table>
128    <tr>
129        <td><?= I18N::translate('Age between siblings') ?></td>
130        <td><?= I18N::translate('Greatest age between siblings') ?></td>
131    </tr>
132    <tr>
133        <td><?= $stats->topAgeBetweenSiblingsList() ?></td>
134        <td><?= $stats->topAgeBetweenSiblingsFullName() ?></td>
135    </tr>
136    <tr>
137        <td><?= I18N::translate('Age between husband and wife') ?></td>
138        <td><?= I18N::translate('Age between wife and husband') ?></td>
139    </tr>
140    <tr>
141        <td><?= $stats->ageBetweenSpousesMFList() ?></td>
142        <td><?= $stats->ageBetweenSpousesFMList() ?></td>
143    </tr>
144</table>
145