Files
opensourcepos/app/Views/reports/graphical.php
BudsieBuds e83c23cf0c Improve code style and PSR-12 compliance (#4204)
* Improve code style and PSR-12 compliance
- refactored code formatting to adhere to PSR-12 guidelines
- standardized coding conventions across the codebase
- added missing framework files and reverted markup changes
- reformatted arrays for enhanced readability
- updated language files for consistent styling and clarity
- minor miscellaneous improvements
2025-05-02 19:37:06 +02:00

31 lines
664 B
PHP

<?php
/**
* @var string $title
* @var string $subtitle
* @var string $chart_type
* @var array $summary_data_1
*/
?>
<?= view('partial/header') ?>
<script type="text/javascript">
dialog_support.init("a.modal-dlg");
</script>
<div id="page_title"><?= esc($title) ?></div>
<div id="page_subtitle"><?= esc($subtitle) ?></div>
<div class="ct-chart ct-golden-section" id="chart1"></div>
<?= view($chart_type) ?>
<div id="chart_report_summary">
<?php foreach ($summary_data_1 as $name => $value) { ?>
<div class="summary_row"><?= lang("Reports.$name") . ': ' . to_currency($value) ?></div>
<?php } ?>
</div>
<?= view('partial/footer') ?>