Files
opensourcepos/app/Views/reports/graphical.php
BudsieBuds 15d0ef7c3d Bootstrap 5 WIP
- work in progress build of conversion from bootstrap 3 to 5
2026-04-02 19:53:26 +02:00

41 lines
1003 B
PHP

<?php
/**
* @var string $title
* @var string $subtitle
* @var string $chart_type
* @var array $summary_data_1
*/
?>
<?= view('partial/header') ?>
<?php
$title_info['config_title'] = esc($title);
echo view('configs/config_header', $title_info);
?>
<div id="page_subtitle"><?= esc($subtitle) ?></div>
<div class="ct-chart ct-golden-section" id="chart1"></div>
<div id="toolbar">
<div class="pull-left form-inline" role="toolbar">
<!-- Toggle Button -->
<button id="toggleCostProfitButton" class="btn btn-default btn-sm print_hide">
<?php echo lang('Reports.toggle_cost_and_profit'); ?>
</button>
</div>
</div>
<?= view($chart_type) ?>
<div id="chart_report_summary">
<?php foreach ($summary_data_1 as $name => $value) { ?>
<div class="summary_row"><?= lang("Reports.$name") . ': ' . esc(to_currency($value)) ?></div>
<?php } ?>
</div>
<script src="<?= base_url('js/hide_cost_profit.js') ?>"></script>
<?= view('partial/footer') ?>