xref: /webtrees/resources/views/modules/statistics-chart/family-totals.phtml (revision 61351a03dbeb5920221fcb08c904615fe551fd3a)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6
7?>
8
9<h4 class="border-bottom p-2 mb-4">
10    <?= I18N::translate('Total families') ?>
11    <span class="badge bg-secondary rounded-pill float-end">#totalFamilies#</span>
12</h4>
13
14<div class="row mb-3 row-cols-1 row-cols-lg-2 g-3">
15    <div class="col">
16        <div class="d-grid gap-3">
17            <div class="card">
18                <h5 class="card-header border-bottom-0">
19                    <?= I18N::translate('Total marriages') ?>
20                    <span class="badge bg-secondary rounded-pill float-end">#totalMarriages#</span>
21                </h5>
22            </div>
23
24            <div class="card">
25                <h5 class="card-header">
26                    <?= I18N::translate('Marriages by century') ?>
27                </h5>
28                <div class="card-body">
29                    #statsMarr#
30                </div>
31            </div>
32
33            <div class="row row-cols-1 row-cols-md-2 row-cols-lg-1 g-3">
34                <div class="col">
35                    <div class="card">
36                        <h5 class="card-header">
37                            <?= I18N::translate('Earliest marriage') ?>
38                        </h5>
39                        <div class="card-body">
40                            #firstMarriage#
41                        </div>
42                    </div>
43                </div>
44
45                <div class="col">
46                    <div class="card">
47                        <h5 class="card-header">
48                            <?= I18N::translate('Latest marriage') ?>
49                        </h5>
50                        <div class="card-body">
51                            #lastMarriage#
52                        </div>
53                    </div>
54                </div>
55            </div>
56        </div>
57    </div>
58
59    <div class="col">
60        <div class="d-grid gap-3">
61            <div class="card m-0">
62                <h5 class="card-header border-bottom-0">
63                    <?= I18N::translate('Total divorces') ?>
64                    <span class="badge bg-secondary rounded-pill float-end">#totalDivorces#</span>
65                </h5>
66            </div>
67
68            <div class="card m-0">
69                <h5 class="card-header">
70                    <?= I18N::translate('Divorces by century') ?>
71                </h5>
72                <div class="card-body">
73                    #statsDiv#
74                </div>
75            </div>
76
77            <div class="row row-cols-1 row-cols-md-2 row-cols-lg-1 g-3">
78                <div class="col">
79                    <div class="card">
80                        <h5 class="card-header">
81                            <?= I18N::translate('Earliest divorce') ?>
82                        </h5>
83                        <div class="card-body">
84                            #firstDivorce#
85                        </div>
86                    </div>
87                </div>
88
89                <div class="col">
90                    <div class="card">
91                        <h5 class="card-header">
92                            <?= I18N::translate('Latest divorce') ?>
93                        </h5>
94                        <div class="card-body">
95                            #lastDivorce#
96                        </div>
97                    </div>
98                </div>
99            </div>
100        </div>
101    </div>
102</div>
103