<?php /* Smarty version Smarty-3.1.11, created on 2023-09-02 13:35:09
         compiled from "../views/screen/dental.html" */ ?>
<?php /*%%SmartyHeaderCode:125914981764d12f22d0fbf6-75394585%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9c8d0fcd830b2be4e243461a36a81ff09a0731d5' => 
    array (
      0 => '../views/screen/dental.html',
      1 => 1693138736,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '125914981764d12f22d0fbf6-75394585',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_64d12f22d70df3_98919193',
  'variables' => 
  array (
    'path' => 0,
    'hosturl' => 0,
    'clinic_id' => 0,
    'room_name' => 0,
    'room_info' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_64d12f22d70df3_98919193')) {function content_64d12f22d70df3_98919193($_smarty_tpl) {?><!doctype html>
<html lang="zxx">

    <head>
        <!-- REQUIRED META TAGS -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <meta name="" content="">
        <!-- DESCRIPTION -->
        <meta name="description" content="">
        <!-- KEYWORDS -->
        <meta name="keywords" content="" >
        <!-- PAGE TITLE HERE -->
        <title></title>
        <!-- MOBILE SPECIFIC -->
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <!-- STYLESHEETS -->
        <link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/css/plugins.css">
        <link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/css/default.css">
        <link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/css/style.css">
        <link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/css/responsive.css">
        <link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/css/bootstrap-rtl.min.css">
        <link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/css/custom-rtl.css">

    </head>
    <body class="mockup-5">
        <input type="hidden" id="hosturl" value="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
"/>
        <input type="hidden" id="room_id" value="<?php echo $_smarty_tpl->tpl_vars['clinic_id']->value;?>
"/>

        <!-- ====== Wraper ====== -->
        <div class="wraper d-flex align-items-center">
            <div class="container">
                <div class="content text-center">
                    <div class="logos mr-0-auto"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/img/logo0.png" alt="logo" width="130"></div>

                    <!-- <div style="font-size: 50px;line-height: 60px;background: rgba(0, 0, 0, 0.7);color: #fff;border-radius: 25px;padding: 10px;margin: 0px auto 6px;width: fit-content;text-align: center;">
                        غرفة: 5
                        <?php echo $_smarty_tpl->tpl_vars['room_name']->value;?>

                    </div> -->
                    <!-- <div id="timer" class="timer-5">
                        <h1 class="display-6" id="patient_container">
                            <?php if (empty($_smarty_tpl->tpl_vars['room_info']->value->patient_name)){?>
                            لا يوجد حجز حاليا
                            <?php }else{ ?>
                            <?php echo $_smarty_tpl->tpl_vars['room_info']->value->patient_name;?>

                            <?php }?>
                        </h1>
                    </div> -->
                    <!-- <h2 class="display-5" style="color:#1a315b!important" id="doctor_container">
                        <?php if (empty($_smarty_tpl->tpl_vars['room_info']->value->doctor_name)){?>
                        <?php }else{ ?>
                        <span class='dr'>الطبيب المعالج</span>
                        <?php echo $_smarty_tpl->tpl_vars['room_info']->value->doctor_name;?>

                        <?php }?>
                    </h2> -->
                    <h1 class="display-2" style="color:#fff!important">
                        <!-- اسم المريض: -->
                        <span class='patient_name' id="patient_container">
                            <?php if (empty($_smarty_tpl->tpl_vars['room_info']->value->patient_name)){?>
                            <?php echo $_smarty_tpl->tpl_vars['room_info']->value->emptyMessage;?>

                            <?php }else{ ?>
                            <?php echo $_smarty_tpl->tpl_vars['room_info']->value->patient_name;?>

                            <?php }?>
                        </span>

                    </h1>
                    <!-- <h1 class="display-5" style="color:#fff!important" id="doctor_container">
                        الطبيب المعالج:
                        <span class='dr'> د.سيد فاروق</span>
                       
                    </h1> -->

                </div>
            </div>
        </div>


    </div>
</div>




<!-- JAVASCRIPT FILES ========================================= -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/js/jquery.min.js"></script><!-- JQUERY.MIN JS -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/plugins/bootstrap/js/popper.min.js"></script><!-- POPPER JS -->
<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/plugins/bootstrap/js/bootstrap.min.js"></script><!-- BOOTSTRAP JS -->

<script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/js/custom.js"></script><!-- CUSTOM FUCTIONS  -->


<script>
    $(document).ready(function () {
        var host_url = $('#hosturl').val();
        var room_id = $('#room_id').val();
        setInterval(function () {

            $.post(host_url + '/controllers/index_dental.php?ac=roominfo', {room_id: room_id}, function (result) {
                //  console.log(result);
                var obj = JSON.parse(result);
                $('#patient_container').html(obj.patient_name);
                //  $('#doctor_container').html("<span class='dr'>الطبيب المعالج</span> " + obj.doctor_name);
            });
        }, 30000); //120000
    });
</script>


</body>

</html><?php }} ?>