<?php /* Smarty version Smarty-3.1.11, created on 2023-08-16 18:34:04
         compiled from "..\views\obgy\reserve_clinic\dept_clinics_h.html" */ ?>
<?php /*%%SmartyHeaderCode:2120464dcfa7c0d3512-04781656%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8bcd06db05f6ef7560a9fad087a025da537bbc9a' => 
    array (
      0 => '..\\views\\obgy\\reserve_clinic\\dept_clinics_h.html',
      1 => 1641357240,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2120464dcfa7c0d3512-04781656',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'days' => 0,
    'day' => 0,
    'rooms' => 0,
    'room' => 0,
    'hour' => 0,
    'key' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_64dcfa7c97e1b8_22020833',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_64dcfa7c97e1b8_22020833')) {function content_64dcfa7c97e1b8_22020833($_smarty_tpl) {?><div class="table-toolbar">

</div>  

<div class="tabbable tabbable-custom tabbable-noborder">
    <ul class="nav nav-tabs" id="rowTab" style="float: right;">
        <li class="fright aw_3d_list active"> <a href="#tab1" data-toggle="tab"> السبت  </a> </li>
        <li class="fright aw_3d_list"> <a href="#tab2" data-toggle="tab"> الأحد  </a> </li>
        <li class="fright aw_3d_list"> <a href="#tab3" data-toggle="tab"> الإثنين </a> </li>
        <li class="fright aw_3d_list"> <a href="#tab4" data-toggle="tab"> الثلاثاء </a> </li>
        <li class="fright aw_3d_list"> <a href="#tab5" data-toggle="tab"> الأربعاء </a> </li>
        <li class="fright aw_3d_list"> <a href="#tab6" data-toggle="tab"> الخميس </a> </li>
        <li class="fright aw_3d_list"> <a href="#tab7" data-toggle="tab"> الجمعة </a> </li>
    </ul>
</div>


<div class="tab-content">
    <?php  $_smarty_tpl->tpl_vars['day'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['day']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['days']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['day']->key => $_smarty_tpl->tpl_vars['day']->value){
$_smarty_tpl->tpl_vars['day']->_loop = true;
?>
    <div class="tab-pane <?php if ($_smarty_tpl->tpl_vars['day']->value['no']==1){?>active <?php }?> " id="tab<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
">
        <div class="row">
            <div class="col-md-12">
                <table class="table  table-bordered table-hover">
                    <caption style="text-align: center;font-weight: bolder">ساعات اليوم  
                        <a href="javascript:;"  data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
"
                           class="btn green-haze btn-block btn-xs fleft wds10 printDay">  طباعة   </a>
                    </caption>
                    <thead>
                        <tr>
                            <th></th>
                            <?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;
?>
                            <th><?php echo $_smarty_tpl->tpl_vars['room']->value['name'];?>
 </th>
                            <?php } ?>
                        </tr>
                    </thead>
                    <tbody>
                        <?php  $_smarty_tpl->tpl_vars['hour'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['hour']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['day']->value['hours']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['hour']->key => $_smarty_tpl->tpl_vars['hour']->value){
$_smarty_tpl->tpl_vars['hour']->_loop = true;
?>
                        <tr>
                            <td><?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
 </td>
                            <?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;
?>


                            <?php if ($_smarty_tpl->tpl_vars['day']->value['no']==1){?>
                            <?php if (in_array($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours1'])){?> 
                            <?php $_smarty_tpl->tpl_vars["key"] = new Smarty_variable(array_search($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours1']), null, 0);?>
                            <td class="dayBusy" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"  data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" >
                                <?php if ($_smarty_tpl->tpl_vars['key']->value!==false){?>
                                <?php echo $_smarty_tpl->tpl_vars['room']->value['resNames1'][$_smarty_tpl->tpl_vars['key']->value];?>

                                <?php }?>
                            </td>
                            <?php }else{ ?>
                            <td class="dayFree" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"   
                                data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" >
                            </td>
                            <?php }?>
                            <!------------------------------------------------------------------------------------------------------------>
                            <?php }elseif($_smarty_tpl->tpl_vars['day']->value['no']==2){?>
                            <?php if (in_array($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours2'])){?> 
                            <?php $_smarty_tpl->tpl_vars["key"] = new Smarty_variable(array_search($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours2']), null, 0);?>
                            <td class="dayBusy" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"  data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" > 
                                <?php if ($_smarty_tpl->tpl_vars['key']->value!==false){?>
                                <?php echo $_smarty_tpl->tpl_vars['room']->value['resNames2'][$_smarty_tpl->tpl_vars['key']->value];?>

                                <?php }?>
                            </td>
                            <?php }else{ ?>
                            <td class="dayFree" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"   
                                data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" >
                            </td>
                            <?php }?>
                            <!------------------------------------------------------------------------------------------------------------>
                            <?php }elseif($_smarty_tpl->tpl_vars['day']->value['no']==3){?>
                            <?php if (in_array($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours3'])){?> 
                            <?php $_smarty_tpl->tpl_vars["key"] = new Smarty_variable(array_search($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours3']), null, 0);?>
                            <td class="dayBusy" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"  data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" > 
                                <?php if ($_smarty_tpl->tpl_vars['key']->value!==false){?>
                                <?php echo $_smarty_tpl->tpl_vars['room']->value['resNames3'][$_smarty_tpl->tpl_vars['key']->value];?>

                                <?php }?>
                            </td>
                            <?php }else{ ?>
                            <td class="dayFree" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"   
                                data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" >
                            </td>
                            <?php }?>
                            <!------------------------------------------------------------------------------------------------------------>
                            <?php }elseif($_smarty_tpl->tpl_vars['day']->value['no']==4){?>
                            <?php if (in_array($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours4'])){?> 
                            <?php $_smarty_tpl->tpl_vars["key"] = new Smarty_variable(array_search($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours4']), null, 0);?>
                            <td class="dayBusy" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"  data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" > 
                                <?php if ($_smarty_tpl->tpl_vars['key']->value!==false){?>
                                <?php echo $_smarty_tpl->tpl_vars['room']->value['resNames4'][$_smarty_tpl->tpl_vars['key']->value];?>

                                <?php }?>
                            </td>
                            <?php }else{ ?>
                            <td class="dayFree" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"   
                                data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" >
                            </td>
                            <?php }?>
                            <!------------------------------------------------------------------------------------------------------------>
                            <?php }elseif($_smarty_tpl->tpl_vars['day']->value['no']==5){?>
                            <?php if (in_array($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours5'])){?> 
                            <?php $_smarty_tpl->tpl_vars["key"] = new Smarty_variable(array_search($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours5']), null, 0);?>
                            <td class="dayBusy" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"  data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" > 
                                <?php if ($_smarty_tpl->tpl_vars['key']->value!==false){?>
                                <?php echo $_smarty_tpl->tpl_vars['room']->value['resNames5'][$_smarty_tpl->tpl_vars['key']->value];?>

                                <?php }?>
                            </td>
                            <?php }else{ ?>
                            <td class="dayFree" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"   
                                data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" >
                            </td>
                            <?php }?>
                            <!------------------------------------------------------------------------------------------------------------>
                            <?php }elseif($_smarty_tpl->tpl_vars['day']->value['no']==6){?>
                            <?php if (in_array($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours6'])){?> 
                            <?php $_smarty_tpl->tpl_vars["key"] = new Smarty_variable(array_search($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours6']), null, 0);?>
                            <td class="dayBusy" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"  data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" > 
                                <?php if ($_smarty_tpl->tpl_vars['key']->value!==false){?>
                                <?php echo $_smarty_tpl->tpl_vars['room']->value['resNames6'][$_smarty_tpl->tpl_vars['key']->value];?>

                                <?php }?>
                            </td>
                            <?php }else{ ?>
                            <td class="dayFree" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"   
                                data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" >
                            </td>
                            <?php }?>
                            <!------------------------------------------------------------------------------------------------------------>
                            <?php }elseif($_smarty_tpl->tpl_vars['day']->value['no']==7){?>
                            <?php if (in_array($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours7'])){?> 
                            <?php $_smarty_tpl->tpl_vars["key"] = new Smarty_variable(array_search($_smarty_tpl->tpl_vars['hour']->value,$_smarty_tpl->tpl_vars['room']->value['resHours7']), null, 0);?>
                            <td class="dayBusy" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"  data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" > 
                                <?php if ($_smarty_tpl->tpl_vars['key']->value!==false){?>
                                <?php echo $_smarty_tpl->tpl_vars['room']->value['resNames7'][$_smarty_tpl->tpl_vars['key']->value];?>

                                <?php }?>
                            </td>
                            <?php }else{ ?>
                            <td class="dayFree" data-dayNo="<?php echo $_smarty_tpl->tpl_vars['day']->value['no'];?>
" data-room="<?php echo $_smarty_tpl->tpl_vars['room']->value['id'];?>
"   
                                data-hour="<?php echo $_smarty_tpl->tpl_vars['hour']->value;?>
" >
                            </td>
                            <?php }?>
                            <!------------------------------------------------------------------------------------------------------------>
                            <?php }?>

                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("3", null, 0);?>
                            <?php $_smarty_tpl->tpl_vars["k"] = new Smarty_variable('', null, 0);?>
                            <?php } ?>
                        </tr>
                        <?php } ?>
                    </tbody>
                </table>
            </div>
        </div>

    </div>
    <?php } ?>
</div>



<style>
    .dayFree  {
        color: black;
        background-color: #a3dfa2;
        text-align: center;
    }

    .daySelected  {
        color: black;
        background-color: #7ac720;
        text-align: center;
    }

    .dayBusy  {
        color: black;
        background-color: #cccccc;
        text-align: center;
    }

    .dayCancel  {
        color: black;
        background-color: #f36a5a;
        text-align: center;
    }


</style>
<?php }} ?>