<?php /* Smarty version Smarty-3.1.11, created on 2024-08-12 08:51:47
         compiled from "../views/obgy/lab/printbar.html" */ ?>
<?php /*%%SmartyHeaderCode:37043372766b9a2f33761b7-42716211%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '22f185825fa97f159c5e2263be2d7b09fc0a731f' => 
    array (
      0 => '../views/obgy/lab/printbar.html',
      1 => 1709821120,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '37043372766b9a2f33761b7-42716211',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'sampletypes_count' => 0,
    'sampletypes' => 0,
    'name' => 0,
    'gender' => 0,
    'age' => 0,
    'visit' => 0,
    'data' => 0,
    'labSetting' => 0,
    'docName' => 0,
    'hosturl' => 0,
    'statusNo' => 0,
    'empty_count' => 0,
    'showDocName' => 0,
    'empty_invests' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66b9a2f3443a19_12695920',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66b9a2f3443a19_12695920')) {function content_66b9a2f3443a19_12695920($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include '/home/naslabcom/public_html/lab/_library/smarty_plg/libs/plugins/modifier.truncate.php';
?><style>
    /*.fntSize { font-size: 23px;}
    .bold { font-weight: 900;}
    .center { text-align: center !important ;}*/

    .barcode {
        text-align: center;
        width: 188px;
        height: 90px;
        margin: auto;
        direction: ltr;
        font-size: 0.6em;
    }
    .barcode img {
        height: 40px;
        width: 100%;
        margin-top: 0;
        padding-bottom: 0;
        padding-top: 0;
    }
    .patient-name-bar {
        font-size: 0.8em;
        padding-top: 5px;
        padding-bottom: 0;
        font-weight: bold;
        text-align: left;
    }
    .date-info {
        margin-top: 0;
        margin-bottom: 0;
        padding-bottom: 0;
        padding-top: 0;
        display: flex;
        justify-content: space-between;
        font-size: 0.7em;
        font-weight: bold;
        z-index: 9;
        position: relative;
    }
    .anatomy-info {
        margin-top: 0;
        margin-bottom: 0;
        padding-bottom: 0;
        padding-top: 0;
        display: flex;
        justify-content: space-between;
        font-size: 0.7em;
        font-weight: bold;
    }
    .barcode-number-bar {
        font-size: 1.5em;
        font-weight: bold;
    }
    .barcode:last-child {
        page-break-after: auto;
    }
    @media print
    {
        html, body {
            /*height:100vh;*/
            margin: 0 !important;
            padding: 0 5px !important;
            overflow: hidden;
        }
        .barcode {
            width: 100%;
            margin: 0;
            padding: 0;
        }
        @page
        {
            size: 1.97in 0.98in;
            margin: 0;
            padding: 0;
        }
        .barcode:last-child {
            page-break-after: auto;
        }
    }
</style>

<?php if ($_smarty_tpl->tpl_vars['sampletypes_count']->value>0){?>

<?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['sampletypes']->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;
?>

<!--div class="row break " style="direction: rtl;margin-top:10px !important; ">
    <div class="col-md-12">

        <table style="width: 98%;margin: 5px auto;    margin-top: 2%;" >
            <tr>
                <td class="center">
                    <span class="bold fntSize" style="margin-right:  2%;" ><?php echo $_smarty_tpl->tpl_vars['name']->value;?>
</span>
                </td>
            </tr>
            <tr>
                <td class="center">
                    <span class="bold fntSize" style="  margin-left: 2%;direction: ltr;">  
                        <?php echo $_smarty_tpl->tpl_vars['gender']->value;?>
-<?php echo $_smarty_tpl->tpl_vars['age']->value;?>
  <?php echo $_smarty_tpl->tpl_vars['visit']->value->visittime;?>
   <?php echo $_smarty_tpl->tpl_vars['visit']->value->visitdate;?>

                    </span>
                </td>
            </tr>
            <?php if ($_smarty_tpl->tpl_vars['data']->value['showDocName']==1&&$_smarty_tpl->tpl_vars['labSetting']->value->lab_style!=2){?>
            <tr>
                <td class="center">
                    <span class="bold fntSize" style="margin-right:  2%;" >  <?php echo $_smarty_tpl->tpl_vars['docName']->value;?>
 </span>
                </td>
            </tr>
            <?php }?>
            <tr>
                <td class="center"> 
                    <img id="xx"  src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/samplebarcodes/<?php echo $_smarty_tpl->tpl_vars['data']->value['sampleId'];?>
.png" height="50" width="75%">
                </td>
            </tr>
            <tr>
                <td class="center"> <?php echo $_smarty_tpl->tpl_vars['data']->value['sampleId'];?>
</td>
            </tr>
            <tr>
                <td> <hr style="border-top: 1px solid #8c8b8b;margin: 5px 0;"> </td>
            </tr>
            <tr>
                <td>
                    <span class="bold" style="float: left;    margin-left: 5%; text-align: left;"><?php echo $_smarty_tpl->tpl_vars['data']->value['invests'];?>
</span>
                </td>
            </tr>
            <tr>
                <td> <hr style="border-top: 1px solid #8c8b8b;margin: 5px 0;"> </td>
            </tr>
            <tr>
                <td>
                    <span class="bold" style="float: left; margin-right:  2%;margin-left: 5%;"><?php echo $_smarty_tpl->tpl_vars['data']->value['samplename'];?>
</span>
                </td>
            </tr>
        </table>
    </div>
</div-->

<div class="row break " style="direction: rtl;margin-top:0px !important; margin-bottom:0px !important;">
    <div class="col-md-12">

        <div class="barcode">
                    <div class="patient-name-bar">
                        <?php echo $_smarty_tpl->tpl_vars['name']->value;?>
 <span style="float: right;"><?php echo $_smarty_tpl->tpl_vars['statusNo']->value;?>
</span>
                    </div>
                    <div class="date-info">
                        <div>
                            <span><?php echo $_smarty_tpl->tpl_vars['gender']->value;?>
-<?php echo $_smarty_tpl->tpl_vars['age']->value;?>
</span>
                        </div>
                        <div>
                            <span><?php echo $_smarty_tpl->tpl_vars['visit']->value->visittime;?>
</span>
                        </div>
                        <div>
                            <span><?php echo $_smarty_tpl->tpl_vars['visit']->value->visitdate;?>
</span>
                        </div>
                    </div>
                    <img src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/samplebarcodes/<?php echo $_smarty_tpl->tpl_vars['data']->value['sampleId'];?>
.png" alt="barcode">
                    <div class="anatomy-info">
                        <div>
                            <div>
                                <span><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['data']->value['invests'],40);?>
