xref: /webtrees/resources/views/modules/statistics-chart/lifespan.phtml (revision b63ebfff10c4f748c10374a14a84550d3b653912)
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('Lifespan') ?>
11</h4>
12
13<div class="row mb-3">
14    <div class="d-grid gap-3">
15        <div class="card">
16            <h5 class="card-header border-bottom-0">
17                <?= I18N::translate('Average age at death') ?>
18                <span class="badge bg-secondary rounded-pill float-end">#averageLifespan:1#</span>
19            </h5>
20        </div>
21
22        <div class="row row-cols-1 row-cols-md-2 g-3">
23            <div class="col">
24                <div class="card">
25                    <h5 class="card-header border-bottom-0">
26                        <?= I18N::translate('Males') ?>
27                        <span class="badge bg-secondary rounded-pill float-end">#averageLifespanMale:1#</span>
28                    </h5>
29                </div>
30            </div>
31
32            <div class="col">
33                <div class="card">
34                    <h5 class="card-header border-bottom-0">
35                        <?= I18N::translate('Females') ?>
36                        <span class="badge bg-secondary rounded-pill float-end">#averageLifespanFemale:1#</span>
37                    </h5>
38                </div>
39            </div>
40        </div>
41
42        <div class="card m-0">
43            <div class="card-body">
44                #statsAge#
45            </div>
46        </div>
47    </div>
48</div>
49