<?php /* Smarty version Smarty-3.1.11, created on 2024-08-12 10:06:59
         compiled from "../views/obgy/visits/printbill.html" */ ?>
<?php /*%%SmartyHeaderCode:198841682966b9b49373b4e6-43062467%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b4010c34e4e9f526a1217fc869c50d742cb172e3' => 
    array (
      0 => '../views/obgy/visits/printbill.html',
      1 => 1709618069,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '198841682966b9b49373b4e6-43062467',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'path' => 0,
    'hosturl' => 0,
    'statusno' => 0,
    'printserial' => 0,
    'visitdate' => 0,
    'payingMethod' => 0,
    'pat_name' => 0,
    'patientId' => 0,
    'nationality' => 0,
    'age' => 0,
    'gender' => 0,
    'doctorName' => 0,
    'visitOffers' => 0,
    'test' => 0,
    'labSetting' => 0,
    'visitTests' => 0,
    'visit' => 0,
    'service' => 0,
    'programesetting' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66b9b4937fb964_93161930',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66b9b4937fb964_93161930')) {function content_66b9b4937fb964_93161930($_smarty_tpl) {?> 
<div class="row col-md-12" style="background: #f1f3fa url(<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/custom/images/nas.png) no-repeat top center !important;
     background-position: center;
     background-border: none !important; background-color: rgba(255,255,255,0.6);
     background-blend-mode: lighten;
     background-size: 100% !important;">

    <div class="col-md-12">
        <table style="width: 98%;" class="noborder">
            <tr>
                <td class="enfnt bold txtc wds30" >
                    <h4 class="enfnt txtc" >
                        <img  style="width:  125px ;height: 125px;"   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>
                </td>
                <td class="enfnt bold txtc" >
                    <h3  class="enfnt bold txtc" >Invoice Tax  - فاتورة ضريبية  </h3>     
                    <h4  class="enfnt bold txtc" >Invoice No.<?php echo $_smarty_tpl->tpl_vars['printserial']->value;?>
</h4>     
                    <h4  class="enfnt bold txtc" >Invoice Date : <?php echo $_smarty_tpl->tpl_vars['visitdate']->value;?>
</h4>         
                    <h4  class="enfnt bold txtc" > Payment Method :  <?php echo $_smarty_tpl->tpl_vars['payingMethod']->value;?>
 </h4> 
                </td>
                <td class="enfnt bold txtc wds30" >
                    <h4 class="enfnt txtc" >
                        <img  style="width:  125px ;height: 125px;"   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>   My Results  </span>
                    </h4>
                </td>
            </tr>
        </table>
    </div>

    <hr style="border: 1px solid black;">

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

            <tr>
                <td class="enfnt bold txtl" >Patient Name</td>
                <td class="enfnt  txtc" ><?php echo $_smarty_tpl->tpl_vars['pat_name']->value;?>
</td>
                <td class="arbfnt bold txtr" >اسم المريض </td>
            </tr>

            <tr>
                <td class="enfnt bold txtl" >Patient No</td>
                <td class="enfnt  txtc" ><?php echo $_smarty_tpl->tpl_vars['statusno']->value;?>
</td>
                <td class="arbfnt bold txtr" >كود  المريض </td>
            </tr>
            
            
            <tr>
                <td class="enfnt bold txtl" >Patient ID</td>
                <td class="enfnt  txtc" ><?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
</td>
                <td class="arbfnt bold txtr" >رقم الهوية    </td>
            </tr>

            <tr>
                <td class="enfnt bold txtl" >Nationality</td>
                <td class="enfnt  txtc" ><?php echo $_smarty_tpl->tpl_vars['nationality']->value;?>
</td>
                <td class="arbfnt bold txtr" >الجنسية    </td>
            </tr>

            <tr>
                <td class="enfnt bold txtl" >Age</td>
                <td class="enfnt  txtc" ><?php echo $_smarty_tpl->tpl_vars['age']->value;?>
</td>
                <td class="arbfnt bold txtr" >العمر   </td>
            </tr>
            <tr>
                <td class="enfnt bold txtl" >Gender</td>
                <td class="enfnt  txtc" ><?php echo $_smarty_tpl->tpl_vars['gender']->value;?>
</td>
                <td class="arbfnt bold txtr" >النوع   </td>
            </tr>

            <tr>
                <td class="enfnt bold txtl" >Doctor</td>
                <td class="enfnt  txtc" ><?php echo $_smarty_tpl->tpl_vars['doctorName']->value;?>
</td>
                <td class="arbfnt bold txtr" >الطبيب   </td>
            </tr>

        </table>
    </div>

    <div class="col-md-12">
        <table style="width: 98%;" class="table" >
            <thead>
                <tr>
                    <th class="enfnt bold txtc">Test Name - اسم  الاختبار </th>
                    <th class="enfnt bold txtc" >Price - السعر </th>
                </tr>
            </thead>
            <tbody>
                
                                <?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  txtc" ><?php echo $_smarty_tpl->tpl_vars['test']->value['name'];?>
</td>
                    <td class="enfnt  txtc" ><?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  txtc" ><?php echo $_smarty_tpl->tpl_vars['test']->value['name'];?>
</td>
                    <td class="enfnt  txtc" ><?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  txtc"><?php echo $_smarty_tpl->tpl_vars['service']->value;?>
</td>
                    <td class="enfnt  txtc"> <?php echo $_smarty_tpl->tpl_vars['visit']->value->lab_detection_price;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</td>
                </tr>
                <?php }?>
            </tbody>
        </table>
    </div>

    <hr style="border: 1px solid black;">
    <div class="col-md-12">
        <table style="width: 98%;" class="noborder">

            <tr>
                <td class="enfnt bold txtl" >Total (Excluding VAT)</td>
                <td class="enfnt  txtc" ><?php echo $_smarty_tpl->tpl_vars['visit']->value->totaldetectionvalue;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</td>
                <td class="arbfnt bold txtr" >( الإجمالي (غير شامل القيمة المضافة  </td>
            </tr>


            <tr>
                <td class="enfnt bold txtl" >Discount Total</td>
                <td class="enfnt  txtc" ><?php echo $_smarty_tpl->tpl_vars['visit']->value->discount;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</td>
                <td class="arbfnt bold txtr" >مجموع الخصومات    </td>
            </tr>
            
            <tr>
                <td class="enfnt bold txtl" >Total VAT</td>
                <td class="enfnt  txtc" > <?php echo $_smarty_tpl->tpl_vars['visit']->value->vat_value;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</td>
                <td class="arbfnt bold txtr" >  مجموع ضريبة القيمة المضافة </td>
            </tr>

            <tr>
                <td class="enfnt bold txtl" >Total Amount Due</td>
                <td class="enfnt  txtc" ><?php echo $_smarty_tpl->tpl_vars['visit']->value->totalAmount;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</td>
                <td class="arbfnt bold txtr" >اجمالي المبلغ المستحق   </td>
            </tr>
            
            <tr>
                <td class="enfnt bold txtl" >Paid</td>
                <td class="enfnt  txtc" ><?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;?>
</td>
                <td class="arbfnt bold txtr" >المدفوع   </td>
            </tr>
            
            <tr>
                <td class="enfnt bold txtl" >Remaining</td>
                <td class="enfnt  txtc" ><?php echo $_smarty_tpl->tpl_vars['visit']->value->restdetectionvalue;?>
 <?php echo $_smarty_tpl->tpl_vars['labSetting']->value->currency;?>
</td>
                <td class="arbfnt bold txtr" >المتبقي   </td>
            </tr>

        </table>
    </div>
    <hr style="border: 1px solid black;">
    <div class="col-md-12">
        <table style="width: 98%;" class="noborder">

            <tr>
                <td class="enfnt bold txtl" ></td>
                <td class="arbfnt bold txtr" >Phone : <?php echo $_smarty_tpl->tpl_vars['programesetting']->value->phone;?>
</td>
            </tr>

        </table>
    </div>
</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;}
        .table>thead>tr>th{
            background: #DDD !important;
            border: 1px solid #DDD !important;
        }
        .table>tbody>tr>td, .table>thead>tr>td{
            border: 1px solid #DDD !important;
        }
    }
</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 }} ?>