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