xref: /webtrees/resources/views/components/badge.phtml (revision 6f59525087dd4ee1d17c7375524d95ace7942861)
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