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