hotel_commerce/cache/smarty/compile/30/ed/53/30ed53343f7ce84a59c0f5afb8b1cecffd71b3d4_0.file.config.tpl.php
2023-06-26 13:09:26 +05:30

104 lines
4.7 KiB
PHP

<?php
/* Smarty version 3.1.39, created on 2023-06-22 17:19:56
from 'C:\xampp\htdocs\hotelcommerce\modules\dashgoals\views\templates\hook\config.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_649435649086d0_69194583',
'has_nocache_code' => false,
'file_dependency' =>
array (
'30ed53343f7ce84a59c0f5afb8b1cecffd71b3d4' =>
array (
0 => 'C:\\xampp\\htdocs\\hotelcommerce\\modules\\dashgoals\\views\\templates\\hook\\config.tpl',
1 => 1687433796,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_649435649086d0_69194583 (Smarty_Internal_Template $_smarty_tpl) {
?><section id="dashgoals_config" class="dash_config hide">
<header><i class="icon-wrench"></i> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Configuration','mod'=>'dashgoals'),$_smarty_tpl ) );?>
</header>
<form class="defaultForm form-horizontal" method="post" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminDashboard'), ENT_QUOTES, 'UTF-8', true);?>
">
<table class="table table-condensed table-striped table-bordered">
<thead>
<tr>
<th class="fixed-width-md"><?php echo $_smarty_tpl->tpl_vars['goals_year']->value;?>
</th>
<th class="fixed-width-md"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Traffic','mod'=>'dashgoals'),$_smarty_tpl ) );?>
</th>
<th class="fixed-width-md"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Conversion Rate','mod'=>'dashgoals'),$_smarty_tpl ) );?>
</th>
<th class="fixed-width-lg"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Average Order Value','mod'=>'dashgoals'),$_smarty_tpl ) );?>
</th>
<th><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Sales','mod'=>'dashgoals'),$_smarty_tpl ) );?>
</th>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['goals_months']->value, 'month');
$_smarty_tpl->tpl_vars['month']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['month']->key => $_smarty_tpl->tpl_vars['month']->value) {
$_smarty_tpl->tpl_vars['month']->do_else = false;
$__foreach_month_29_saved = $_smarty_tpl->tpl_vars['month'];
?>
<tr>
<td>
<?php echo $_smarty_tpl->tpl_vars['month']->value['label'];?>
</td>
<td>
<div class="input-group">
<input id="dashgoals_traffic_<?php echo $_smarty_tpl->tpl_vars['month']->key;?>
" name="dashgoals_traffic_<?php echo $_smarty_tpl->tpl_vars['month']->key;?>
" class="dashgoals_config_input form-control"
value="<?php echo intval($_smarty_tpl->tpl_vars['month']->value['values']['traffic']);?>
" />
</div>
</td>
<td>
<div class="input-group">
<input id="dashgoals_conversion_<?php echo $_smarty_tpl->tpl_vars['month']->key;?>
" name="dashgoals_conversion_<?php echo $_smarty_tpl->tpl_vars['month']->key;?>
" class="dashgoals_config_input form-control"
value="<?php echo floatval($_smarty_tpl->tpl_vars['month']->value['values']['conversion']);?>
" />
<span class="input-group-addon">%</span>
</div>
</td>
<td>
<div class="input-group">
<span class="input-group-addon"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value->iso_code, ENT_QUOTES, 'UTF-8', true);?>
</span>
<input id="dashgoals_avg_cart_value_<?php echo $_smarty_tpl->tpl_vars['month']->key;?>
" name="dashgoals_avg_cart_value_<?php echo $_smarty_tpl->tpl_vars['month']->key;?>
" class="dashgoals_config_input form-control"
value="<?php echo intval($_smarty_tpl->tpl_vars['month']->value['values']['avg_cart_value']);?>
" />
</div>
</td>
<td id="dashgoals_sales_<?php echo $_smarty_tpl->tpl_vars['month']->key;?>
" class="dashgoals_sales">
</td>
</tr>
<?php
$_smarty_tpl->tpl_vars['month'] = $__foreach_month_29_saved;
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
<div class="panel-footer">
<button class="btn btn-default pull-right" name="submitDashGoals" type="submit"><i class="process-icon-save"></i> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Save','mod'=>'dashgoals'),$_smarty_tpl ) );?>
</button>
</div>
</form>
</section><?php }
}