<?php
/* Smarty version 4.3.4, created on 2024-06-11 08:19:49
  from '/srv/www/htdocs/lazbw/admin/layout/templates/overview/statistic.html' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.4',
  'unifunc' => 'content_6667ec85c9b2d9_17681033',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'c2aecfa12faa2cefd5028fa228e9367dfd646ae0' => 
    array (
      0 => '/srv/www/htdocs/lazbw/admin/layout/templates/overview/statistic.html',
      1 => 1708608908,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6667ec85c9b2d9_17681033 (Smarty_Internal_Template $_smarty_tpl) {
?><!-- *********************************************************************** -->
<!-- Besucher und Anmeldungen                                                -->
<!-- *********************************************************************** -->
<h3>Zeitbereich</h3>
<?php echo $_smarty_tpl->tpl_vars['slider']->value;?>

<br><br>
<h3>Besucher und Anmeldungen</h3>

<table cellspacing="3" width="100%">
  <tr>
    <th>Monat</th>
    <th class="numeric">Besucher</th>
    <th class="numeric"><span title="Komplette Anmeldungen. Eine Anmeldung kann aus mehreren Kursbuchungen bestehen.">Anmeldungen *</span></th>
    <th class="numeric">Anmeldungen pro Besucher</th></tr>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['hits']->value, 'hit');
$_smarty_tpl->tpl_vars['hit']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['hit']->value) {
$_smarty_tpl->tpl_vars['hit']->do_else = false;
?>
  <tr>
    <td><?php echo $_smarty_tpl->tpl_vars['hit']->value['month'];?>
 <?php echo $_smarty_tpl->tpl_vars['hit']->value['year'];?>
</td>
    <td class="numeric"><?php echo $_smarty_tpl->tpl_vars['hit']->value['visits'];?>
</td>
    <td class="numeric"><?php echo $_smarty_tpl->tpl_vars['hit']->value['bookings'];?>
</td>
    <td class="numeric"><?php echo $_smarty_tpl->tpl_vars['hit']->value['bookingspervisit'];?>
</td></tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
  <tr>
    <td><b>Gesamt:</b></td>
    <td class="numeric"><?php echo $_smarty_tpl->tpl_vars['visitstotal']->value;?>
</td>
    <td class="numeric"><?php echo $_smarty_tpl->tpl_vars['bookingstotal']->value;?>
</td></tr>
</table>

<div class="statistic_chart">
  <canvas id="visits_chart" width="400" height="200" data-monate="<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['hits']->value, 'hit');
$_smarty_tpl->tpl_vars['hit']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['hit']->value) {
$_smarty_tpl->tpl_vars['hit']->do_else = false;
echo $_smarty_tpl->tpl_vars['hit']->value['month'];?>
 <?php echo $_smarty_tpl->tpl_vars['hit']->value['year'];?>
,<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>"
                                                     data-besucher="<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['hits']->value, 'hit');
$_smarty_tpl->tpl_vars['hit']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['hit']->value) {
$_smarty_tpl->tpl_vars['hit']->do_else = false;
echo $_smarty_tpl->tpl_vars['hit']->value['visits'];?>
,<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>"
                                                     data-anmeldungen="<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['hits']->value, 'hit');
$_smarty_tpl->tpl_vars['hit']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['hit']->value) {
$_smarty_tpl->tpl_vars['hit']->do_else = false;
echo $_smarty_tpl->tpl_vars['hit']->value['bookings'];?>
,<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>"></canvas>
</div>

<p>
<sub>* Komplette Anmeldungen. Eine Anmeldung kann aus mehreren Kursbuchungen bestehen.</sub>
</p>

<br />


<!-- *********************************************************************** -->
<!-- Anmeldung                                                               -->
<!-- *********************************************************************** -->
<h3>Anmeldungen nach Wochentag</h3>
<div class="statistic_chart">
  <canvas id="bookingsperweekday_chart" height="200" data-tage="<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['bookingsperweekday']->value, 'day');
$_smarty_tpl->tpl_vars['day']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['day']->value) {
$_smarty_tpl->tpl_vars['day']->do_else = false;
echo $_smarty_tpl->tpl_vars['day']->value['title'];?>
,<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>"
          data-anmeldungen="<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['bookingsperweekday']->value, 'day');
$_smarty_tpl->tpl_vars['day']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['day']->value) {
$_smarty_tpl->tpl_vars['day']->do_else = false;
echo $_smarty_tpl->tpl_vars['day']->value['count'];?>
,<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>"></canvas>
</div>


<h3>Anmeldungen nach Anmeldeart</h3>

<div class="statistic_pie_chart">
  <canvas id="bookingkinds_chart" height="200" data-anmeldeart="<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['anmart']->value, 'art');
$_smarty_tpl->tpl_vars['art']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['art']->value) {
$_smarty_tpl->tpl_vars['art']->do_else = false;
echo $_smarty_tpl->tpl_vars['art']->value['title'];?>
,<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>"
          data-anmeldungen="<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['anmart']->value, 'art');
$_smarty_tpl->tpl_vars['art']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['art']->value) {
$_smarty_tpl->tpl_vars['art']->do_else = false;
echo $_smarty_tpl->tpl_vars['art']->value['count'];?>
,<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>"></canvas>
</div>

<h3>Anmeldungen nach Kursstatus</h3>

<div class="statistic_chart statistic_pie_chart">
  <canvas id="bookingstatus_chart" height="200" data-kursstatus="<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['anmstatus']->value, 'status');
$_smarty_tpl->tpl_vars['status']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['status']->value) {
$_smarty_tpl->tpl_vars['status']->do_else = false;
echo $_smarty_tpl->tpl_vars['status']->value['title'];?>
,<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>"
          data-anmeldungen="<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['anmstatus']->value, 'status');
$_smarty_tpl->tpl_vars['status']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['status']->value) {
$_smarty_tpl->tpl_vars['status']->do_else = false;
echo $_smarty_tpl->tpl_vars['status']->value['count'];?>
,<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>"></canvas>
</div>

<h3>Kursteilnehmer nach Altersgruppe</h3>

<div class="statistic_chart statistic_chart">
  <canvas id="bookingageclass_chart" height="200" data-altersklasse="<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['bookingageclass']->value, 'ageclass');
$_smarty_tpl->tpl_vars['ageclass']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['ageclass']->value) {
$_smarty_tpl->tpl_vars['ageclass']->do_else = false;
echo $_smarty_tpl->tpl_vars['ageclass']->value['title'];?>
,<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>"
          data-anmeldungen="<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['bookingageclass']->value, 'ageclass');
$_smarty_tpl->tpl_vars['ageclass']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['ageclass']->value) {
$_smarty_tpl->tpl_vars['ageclass']->do_else = false;
echo $_smarty_tpl->tpl_vars['ageclass']->value['count'];?>
,<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>"></canvas>
</div>

<br />
<input type="submit" value=" drucken " onClick="javascript:window.print()">
<?php }
}
