
<div class="row">
    <h4  class="enfnt bold txtc" >{$programesetting->centername}</h4>     
    <h4  class="enfnt bold txtc" >{$labSetting->labno}</h4>     
    <h4  class="enfnt bold txtc" >{$programesetting->phone}</h4>     
    <h4  class="enfnt bold txtc" >{$programesetting->email}</h4>     
    <h4  class="enfnt bold txtc" >{$programesetting->centername}</h4>     

    <h4 class="enfnt txtc bold" >
        <span>   My Results  </span>
    </h4>
    <h4 class="enfnt txtc" >
        <img  style="width:  125px ;height: 125px !important;"   src="{$hosturl}/../upload/linkqrcodes/{$statusno}.png">
    </h4>


    <h4  class="enfnt bold txtc" >Invoice Date : {$visitdate}</h4>     
    <h4  class="enfnt bold txtc" > Invoice No :  {$printserial}</h4>     
    <h4  class="enfnt bold txtc" > Patient Name :  {$pat_name}</h4>     
    <h4  class="enfnt bold txtc" > Patient No :  {$statusno}</h4>     
    <h4  class="enfnt bold txtc" > Patient ID :  {$patientId}</h4>     
    <h4  class="enfnt bold txtc" > Patient Nationality :  {$nationality}</h4>     
    <h4  class="enfnt bold txtc" > Doctor Name :  {$doctorName}</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>

            {foreach $visitOffers as $test }
            <tr>
                <td class="enfnt  txtl" >{$test.name}</td>
                <td class="enfnt  txtl" >{$test.price} {$labSetting->currency}</td>
            </tr>
            {/foreach}

            {foreach $visitTests as $test }
            <tr>
                <td class="enfnt  txtl" >{$test.name}</td>
                <td class="enfnt  txtl" >{$test.price} {$labSetting->currency}</td>
            </tr>
            {/foreach}


            {if   $visit->detectionid > 0 }
            <tr>
                <td class="enfnt  txtl">{$service}</td>
                <td class="enfnt  txtl"> {$visit->lab_detection_price} {$labSetting->currency}</td>
            </tr>
            {/if}
        </table>
    </div>

    <h4  class="enfnt bold txtc" > Total Bill :  {$visit->totaldetectionvalue} {$labSetting->currency}</h4>   
    <h4  class="enfnt bold txtc" > Discount :  {$visit->discount} {$labSetting->currency}</h4>   
    <h4  class="enfnt bold txtc" > Amount of tax :  {$visit->vat_value} {$labSetting->currency}</h4>   
    <h4  class="enfnt bold txtc" > Total :  {$visit->totalAmount} {$labSetting->currency}</h4>   
    <h4  class="enfnt bold txtc" > Payment Method :  {$payingMethod} </h4>   
    <h4  class="enfnt bold txtc" > Paid :  {$visit->detectionvalue_cash + $visit->detectionvalue_visa} {$labSetting->currency}</h4>
    <h4  class="enfnt bold txtc" > Remaining :  {$visit->restdetectionvalue} {$labSetting->currency} </h4>
    <hr style="border: 1px solid black;">

    <h4 class="enfnt txtc" >
        <img  style="width:  125px ;height: 125px !important;"   src="{$hosturl}/../upload/linkqrcodes/{$statusno}.png">
    </h4>
    <h4 class="enfnt txtc bold" >
        <span>   Invoice  </span>
    </h4>

    <h4  class="enfnt bold txtc" >Terms And Conditions</h4>   
    <h4  class="enfnt  txtc" >  {$labSetting->conditions}</h4>   
</div>

{literal}
<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>
{/literal}

<style>

    @page {ldelim}
    size: auto;
    margin-top: {$programesetting->above2}cm !important;
    margin-bottom: {$programesetting->buttom2}cm !important;
    {rdelim}

    .arbfnt {ldelim}
    font-size: {$programesetting->fontsizear2}px !important;
    {rdelim}

    .enfnt {ldelim}
    font-size: {$programesetting->fontsizeen2}px !important;
    {rdelim}

    #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>