<?php /* Smarty version Smarty-3.1.11, created on 2025-03-09 04:09:00
         compiled from "..\views\obgy\receipt\showdetails.html" */ ?>
<?php /*%%SmartyHeaderCode:32867ccf83c8a2f67-58446723%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fc0ba91456984381cc0d27b63c26cc6d23fc331b' => 
    array (
      0 => '..\\views\\obgy\\receipt\\showdetails.html',
      1 => 1506420312,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '32867ccf83c8a2f67-58446723',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'shcontrollname' => 0,
    'breadcrumbs' => 0,
    'allreceipt' => 0,
    'stores' => 0,
    'data' => 0,
    'hosturl' => 0,
    'controllname' => 0,
    'durgs' => 0,
    'i' => 0,
    'datafetch' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67ccf83c9cdc61_52162416',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67ccf83c9cdc61_52162416')) {function content_67ccf83c9cdc61_52162416($_smarty_tpl) {?><!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            <?php echo $_smarty_tpl->tpl_vars['shcontrollname']->value;?>

        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <?php echo $_smarty_tpl->tpl_vars['breadcrumbs']->value;?>

            </ul>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->

        <div class="row">
            <div class="col-md-12">

                <div class="portlet box grey-cascade">

                    <div class="well well-sm">

                        <div class="col-md-3">
                            <div class="form-group form-md-line-input has-success">
                                <input type="text" class="form-control" id="form_control_1" value="<?php echo $_smarty_tpl->tpl_vars['allreceipt']->value->doctorname;?>
" disabled="disabled" readonly="readonly" placeholder="Doctor Name" name="docname" required>
                                <label for="form_control_1">Doctor Name</label>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group form-md-line-input has-success">
                                <input type="text" class="form-control" id="form_control_1" value="<?php echo $_smarty_tpl->tpl_vars['allreceipt']->value->patientname;?>
" disabled="disabled" readonly="readonly" placeholder="Patient Name" name="invoicenumber" required>
                                <label for="form_control_1">Patient Name</label>
                            </div>
                        </div>

                        <div class="col-md-3">
                            <div class="form-group form-md-line-input has-success">
                                <input type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['allreceipt']->value->receiptdate;?>
" disabled="disabled" readonly="readonly">
                                <label for="form_control_1">Recepit Date</label>
                            </div>
                        </div>

                        <div class="col-md-3">
                            <div class="form-group form-md-line-input has-success">
                                <select class="form-control" id="storeid"   required>
                                    <option value=""> Choose store</option>
                                    <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['stores']->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 } ?>
                                </select>
                                <label for="form_control_1">Store</label>
                            </div>
                        </div>

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

        </div>
        <div class="row">

            <div class="col-md-12">
                <!-- BEGIN SAMPLE TABLE PORTLET-->

                <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=updatereceipt" id="drugExportForm" method="post">
                    <div class="portlet box green">
                        <div class="portlet-title">
                            <div class="caption">
                                <i class="fa fa-comments"></i>Prescription Drugs  
                            </div>
                            <div class="tools">
                                <a href="javascript:;" class="collapse">
                                </a>
                            </div>
                        </div>
                        <div class="portlet-body">
                            <div class="table-scrollable">
                                <table class="table table-striped table-hover" id="prescriptionDurgsTable">
                                    <thead>
                                        <tr>
                                            <th>
                                                #
                                            </th>
                                            <th>
                                                Drug Name
                                            </th>
                                            <th>
                                                Drug Type
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                        <?php  $_smarty_tpl->tpl_vars['datafetch'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['datafetch']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['durgs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['datafetch']->key => $_smarty_tpl->tpl_vars['datafetch']->value){
$_smarty_tpl->tpl_vars['datafetch']->_loop = true;
?>
                                        <tr>
                                            <td>
                                                <?php echo $_smarty_tpl->tpl_vars['i']->value;?>

                                            </td>
                                            <td>
                                                <?php echo $_smarty_tpl->tpl_vars['datafetch']->value->drugname;?>

                                            </td>
                                            <td>
                                                <?php echo $_smarty_tpl->tpl_vars['datafetch']->value->drugtype;?>

                                            </td>
                                        </tr>

                                        <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                        <?php } ?>

                                    </tbody>
                                </table>

                                <input type="hidden" id="id" name="id" value="<?php echo $_smarty_tpl->tpl_vars['allreceipt']->value->id;?>
" />
                                <input type="hidden" id="receiptCaching" name="receiptCaching" value="1" />
                                <input type="hidden" id="type" name="type" value="internal" />
                            </div>
                            <div class="form-actions">
                                <div class="row" id="cachReceipt" style="display: none;">
                                    <div class="col-md-12 pull-right" style="text-align: right;" >
                                        <a href="javascript:;" class="btn green" id="cachReceiptBtn">Cash
                                        </a>
                                    </div>
                                </div>
                                <div class="row" id="cantCachReceiptDiv">
                                    <div class="col-md-12 pull-right" style="text-align: right;" >
                                        <p class="btn green" id="cantCachReceipt"> Choose Store First ...</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
                <!-- END SAMPLE TABLE PORTLET-->
            </div>

        </div>
    </div>
</div>
<!-- END CONTENT -->
<?php }} ?>