<?php /* Smarty version Smarty-3.1.11, created on 2024-10-08 10:29:22
         compiled from "../views/obgy/reports/visit/visit.html" */ ?>
<?php /*%%SmartyHeaderCode:6543913236704df52907fe0-54235343%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4e4edf6bb745d8461c14d8a0e7fec599ed99286b' => 
    array (
      0 => '../views/obgy/reports/visit/visit.html',
      1 => 1701984172,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6543913236704df52907fe0-54235343',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'today' => 0,
    'users' => 0,
    'user' => 0,
    'programesetting' => 0,
    'showStart' => 0,
    'showAll' => 0,
    'branches' => 0,
    'data' => 0,
    'selectedBranch' => 0,
    'hosturl' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6704df52970bb6_99403428',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6704df52970bb6_99403428')) {function content_6704df52970bb6_99403428($_smarty_tpl) {?><div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-users"></i>Visits Updates Report
                        </div>
                    </div>
                    <div class="portlet-body all">
                        <input type="hidden" id="reportPage" value="1"/>
                        <input type="hidden" id="visitSearchReport" value="1"/>
                        <input type="hidden" id="tdate" value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
">
                        <input type="hidden" id="controllName" value="financialreport"/>
                        <!--Begin Semen-->

                        <div class="row">
                            <div class="row clinick posre">
                                <div class="col-md-2 wds8 ">
                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                        <input type="text" class="form-control datepicker txtc" id="findate" value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
" readonly/>
                                        <label for="form_control_1">Date From</label>
                                    </div>
                                </div>

                                <div class="col-md-2 wds8 ">
                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                        <input type="text" class="form-control datepicker txtc" id="tofindate" value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
" readonly/>
                                        <label for="form_control_1">Date To</label>
                                    </div>
                                </div>

                                <div class="col-md-2 wds10">
                                    <div class="form-group">
                                        <label class="control-label ls2">Patient No</label>
                                        <input type="text"  id="statusNoRemote"  
                                               class="form-control  txtc searchPatFinal positiveNo "  data-alert="no"  >
                                    </div>
                                </div>


                                <div class="col-md-3 wds19">
                                    <div class="form-group">
                                        <label class="control-label ls2">Patient Name</label>
                                        <input type="hidden" class="form-control "    id="patientName"  >
                                    </div>
                                </div>

                                <div class="col-md-3 wds19">
                                    <div class="form-group">
                                        <label class="control-label ls2">Husband Name</label>
                                        <input type="hidden" class="form-control "    id="husband"  >
                                    </div>
                                </div>

                                <div class="col-md-3 wds19 ">
                                    <div class="form-group">
                                        <label class="control-label ls2"> User</label>
                                        <select class="form-control select2me" id="userId"  
                                                data-placeholder="Select..." >
                                            <option value="" >All </option>
                                            <?php  $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['user']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value){
$_smarty_tpl->tpl_vars['user']->_loop = true;
?>
                                            <option value="<?php echo $_smarty_tpl->tpl_vars['user']->value['user_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['user']->value['name'];?>
</option>
                                            <?php } ?>
                                        </select>
                                    </div>
                                </div>

                                <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->branches==1){?> 
                                <div class="col-md-2 wds13">
                                    <div class="form-group">
                                        <label class="control-label ls2"> Branch</label>

                                        <select class="form-control select2h" id="branch_id">
                                            <?php if ($_smarty_tpl->tpl_vars['showStart']->value==1){?> <option value="-1">choose</option>  <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['showAll']->value==1){?> <option value="">All</option> <?php }?>
                                            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['branches']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                                            <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['selectedBranch']->value==$_smarty_tpl->tpl_vars['data']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['data']->value->name;?>
</option>
                                            <?php } ?>
                                        </select>

                                    </div>
                                </div>
                                <?php }else{ ?>
                                <input type="hidden"  id="branch_id"  value="1"> 
                                <?php }?>

                                <a class="btn btn-primary btn-sm" id="visitSearchBtn" style="margin-top: 22px;">
                                    <i class="fa fa-search"></i>  </a>

                            </div>

                            <div class="clearfix"></div>

                            <div class="portlet box white">
                                <div class="portlet-title">
                                    <div class="actions">



                                    </div>
                                </div>

                                <div class="portlet-body form" id="financialDiv">
                                </div>
                            </div>
                        </div>

                    </div>

                    <!--End Semen-->


                    <div class="clearfix"></div>

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

<div class="clearfix"></div>
<div id="financialPrint"></div>
<div id="upVisitsDiv"></div>


<div id="talks-loading" style="z-index: 3000;position: absolute;top: 7%;right: 2%;left: 6%;display:none; height: 65%; background-color: rgba(0, 0, 0,0.27); padding-top: 10%;" align="center">
    <img src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/loading.gif">
</div>



<script type="text/javascript" >
    $(document).ready(function (e) {
        //    $('#finSearchBtn').trigger('click');
    });
</script>



<?php }} ?>