xref: /webtrees/resources/views/modules/statistics-chart/individual-events.phtml (revision 6de87b62c2f9ee5ee446e7c23a7efdb096c917fc)
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('Events') ?>
11</h4>
12
13<div class="row mb-3 row-cols-1 row-cols-lg-2 g-3">
14    <div class="col">
15        <div class="d-grid gap-3">
16            <div class="card">
17                <h5 class="card-header border-bottom-0">
18                    <?= I18N::translate('Total births') ?>
19                    <span class="badge bg-secondary rounded-pill float-end">#totalBirths#</span>
20                </h5>
21            </div>
22
23            <div class="card">
24                <h5 class="card-header">
25                    <?= I18N::translate('Births by century') ?>
26                </h5>
27                <div class="card-body">
28                    #statsBirth#
29                </div>
30            </div>
31
32            <div class="row row-cols-1 row-cols-md-2 row-cols-lg-1 g-3">
33                <div class="col">
34                    <div class="card">
35                        <h5 class="card-header">
36                            <?= I18N::translate('Earliest birth') ?>
37                        </h5>
38                        <div class="card-body">
39                            #firstBirth#
40                        </div>
41                    </div>
42                </div>
43
44                <div class="col">
45                    <div class="card">
46                        <h5 class="card-header">
47                            <?= I18N::translate('Latest birth') ?>
48                        </h5>
49                        <div class="card-body">
50                            #lastBirth#
51                        </div>
52                    </div>
53                </div>
54            </div>
55        </div>
56    </div>
57
58    <div class="col">
59        <div class="d-grid gap-3">
60            <div class="card">
61                <h5 class="card-header border-bottom-0">
62                    <?= I18N::translate('Total deaths') ?>
63                    <span class="badge bg-secondary rounded-pill float-end">#totalDeaths#</span>
64                </h5>
65            </div>
66
67            <div class="card">
68                <h5 class="card-header">
69                    <?= I18N::translate('Deaths by century') ?>
70                </h5>
71                <div class="card-body">
72                    #statsDeath#
73                </div>
74            </div>
75
76            <div class="row row-cols-1 row-cols-md-2 row-cols-lg-1 g-3">
77                <div class="col">
78                    <div class="card">
79                        <h5 class="card-header">
80                            <?= I18N::translate('Earliest death') ?>
81                        </h5>
82                        <div class="card-body">
83                            #firstDeath#
84                        </div>
85                    </div>
86                </div>
87
88                <div class="col">
89                    <div class="card">
90                        <h5 class="card-header">
91                            <?= I18N::translate('Latest death') ?>
92                        </h5>
93                        <div class="card-body">
94                            #lastDeath#
95                        </div>
96                    </div>
97                </div>
98            </div>
99        </div>
100    </div>
101</div>
102