xref: /webtrees/resources/views/statistics/other/charts/custom.phtml (revision 3d2c98d1066d5e178a3d1ceb3bdc58b7ba8ee926)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6
7/**
8 * @var array<mixed> $chart_options
9 * @var string       $chart_title
10 * @var array<array> $data
11 * @var string       $language
12 */
13
14?>
15
16<?php if (count($data) === 1) : ?>
17    <?= I18N::translate('This information is not available.') ?>
18<?php else : ?>
19    <div class="mb-3">
20        <div class="card-deck">
21            <div class="col-12 mb-3">
22                <div class="card m-0">
23                    <div class="card-header">
24                        <?= $chart_title ?>
25                    </div>
26                    <div class="card-body">
27                        <?= view('statistics/other/charts/column', [ 'data' => $data, 'chart_options' => $chart_options, 'chart_title' => '', 'language' => $language]) ?>
28                    </div>
29                </div>
30            </div>
31        </div>
32    </div>
33<?php endif; ?>
34