<?php /* Smarty version Smarty-3.1.11, created on 2025-01-04 05:43:00
         compiled from "../views/obgy/reports/financialprint.html" */ ?>
<?php /*%%SmartyHeaderCode:135905822767793ae4ea98f8-28517024%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '81ea25fe01b67faf00ad3a8d67114a70dfc29e0f' => 
    array (
      0 => '../views/obgy/reports/financialprint.html',
      1 => 1626566020,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '135905822767793ae4ea98f8-28517024',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'showDate' => 0,
    'allData' => 0,
    'data' => 0,
    'i' => 0,
    'totalCost' => 0,
    'totalDiscount' => 0,
    'totalCash' => 0,
    'totalVisa' => 0,
    'totalDept' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67793ae5223f07_14993667',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67793ae5223f07_14993667')) {function content_67793ae5223f07_14993667($_smarty_tpl) {?>

<style>


    .prntbl2 {
        padding:0px !important;
        width:95% !important;
        margin:0px auto !important;
    }.prntbl2 table{
        border-collapse: collapse !important;
        width:100% !important;
        margin:0px !important;
        padding:0px !important;
    }
    .prntbl2 table th {
        background-color: #2D2D2D !important;
        background: #2D2D2D !important;
        border:0px solid #000000 !important;
        border-width:0px 0px 1px 1px !important;
        font-size:15px !important;
        font-family:Arial !important;
        font-weight:bold !important;
        color: #FFFFFF !important;
        text-align: center !important;
    }.prntbl2 tr:hover td{

    }
    .prntbl2 tr:nth-child(odd){background-color: #E0E0E0 !important;}
    .prntbl2 tr:nth-child(even)    { background-color:#ffffff !important; }
    .prntbl2 td{
        border:1px solid #000000 !important;
        padding: 0px 3px !important;
        font-size: 13px !important;
        font-family: tahoma !important;
        color:#000000 !important;
        text-align: left !important;
    }


    .prntbl2 th, .prntbl2 tt, .prntbl2 td {
        line-height: 20px !important;
        padding: 1px 5px !important;


    }

    .prntbl2 span {
        font-weight: 700;
    }

</style>


<div class="prntbl2">
    
    <style>


        .prntbl2 {
            padding:0px !important;
            width:95% !important;
            margin:0px auto !important;
        }.prntbl2 table{
            border-collapse: collapse !important;
            width:100% !important;
            margin:0px !important;
            padding:0px !important;
        }
        .prntbl2 table th {
            background-color: #2D2D2D !important;
            background: #2D2D2D !important;
            border:0px solid #000000 !important;
            border-width:0px 0px 1px 1px !important;
            font-size:15px !important;
            font-family:Arial !important;
            font-weight:bold !important;
            color: #FFFFFF !important;
            text-align: center !important;
        }.prntbl2 tr:hover td{

        }
        .prntbl2 tr:nth-child(odd){background-color: #E0E0E0 !important;}
        .prntbl2 tr:nth-child(even)    { background-color:#ffffff !important; }
        .prntbl2 td{
            border:1px solid #000000 !important;
            padding: 0px 3px !important;
            font-size: 13px !important;
            font-family: tahoma !important;
            color:#000000 !important;
            text-align: left !important;
        }


        .prntbl2 th, .prntbl2 tt, .prntbl2 td {
            line-height: 20px !important;
            padding: 1px 5px !important;


        }

        .prntbl2 span {
            font-weight: 700;
        }

    </style>

    
    <div class="prntbl2">
        <center><h4 class="modal-title">Financial Report</h4></center>
        <table class="table table-hover portlet light bg-inverse" id="repTable">
            <thead>
                <tr>
                    <th style="width: 10px !important;">#</th>
                    <th>   Patient Name </th>
                    <th>Patient Number</th>
                    <?php if ($_smarty_tpl->tpl_vars['showDate']->value&&$_smarty_tpl->tpl_vars['showDate']->value==1){?>  <th>Visit Date</th>  <?php }?>
                    <th>Type</th>
                    <th>   Total      </th>
                    <th>   Discount   </th>
                    <th>   Cash </th>
                    <th>   Visa  </th>
                    <th>   Debt </th>
                </tr>
            </thead>
            <tbody>
                <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allData']->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;
?>
                <tr class="odd " <?php if ($_smarty_tpl->tpl_vars['data']->value['newPat']==1){?> style="background-color: #d8eac6;"  <?php }?>>
                    <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                    <td>
                        <?php echo $_smarty_tpl->tpl_vars['data']->value['wifename'];?>

                    </td>
                    <td><?php echo $_smarty_tpl->tpl_vars['data']->value['statusno'];?>
</td>
                    <?php if ($_smarty_tpl->tpl_vars['showDate']->value&&$_smarty_tpl->tpl_vars['showDate']->value==1){?>  <td>   <?php echo $_smarty_tpl->tpl_vars['data']->value['visitdate'];?>
  </td>  <?php }?> 
                    <td><?php echo $_smarty_tpl->tpl_vars['data']->value['type'];?>
</td>
                    <td>
                        <?php echo $_smarty_tpl->tpl_vars['data']->value['totaldetectionvalue'];?>

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

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

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

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

                    </td>
                </tr>
                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_tmp1, null, 0);?>
                <?php } ?>
                <?php if (!empty($_smarty_tpl->tpl_vars['allData']->value)){?>
                <tr class="odd ">
                    <th>Total </th>
                    <td></td>
                    <td></td>
                    <?php if ($_smarty_tpl->tpl_vars['showDate']->value&&$_smarty_tpl->tpl_vars['showDate']->value==1){?> <td></td>  <?php }?>
                    <td></td>
                    <td><?php echo $_smarty_tpl->tpl_vars['totalCost']->value;?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['totalDiscount']->value;?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['totalCash']->value;?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['totalVisa']->value;?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['totalDept']->value;?>
</td>
                </tr>
                <?php }?>
            </tbody>
        </table>
    </div><?php }} ?>