xref: /webtrees/resources/views/components/badge.phtml (revision 45ebc6c6221f90468111ed2015b8449dca331d93)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6
7/**
8 * @var string|null $context
9 * @var int         $count
10 * @var int|null    $total
11 */
12
13?>
14
15<span class="badge bg-<?= $context ?? 'secondary' ?>">
16        <?= I18N::number($count) ?>
17    <?php if (($total ?? $count) > $count) : ?>
18        / <?= I18N::number($total) ?>
19    <?php endif ?>
20</span>
21