<?php /* Smarty version Smarty-3.1.11, created on 2024-06-04 02:17:41
         compiled from "..\views\obgy\receipt\show.html" */ ?>
<?php /*%%SmartyHeaderCode:7471665e5d258953e0-05299760%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e1bf53e5274f9023aa87a828578db5ef2954b729' => 
    array (
      0 => '..\\views\\obgy\\receipt\\show.html',
      1 => 1514851990,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '7471665e5d258953e0-05299760',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hosturl' => 0,
    'today' => 0,
    'allreceipt' => 0,
    'datarow' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_665e5d259b9e82_75429352',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_665e5d259b9e82_75429352')) {function content_665e5d259b9e82_75429352($_smarty_tpl) {?><!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">


        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->


        <div class="portlet box green tabbable">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-gift"></i>All Prescriptions
                </div>
            </div>
            <div class="portlet-body">
                <div class=" portlet-tabs">
                    <a class="btn blue  pull-right" style="margin-bottom: 5px; margin-top: 5px;"   href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/receipt.php?ac=index">
                        <i class="fa  fa-plus"></i>
                        Add external Prescription 
                    </a>
                    <ul class="nav nav-tabs">
                        <li class="active">
                            <a href="#portlet_tab2_3" data-toggle="tab" aria-expanded="true">
                                New Prescriptions</a>
                        </li>
                        <li class="">
                            <a href="#portlet_tab2_2" data-toggle="tab" aria-expanded="false">
                                Cashed Prescriptions </a>
                        </li>

                    </ul>

                    <div class="tab-content">

                        <div class="tab-pane" id="portlet_tab2_2">

                            <div class="portlet light bg-inverse">
                                <div class="form-body">
                                    <div class="col-md-6">
                                        <div class="form-group form-md-line-input has-success">
                                            <input type="text" class="form-control datepicker searchReceipt"  readonly="readonly"  id="searchValue12" data-type="cached"  value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
"/>
                                            <label for="searchValue12">Date From</label>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group form-md-line-input has-success">
                                            <input type="text" class="form-control datepicker searchReceipt"  readonly="readonly" id="searchValue22" data-type="cached"   value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
"/>
                                            <label for="searchValue22">Date To</label>
                                        </div>
                                    </div>
                                </div>

                                <input type="hidden" id="receiptCaching" name="receiptCaching" value="1" />

                                <table class="table table-bordered table-striped  dataTableReceipt">
                                    <thead>
                                        <tr>
                                            <th>Doctor Name</th>
                                            <th>Patient Name</th>
                                            <th>Receipt Date</th>
                                            <th>Receipt Type</th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody id="cachedReceiptTable">

                                        <?php  $_smarty_tpl->tpl_vars['datarow'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['datarow']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allreceipt']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['datarow']->key => $_smarty_tpl->tpl_vars['datarow']->value){
$_smarty_tpl->tpl_vars['datarow']->_loop = true;
?>

                                        <?php if ($_smarty_tpl->tpl_vars['datarow']->value->status==1){?>
                                        <tr>
                                            <td><?php echo $_smarty_tpl->tpl_vars['datarow']->value->doctorname;?>
</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['datarow']->value->patientname;?>
</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['datarow']->value->receiptdate;?>
</td>
                                            <td><?php if ($_smarty_tpl->tpl_vars['datarow']->value->type==0){?>Internal<?php }else{ ?>External<?php }?></td>
                                            <td class="col-md-2">
                                                <a class="btn blue btn-xs" style=" float: left;" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/receipt.php?ac=details&id=<?php echo $_smarty_tpl->tpl_vars['datarow']->value->id;?>
" >
                                                    <i class="fa fa-eye"></i> details

                                                </a>
                                                <a class="btn red btn-xs" style=" float: left;" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/receipt.php?ac=returndrug&id=<?php echo $_smarty_tpl->tpl_vars['datarow']->value->id;?>
" >
                                                    <i class="fa fa-eye"></i> return

                                                </a>
                                            </td>
                                        </tr>
                                        <?php }?>

                                        <?php } ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="tab-pane active" id="portlet_tab2_3">
                            <div class="portlet light bg-inverse">
                                <div class="form-body">
                                    <div class="col-md-6">
                                        <div class="form-group form-md-line-input has-success">
                                            <input type="text" class="form-control datepicker searchReceipt"  readonly="readonly"  id="searchValue11" data-type="new"   value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
"/>
                                            <label for="searchValue11">Date From</label>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group form-md-line-input has-success">
                                            <input type="text" class="form-control datepicker searchReceipt"  readonly="readonly" id="searchValue21"   data-type="new"    value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
"/>
                                            <label for="searchValue21">Date To</label>
                                        </div>
                                    </div>
                                </div>


                                <table class="table table-bordered table-striped  dataTableReceipt">
                                    <thead>
                                        <tr>
                                            <th>Doctor Name</th>
                                            <th>Patient Name</th>
                                            <th>Receipt Date</th>
                                            <th class="wds1">Action</th>
                                        </tr>
                                    </thead>
                                    <tbody id="newReceiptTable">

                                        <?php  $_smarty_tpl->tpl_vars['datarow'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['datarow']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allreceipt']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['datarow']->key => $_smarty_tpl->tpl_vars['datarow']->value){
$_smarty_tpl->tpl_vars['datarow']->_loop = true;
?>
                                        <?php if ($_smarty_tpl->tpl_vars['datarow']->value->status==0){?>
                                        <tr>
                                            <td><?php echo $_smarty_tpl->tpl_vars['datarow']->value->doctorname;?>
</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['datarow']->value->patientname;?>
</td>

                                            <td><?php echo $_smarty_tpl->tpl_vars['datarow']->value->receiptdate;?>
</td>
                                            <td>
                                                <a class="btn blue btn-xs" style=" float: left;" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/receipt.php?ac=showdetails&id=<?php echo $_smarty_tpl->tpl_vars['datarow']->value->id;?>
" >
                                                    <i class="fa fa-eye"></i> Cashing

                                                </a>
                                            </td>
                                        </tr>
                                        <?php }?>

                                        <?php } ?>
                                    </tbody>
                                </table>
                            </div>

                        </div>

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












    <!-- END PAGE CONTENT-->
</div>

<!-- END CONTENT -->



<?php }} ?>