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