xref: /webtrees/resources/views/components/badge.phtml (revision f7cf8a155e2743f3d124eef3d30a558ab062fa4b)
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 badge-<?= $context ?? 'secondary' ?>">
14        <?= I18N::number($count) ?>
15    <?php if (($total ?? $count) > $count) : ?>
16        / <?= I18N::number($total) ?>
17    <?php endif ?>
18</span>
19