
<div class="row">
    <div class="col-md-12">
        <table style="width: 98%;" class="noborder">
            {if $programesetting->lab_header != '' && $programesetting->lab_header != Null }
            <tr>
                <th colspan="3">
                    <img src="{$hosturl}/../upload/background/{$programesetting->lab_header}" alt="Header image">
                </th>
            </tr>
            {/if}

            <tr>
                <td class="enfnt  txtc wds30" >
                    <h4 class="enfnt txtc" >{$programesetting->centername}</h4>
                    {if $showBranchCol  == 1 && $branchId > 0 }
                    <h4 class="enfnt txtc bold" >{$branchName}</h4>
                    {/if}
                    <!--h4 class="enfnt txtc" >ًWestern Area  </h4>
                    <h4 class="enfnt txtc bold" >HQ-Jeddah</h4-->
                </td>
                <td class="enfnt bold txtc" >
                    <h3  class="enfnt bold txtc" >Job Order</h3>     
                </td>
                <td class="enfnt  txtc wds30" >
                    <h4 class="enfnt txtc" >{$programesetting->centername_ar}  </h4>
                    {if $showBranchCol  == 1 && $branchId > 0 }
                    <h4 class="enfnt txtc bold" >{$branchName}</h4>
                    {/if}
                    <!--h4 class="enfnt txtc" >ًWestern Area  </h4>
                    <h4 class="enfnt txtc bold" >HQ-Jeddah</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 wds25" >Patient Name</td>
                <td class="enfnt  txtc wds25" >{$pat_name}</td>
                <td class="enfnt bold txtl wds25" >Age </td>
                <td class="enfnt  txtc wds25" >{$age}</td>
            </tr>

            <tr>
                <td class="enfnt bold txtl wds25" >Request No</td>
                <td class="enfnt  txtc wds25" >{$printserial}</td>
                <td class="enfnt bold txtl wds25" >Patient Sex</td>
                <td class="enfnt  txtc wds25" >{$gender}</td>
            </tr>

            <tr>
                <td class="enfnt bold txtl wds25" >Sample Date</td>
                <td class="enfnt  txtc wds25" >{$visitdate}</td>
                <td class="enfnt bold txtl" >Patient Mobile</td>
                <td class="enfnt  txtc" >{$patient->phone}</td>
            </tr>

            <tr>
                <td class="enfnt bold txtl" >Patient No </td>
                <td class="enfnt  txtc" >{$patient->statusno}</td>
                <td class="enfnt bold txtl" >Organization</td>
                <td class="enfnt  txtc" > {$orgName}</td>

            </tr>

            {if $showBranchCol  == 1 && $branchId > 0 }
            <tr>
                <td class="enfnt bold txtl" >Branch </td>
                <td class="enfnt  txtc" >{$branchName}</td>
            </tr>
            {/if} 

            <tr>
                <td class="enfnt bold txtl" >Doctor References</td>
                <td class="enfnt  txtc" >{$doctorName}</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  txtc wds30" >  </td>
                <td class="enfnt bold txtc" >
                    <h4  class="enfnt bold txtc" >Sample Requistion Form </h4>     
                </td>
                <td class="enfnt  txtc wds30" ></td>
            </tr>
        </table>
    </div>

    <div class="col-md-12">
        <table style="width: 98%;" class="table" >
            <thead>
                <tr>
                    <th class="enfnt bold txtc" >Sample Type</th>
                    <th class="enfnt bold txtc" > Sample Id  </th>
                    <th class="enfnt bold txtc" > Package  </th>
                    <th class="enfnt bold txtc" > Analysis  </th>
                    <th class="enfnt bold txtc" > Result Date   </th>
                    <th class="enfnt bold txtc" > Status  </th>
                </tr>
            </thead>
            <tbody>
                {foreach $visitTests as $test }
                {if $test.showMe == 1 }
                <tr>
                    <td class="enfnt  txtc" >{$test.sampleType}</td>
                    <td class="enfnt  txtc" >{$test.sample_id}</td>
                    <td class="enfnt  txtc" >{$test.offerName}</td>
                    <td class="enfnt  txtc" >{$test.name}</td>
                    <td class="enfnt  txtc" ></td>
                    <td class="enfnt  txtc" ></td>
                </tr>
                {/if}
                {/foreach}
            </tbody>
        </table>
    </div>

    <div class="col-md-12">
        <table style="width: 98%;" class="table" >
            <thead>
                <tr>
                    <th class="enfnt bold txtc wds25" >Visit Comment </th>
                    <td class="enfnt  txtc" ></td>
                </tr>
            </thead>
        </table>
    </div>


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

    <div class="col-md-12">
        <table style="width: 98%;" class="noborder">
            <tr>
                <td class="enfnt  txtc bold wds25 underline" > Extra Service   </td>
                <td class="enfnt bold txtc" ></td>
                <td class="enfnt  txtc wds30" ></td>
            </tr>
        </table>
    </div>


    <div class="col-md-12">
        <table style="width: 98%;" class="table" >
            <thead>
                <tr>
                    <th class="enfnt bold txtc wds50" >Service </th>
                    <th class="enfnt bold txtc wds50" >Done By  </th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td class="enfnt  txtc" ></td>
                    <td class="enfnt  txtc" >{$doneBy}</td>
                </tr>
            </tbody>
        </table>
    </div>
	
	{if $programesetting->lab_footer != '' && $programesetting->lab_footer != Null }
<div class="divFooter">
    <img src="{$hosturl}/../upload/background/{$programesetting->lab_footer}" alt="Footer image">
</div>
{/if}

</div>


{literal}
<style>
    .bold {
        font-weight: bold;
    }
    .h1 {
        font-weight: 900;
        font-size: 28px;
    }
    .h2 {
        font-weight: 700;
        font-size: 26px;
    }
    .underline {
        text-decoration: underline;
    }
    @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;
        }
        .underline {
            text-decoration: underline;
        }
    }
</style>
{/literal}

<style>

    @page {ldelim}
    size: auto;
    margin-top: {$programesetting->lab_above}cm !important;
    margin-bottom: {$programesetting->lab_bottom}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>