xref: /webtrees/resources/views/components/badge.phtml (revision 9b152ff9230017d2c03aa1bf603a98b18250446d)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6
7<span class="badge badge-<?= $context ?? 'secondary' ?>">
8        <?= I18N::number($count) ?>
9    <?php if (($total ?? $count) > $count) : ?>
10        / <?= I18N::number($total) ?>
11    <?php endif ?>
12</span>
13