<?php /* Smarty version Smarty-3.1.11, created on 2023-03-15 06:39:10
         compiled from "..\views\screen\clinics\all\loaded.html.tpl" */ ?>
<?php /*%%SmartyHeaderCode:632864114beedb4ba9-41323516%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '37e88f535166d5d4bbf4b91400e8d6e717bca15a' => 
    array (
      0 => '..\\views\\screen\\clinics\\all\\loaded.html.tpl',
      1 => 1678757414,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '632864114beedb4ba9-41323516',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'rooms' => 0,
    'count' => 0,
    'room' => 0,
    'op_itr' => 0,
    'single' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_64114befccf837_25464302',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_64114befccf837_25464302')) {function content_64114befccf837_25464302($_smarty_tpl) {?><?php $_smarty_tpl->tpl_vars['count'] = new Smarty_variable(1, null, 0);?>
<?php  $_smarty_tpl->tpl_vars['room'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['room']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['rooms']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['room']->key => $_smarty_tpl->tpl_vars['room']->value){
$_smarty_tpl->tpl_vars['room']->_loop = true;
?>
    <table class="table table-striped table-hover ">
        <thead>
        <tr>
            <th class="bg<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" style="padding: 10px!important;"><?php echo $_smarty_tpl->tpl_vars['room']->value['name'];?>
</th>
        </tr>
        <tr>
            <th class="bg5" style="padding: 10px!important;"><?php if (empty($_smarty_tpl->tpl_vars['room']->value['reserve']['name'])){?>لا يوجد طبيب<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['room']->value['reserve']['name'];?>
<?php }?></th>
        </tr>
        <tr class=" bb">
            <th> اسم الحالة</th>
        </tr>
        </thead>
        <tbody>
        <?php $_smarty_tpl->tpl_vars['op_itr'] = new Smarty_variable(1, null, 0);?>
        <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['room']->value['reserve']['visits']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
            <tr class="<?php if ($_smarty_tpl->tpl_vars['op_itr']->value==1){?>even bg-success<?php }elseif($_smarty_tpl->tpl_vars['op_itr']->value==2){?>bg-info bb<?php }?>">
                <td><?php echo $_smarty_tpl->tpl_vars['op_itr']->value;?>
 - <?php echo $_smarty_tpl->tpl_vars['single']->value->patient_name;?>
</td>
            </tr>
            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'op_itr', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['op_itr']->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 } ?>
        </tbody>

    </table>
    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'count', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['count']->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 } ?><?php }} ?>