<?php /* Smarty version Smarty-3.1.11, created on 2024-08-12 08:52:04
         compiled from "../views/obgy/visits/printreceipt2.html" */ ?>
<?php /*%%SmartyHeaderCode:82127372966b9a304861890-80277544%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6694032983e5c9cf5da6c84395c5ef288a7570f4' => 
    array (
      0 => '../views/obgy/visits/printreceipt2.html',
      1 => 1709618119,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '82127372966b9a304861890-80277544',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'programesetting' => 0,
    'labSetting' => 0,
    'hosturl' => 0,
    'statusno' => 0,
    'visitdate' => 0,
    'printserial' => 0,
    'pat_name' => 0,
    'patientId' => 0,
    'nationality' => 0,
    'doctorName' => 0,
    'visitOffers' => 0,
    'test' => 0,
    'visitTests' => 0,
    'visit' => 0,
    'service' => 0,
    'payingMethod' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66b9a304963680_08188959',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66b9a304963680_08188959')) {function content_66b9a304963680_08188959($_smarty_tpl) {?>
<div class="row">
    <h4  class="enfnt bold txtc" ><?php echo $_smarty_tpl->tpl_vars['programesetting']->value->centername;?>
</h4>     
    <h4  class="enfnt bold txtc" ><?php echo $_smarty_tpl->tpl_vars['labSetting']->value->labno;?>
</h4>     
    <h4  class="enfnt bold txtc" ><?php echo $_smarty_tpl->tpl_vars['programesetting']->value->phone;?>
</h4>     
    <h4  class="enfnt bold txtc" ><?php echo $_smarty_tpl->tpl_vars['programesetting']->value->email;?>
</h4>     
    <h4  class="enfnt bold txtc" ><?php echo $_smarty_tpl->tpl_vars['programesetting']->value->centername;?>
</h4>     

    <h4 class="enfnt txtc bold" >
        <span>   My Results  </span>
    </h4>
    <h4 class="enfnt txtc" >
        <img  style="width:  125px ;height: 125px !important;"   src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/linkqrcodes/<?php echo $_smarty_tpl->tpl_vars['statusno']->value;?>
.png">
    </h4>


    <h4  class="enfnt bold txtc" >Invoice Date : <?php echo $_smarty_tpl->tpl_vars['visitdate']->value;?>
</h4>     
    <h4  class="enfnt bold txtc" > Invoice No :  <?php echo $_smarty_tpl->tpl_vars['printserial']->value;?>
</h4>     
    <h4  class="enfnt bold txtc" > Patient Name :  <?php echo $_smarty_tpl->tpl_vars['pat_name']->value;?>
</h4>      
    <h4  class="enfnt bold txtc" > Patient No :  <?php echo $_smarty_tpl->tpl_vars['statusno']->value;?>
</h4>     
    <h4  class="enfnt bold txtc" > Patient ID :  <?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
</h4>      
    <h4  class="enfnt bold txtc" > Patient Nationality :  <?php echo $_smarty_tpl->tpl_vars['nationality']->value;?>
</h4>     
    <h4  class="enfnt bold txtc" > Doctor Name :  <?php echo $_smarty_tpl->tpl_vars['doctorName']->value;?>
</h4>     


    <div class="col-md-12">
        <table style="width: 98%;" class="noborder">

            <tr>
                <td class="enfnt bold txtc" >Test Name</td>
                <td class="enfnt bold txtc" >Price</td>
            </tr>
            
                        <?php  $_smarty_tpl->tpl_vars['test'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['test']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['visitOffers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['test']->key => $_smarty_tpl->tpl_vars['test']->value){
$_smarty_tpl->tpl_vars['test']->_loop = true;
?>
            <tr>
                <td class="enfnt  txtl" ><?php echo $_smarty_tpl->tpl_vars['test']->value['name'];?>
</td>
                <td class="enfnt  txtl" ><?php echo $_smarty_tpl->tpl_vars['test']->value['price'];?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</td>
            </tr>
            <?php } ?>
            

            <?php  $_smarty_tpl->tpl_vars['test'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['test']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['visitTests']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['test']->key => $_smarty_tpl->tpl_vars['test']->value){
$_smarty_tpl->tpl_vars['test']->_loop = true;
?>
            <tr>
                <td class="enfnt  txtl" ><?php echo $_smarty_tpl->tpl_vars['test']->value['name'];?>
</td>
                <td class="enfnt  txtl" ><?php echo $_smarty_tpl->tpl_vars['test']->value['price'];?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</td>
            </tr>
            <?php } ?>
            
                        <?php if ($_smarty_tpl->tpl_vars['visit']->value->detectionid>0){?>
            <tr>
                <td class="enfnt  txtl"><?php echo $_smarty_tpl->tpl_vars['service']->value;?>
</td>
                <td class="enfnt  txtl"> <?php echo $_smarty_tpl->tpl_vars['visit']->value->lab_detection_price;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</td>
            </tr>
            <?php }?>
        </table>
    </div>

    <h4  class="enfnt bold txtc" > Total Bill :  <?php echo $_smarty_tpl->tpl_vars['visit']->value->totaldetectionvalue;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</h4>   
    <h4  class="enfnt bold txtc" > Discount :  <?php echo $_smarty_tpl->tpl_vars['visit']->value->discount;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</h4>   
    <h4  class="enfnt bold txtc" > Amount of tax :  <?php echo $_smarty_tpl->tpl_vars['visit']->value->vat_value;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</h4>   
    <h4  class="enfnt bold txtc" > Total :  <?php echo $_smarty_tpl->tpl_vars['visit']->value->totalAmount;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</h4>   
    <h4  class="enfnt bold txtc" > Payment Method :  <?php echo $_smarty_tpl->tpl_vars['payingMethod']->value;?>
 </h4>
    <h4  class="enfnt bold txtc" > Paid :  <?php echo $_smarty_tpl->tpl_vars['visit']->value->detectionvalue_cash+$_smarty_tpl->tpl_vars['visit']->value->detectionvalue_visa;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</h4>
    <h4  class="enfnt bold txtc" > Remaining :  <?php echo $_smarty_tpl->tpl_vars['visit']->value->restdetectionvalue;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
 </h4>
    <hr style="border: 1px solid black;">

    <h4 class="enfnt txtc" >
        <img  style="width:  125px ;height: 125px !important;"   src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/linkqrcodes/<?php echo $_smarty_tpl->tpl_vars['statusno']->value;?>
.png">
    </h4>
    <h4 class="enfnt txtc bold" >
        <span>   Invoice  </span>
    </h4>

    <h4  class="enfnt bold txtc" >Terms And Conditions</h4>   
    <h4  class="enfnt  txtc" >  <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->conditions;?>
</h4>   
</div>


<style>
    .bold { font-weight: bold;}
    .h1 { font-weight: 900; font-size: 28px;}
    .h2 { font-weight: 700; font-size: 26px;}
    @media print {
        #patient_profile_print {
            transform: scale(.9);
        }
        .bold { font-weight: bold;}
        .h1 { font-weight: 900; font-size: 28px;}
        .h2 { font-weight: 700; font-size: 26px;}
    }
</style>


<style>

    @page {
    size: auto;
    margin-top: <?php echo $_smarty_tpl->tpl_vars['programesetting']->value->above2;?>
cm !important;
    margin-bottom: <?php echo $_smarty_tpl->tpl_vars['programesetting']->value->buttom2;?>
cm !important;
    }

    .arbfnt {
    font-size: <?php echo $_smarty_tpl->tpl_vars['programesetting']->value->fontsizear2;?>
px !important;
    }

    .enfnt {
    font-size: <?php echo $_smarty_tpl->tpl_vars['programesetting']->value->fontsizeen2;?>
px !important;
    }

    #content, #page {
        width: 100%; 
        margin: 0; 
        float: none;
    }


    /* Unnötige Elemente ausblenden für den Druck */

    #header-widgets, nav, aside.mashsb-container, 
    .sidebar, .mashshare-top, .mashshare-bottom, 
    .content-ads, .make-comment, .author-bio, 
    .heading, .related-posts, #decomments-form-add-comment, 
    #breadcrumbs, #footer, .post-byline, .meta-single, 
    .site-title img, .post-tags, .readability 
    {
        display: none;
    }



</style><?php }} ?>