<?php /* Smarty version Smarty-3.1.11, created on 2023-10-28 21:02:50
         compiled from "../views/obgy/reports/financial.html" */ ?>
<?php /*%%SmartyHeaderCode:715002441653d5ada91b5d8-87105748%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2f5a7d7d30e98e418de1d250988083f32dcb5ed2' => 
    array (
      0 => '../views/obgy/reports/financial.html',
      1 => 1664205452,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '715002441653d5ada91b5d8-87105748',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'today' => 0,
    'detections' => 0,
    'data' => 0,
    'recep_users' => 0,
    'refer' => 0,
    'py_all_doc' => 0,
    'role_id' => 0,
    'py_all_departs' => 0,
    'row' => 0,
    'offers' => 0,
    'doctors' => 0,
    'doc' => 0,
    'hosturl' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_653d5ada9a0763_84656908',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_653d5ada9a0763_84656908')) {function content_653d5ada9a0763_84656908($_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>Financial Report
                        </div>
                    </div>
                    <div class="portlet-body all">
                        <input type="hidden" id="reportPage" 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 wds10">
                                    <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;?>
"/>
                                        <label for="form_control_1">Date From </label>
                                    </div>
                                </div>

                                <div class="col-md-2 wds10">
                                    <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;?>
"/>
                                        <label for="form_control_1">Date To </label>
                                    </div>
                                </div>

                                <div class="col-md-2 wds13">
                                    <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">
                                    <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">
                                    <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-2">
                                    <div class="form-group">
                                        <label class="control-label ls2">Detection </label>

                                        <select class="form-control select2h" id="detection">
                                            <option value="">choose</option>
                                            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['detections']->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 echo $_smarty_tpl->tpl_vars['data']->value['title'];?>
</option>
                                            <?php } ?>
                                        </select>

                                    </div>
                                </div>

                                <div class="col-md-2">
                                    <div class="form-group">
                                        <label class="control-label ls2">User Name</label>

                                        <select class="form-control select2h" id="userId">
                                            <option value="">choose</option>
                                            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['recep_users']->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['user_id'];?>
" ><?php echo $_smarty_tpl->tpl_vars['data']->value['name'];?>
</option>
                                            <?php } ?>
                                        </select>

                                    </div>
                                </div>

                                <div class="col-md-2">
                                    <div class="form-group">
                                        <label class="control-label ls2">Refer Dr.</label>

                                        <select class="form-control select2h" id="referDrId">
                                            <option value="">choose</option>
                                            <option value="-1" >لا يوجد</option>
                                            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['refer']->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 echo $_smarty_tpl->tpl_vars['data']->value->name;?>
</option>
                                            <?php } ?>

                                            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['py_all_doc']->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['user_id'];?>
" ><?php echo $_smarty_tpl->tpl_vars['data']->value['name'];?>
</option>
                                            <?php } ?>
                                        </select>
                                    </div>
                                </div>

                                <div class="col-md-2">
                                    <div class="form-group">
                                        <label class="control-label ls2">Department </label>

                                        <select class="form-control searchFin" id="fordepartment">
                                            <option value="">choose</option>
                                            <?php if ($_smarty_tpl->tpl_vars['role_id']->value!=12){?> <option value="-5" >الصيدلية </option> <?php }?>
                                            <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['py_all_departs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                                            <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value->name;?>
</option>
                                            <?php } ?>
                                        </select>

                                    </div>
                                </div> 

                                <div class="col-md-2" id="labDiv" style="display: none;" >
                                    <div class="form-group">
                                        <label class="control-label ls2">  Type </label>

                                        <select class="form-control select2h" id="labType">
                                            <option value="">All</option>
                                            <option value="1">Offers</option>
                                            <option value="2">invests</option>
                                        </select>

                                    </div>
                                </div> 

                                <div class="col-md-2" id="offersDiv"  style="display: none;">
                                    <div class="form-group">
                                        <label class="control-label ls2"> Offers </label>

                                        <select class="form-control select2h" id="offerId">
                                            <option value="">All</option>
                                            <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['offers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                                            <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value->name;?>
</option>
                                            <?php } ?>
                                        </select>

                                    </div>
                                </div> 

                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label class="control-label ls2">Doctors </label>

                                        <select class="form-control select2h" id="repDoctors">
                                            <option value="">choose</option>
                                            <?php  $_smarty_tpl->tpl_vars['doc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['doc']->_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['doc']->key => $_smarty_tpl->tpl_vars['doc']->value){
$_smarty_tpl->tpl_vars['doc']->_loop = true;
?>
                                            <option value="<?php echo $_smarty_tpl->tpl_vars['doc']->value['user_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['doc']->value['name'];?>
</option>
                                            <?php } ?>
                                        </select>

                                    </div>
                                </div> 

                            </div>

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

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

                                        <a class="btn btn-primary btn-sm" id="finSearchBtn" >
                                            <i class="fa fa-search"></i> Search </a>

                                        <a class="btn btn-default btn-sm" id="printfi" >
                                            <i class="fa fa-print"></i> Print </a>

                                    </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="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 }} ?>