mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-06 00:17:54 -05:00
* Add show/hide cost price & profit feature * .env should be ignored. * js code formatted. .vscode folder ignore for vscode user settings.json * style is replaced with bootstrap class, formatted and .env.example * toggle button on table to like in other * comment corrected. * class re-factored * minor refactor * formatted with 4 space --------- Co-authored-by: Lotussoft Youngtech <lotussoftyoungtech@gmail.com>
42 lines
1.0 KiB
PHP
42 lines
1.0 KiB
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>
|
|
|
|
<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") . ': ' . to_currency($value) ?></div>
|
|
<?php } ?>
|
|
</div>
|
|
|
|
<script src="<?= base_url('js/hide_cost_profit.js') ?>"></script>
|
|
|
|
<?= view('partial/footer') ?>
|