<?php /* Smarty version Smarty-3.1.11, created on 2023-08-26 23:03:49
         compiled from "..\views\screen\clinics\all\loaded_dental.html.tpl" */ ?>
<?php /*%%SmartyHeaderCode:297006412e0a4711d14-21673754%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4db52d8b599ee93e4bd9fd7cb3f1cd48482df0bd' => 
    array (
      0 => '..\\views\\screen\\clinics\\all\\loaded_dental.html.tpl',
      1 => 1693083823,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '297006412e0a4711d14-21673754',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6412e0a47e4227_86832380',
  'variables' => 
  array (
    'doctorsCount' => 0,
    'doctors' => 0,
    'doctor' => 0,
    'value' => 0,
    'i' => 0,
    'roles' => 0,
    'role' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6412e0a47e4227_86832380')) {function content_6412e0a47e4227_86832380($_smarty_tpl) {?><div class="row">

    <?php if ($_smarty_tpl->tpl_vars['doctorsCount']->value>0){?>
        <div class="col-sm-4">
            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
            <?php  $_smarty_tpl->tpl_vars['doctor'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['doctor']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['doctors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['doctor']->key => $_smarty_tpl->tpl_vars['doctor']->value){
$_smarty_tpl->tpl_vars['doctor']->_loop = true;
?>
                <table class="table table-striped table-hover " id="todayTable">
                    <thead>
                        <tr class=" bg-info">  <th><?php echo $_smarty_tpl->tpl_vars['doctor']->value['for_doctor_name'];?>
 </th> </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                <ul>
                                    <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['doctor']->value['drVisits']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
$_smarty_tpl->tpl_vars['value']->_loop = true;
?>
                                        <li>  <?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>
  </li>
                                        <?php } ?>
                                </ul>
                            </td>
                        </tr>
                    </tbody>
                </table>
            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
        <?php } ?>
    </div>
<?php }else{ ?>
    <div class="col-sm-4">
        <table class="table table-striped table-hover " id="todayTable">
            <thead>
                <tr class=" bg-info">  <th> Today's List </th> </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <ul>

                        </ul>
                    </td>
                </tr>
            </tbody>
        </table>
    </div> 

<?php }?>


<div class="col-sm-8">
    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
    <?php  $_smarty_tpl->tpl_vars['role'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['role']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['roles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['role']->key => $_smarty_tpl->tpl_vars['role']->value){
$_smarty_tpl->tpl_vars['role']->_loop = true;
?>
        <table class="table table-striped table-hover ">
            <thead>
                <tr  class=" bg-blue-chambray">  
                    <th style="width:50%; text-align: right; padding-right: 5% !important;" > <?php echo $_smarty_tpl->tpl_vars['role']->value->doctor_name;?>
 </th>
                    <th  style="width:50%; text-align: left; padding-left: 5% !important;"> <?php echo $_smarty_tpl->tpl_vars['role']->value->name;?>
 </th>
                </tr>
                <tr colspan="2" style=" background-color: #bdd5e8;">  <th colspan="2" style="color: black;"> <?php echo $_smarty_tpl->tpl_vars['role']->value->roleCurrentPatient;?>
 </th> </tr>
            </thead>

            <tbody>
                <tr  colspan="2">
                    <td  colspan="2">
                        <ul>
                            <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['role']->value->visits; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
$_smarty_tpl->tpl_vars['value']->_loop = true;
?>
                                <li>  <?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>
  </li>
                                <?php } ?>
                        </ul>
                    </td>
                </tr>
            </tbody>
        </table>
    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
<?php } ?>
</div>
</div><?php }} ?>