</span>
                            </div>
                            <div>
                                <span><?php echo $_smarty_tpl->tpl_vars['data']->value['samplename'];?>
</span>
                            </div>
                        </div>
                        <div>
                            <span class="barcode-number-bar"><?php echo $_smarty_tpl->tpl_vars['data']->value['sampleId'];?>
</span>
                        </div>
                    </div>
                </div>
    </div>
</div>
<?php } ?>

<?php }?>

<?php if ($_smarty_tpl->tpl_vars['empty_count']->value>0){?>

<div class="row break " style="direction: rtl;margin-top:10px !important; ">
    <div class="col-md-12">

        <table style="width: 98%;margin: 5px auto;    margin-top: 2%;" >
            <tr>
                <td class="center">
                    <span class="bold fntSize" style="margin-right:  2%;"><?php echo $_smarty_tpl->tpl_vars['name']->value;?>
</span><span style="float: right;"><?php echo $_smarty_tpl->tpl_vars['statusNo']->value;?>
</span>
                </td>
            </tr>

            <tr>
                <td class="center">
                    <span class="bold fntSize" style="   margin-left: 2%;direction: ltr;">  
                        <?php echo $_smarty_tpl->tpl_vars['gender']->value;?>
-<?php echo $_smarty_tpl->tpl_vars['age']->value;?>
  <?php echo $_smarty_tpl->tpl_vars['visit']->value->visittime;?>
   <?php echo $_smarty_tpl->tpl_vars['visit']->value->visitdate;?>

                    </span>
                </td>
            </tr>

            <?php if ($_smarty_tpl->tpl_vars['showDocName']->value==1&&$_smarty_tpl->tpl_vars['labSetting']->value->lab_style!=2){?>
            <tr>
                <td class="center">
                    <span class="bold fntSize" style="margin-right:  2%;" >  <?php echo $_smarty_tpl->tpl_vars['docName']->value;?>
 </span>
                </td>
            </tr>
            <?php }?>

            <tr>
                <td class="center">
                    <img id="xx"  src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/samplebarcodes/<?php echo $_smarty_tpl->tpl_vars['data']->value['sampleId'];?>
.png" height="30" width="100%">
                    <span class="bold"><?php echo $_smarty_tpl->tpl_vars['data']->value['sampleId'];?>
</span>
                </td>
            </tr>

            <tr>
                <td> <hr style="border-top: 1px solid #8c8b8b;margin: 5px 0;"> </td>
            </tr>

            <tr>
                <td>

                    <span class="bold" style="float: left;    margin-left: 5%; text-align: left;"><?php echo $_smarty_tpl->tpl_vars['empty_invests']->value;?>
</span>

                </td>
            </tr>

            <tr>
                <td> <hr style="border-top: 1px solid #8c8b8b;margin: 5px 0;"> </td>
            </tr>

            <tr>
                <td>

                    <span style="margin-right:  2%;margin-left: 5%;"></span>

                </td>
            </tr>

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

<?php }?>







<?php }} ?>