<table  cellpadding="2" class="rtl">
    <thead>
        <tr>
            <th>اليوم :  {$dayName} </th>
            <th> التاريخ :   {$dayDate} </th>
        </tr>
        <tr><th colspan="2"> Operation List </th></tr>
    </thead>
</table>


<div >   
    <table  cellpadding="2" class="rtl">
        <thead>
            <tr>
                <th>م</th>
                <th>رقم الحالة</th>
                <th> اسم الحالة  </th>
                <th> الطبيب  </th>
                <th>نوع العملية    </th>
                {if $allowCostCol  == 1} <th> التكلفة  </th> {/if}
                <th> وقت الحالة </th>
                <th> وصول  </th>
                <th> الدخول </th>
                <th> الخروج </th>
                <th> دخول الكشف  </th>
                <th> خروج  الكشف  </th>
                <th> دخول الإقامة   </th>
            </tr>
        </thead>
        <tbody>
            {assign var=i value=1}
            {foreach $visitsAll as $lab}

            <tr >
                <td> {$i}</td>
                {if  $lab.patientId > 0 }
                <td> {$lab.statusno}</td>
                <td> 
                    <ul style="margin-bottom: 22px;">
                        <li style="float: right;    margin-right: -15%;">{$lab.wifename}</li>
                    </ul>
                    <ul style="margin-bottom: 22px;">
                        <li style="float: right;    margin-right: -15%;">{$lab.husdandname}</li>
                    </ul>
                </td>

                {else}
                <td>      {$lab.status_no}  </td>
                <td> 
                    <ul style="margin-bottom: 22px;">
                        <li style="float: right;    margin-right: -15%;">{$lab.patientName}</li>
                    </ul>
                </td>
                {/if}


                <td> {$lab.drName}</td>
                <td> {$lab.detectionType}</td>
                {if $allowCostCol  == 1}
                <td>      {$lab.case_cost} </td>
                {/if}
                <td> {$lab.case_time}</td>
                <td  id="arrived_time{$lab.id}">  {$lab.arrived_time}  </td>
                <td  id="enter_time{$lab.id}">      {$lab.enter_time}   </td>
                <td  id="exit_time{$lab.id}"> {$lab.exit_time} </td>
                <td> {$lab.kashfEnter}</td>
                <td>  {$lab.kashf_exit_time} </td>
                <td> {$lab.resEnter}</td>
            </tr>
            {capture assign=i}{$i+1}{/capture}
            {/foreach}
        </tbody>
    </table>

</div>



{literal}
<style>

    table{
        width: 100%;
        border-spacing: 0px;
        border: none;
    }

    caption{
        text-align: center;
        background-color: #DDD;
    }

    .tb1 td , .noborder {
        border: none;
    }

    .tb1{
        border-bottom: 1px solid black;
        border-right: 1px solid black;
    }

    td , th{
        border: 1px solid black;
        padding: 3px;
        text-align:  center !important;
    }

    p3{    padding: 3px}

    .txtc{    text-align:  center !important; }

    th{    text-align:  center !important;  background-color: #aaa; }

    .bold { font-weight: bold;}

    .underline { text-decoration: underline;}

    .mb10{
        margin-bottom: 10px;
    }

    .vertical{
        writing-mode: vertical-rl;
        -webkit-transform:rotate(180deg);
        -moz-transform:rotate(180deg);
        -o-transform: rotate(180deg);
        -ms-transform:rotate(180deg);
        transform: rotate(180deg);
        white-space:nowrap;
    }

    @media print {
        #patient_profile_print {
            transform: scale(.9);
        }

        .break { page-break-after: always;}

        caption{
            text-align: center;
            background-color: #DDD;
        }


        table{
            width: 100%;
            border-spacing: 0px;
            border: none;
        }

        .tb1 td , .noborder {
            border: none;
        }

        .tb1{
            border-bottom: 1px solid black;
            border-right: 1px solid black;
        }

        td , th{
            border: 1px solid black;
            padding: 3px;
            text-align:  center !important;
        }

        p3{    padding: 3px}

        .txtc{    text-align:  center !important; }

        th{    text-align:  center !important;   background-color: #aaa; }

        .bold { font-weight: bold;}

        .underline { text-decoration: underline;}

        .mb10{
            margin-bottom: 10px;
        }

        .vertical{
            writing-mode: vertical-rl;
            -webkit-transform:rotate(180deg);
            -moz-transform:rotate(180deg);
            -o-transform: rotate(180deg);
            -ms-transform:rotate(180deg);
            transform: rotate(180deg);
            white-space:nowrap;
        }
    }
</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>