
<html> 
    <head> 
        <meta charset="utf-8"/>
        <title>{if !empty($pres.name)}{$pres.name}{else}Royal med  {/if}</title>
        <style>
        </style>
    </head> 
    <body>

        {if  $pres.pres_type == 1 } 
        <br><br>
        <h1  style="text-align: center;">   {$pres.pres_name} </h1> 
        <hr  style="border: 1px solid black;width: 100%;">
        <br><br>

        <table style="width: 100%;">
            <tr style="line-height: 20px; ">
                <td style="width: 20%;font-weight: bold;text-align: right;"> {$pres.pres_date} </td>
                <td style="width: 15%;font-weight: bold;text-align: right;"> التاريخ        </td>
                <td  style="width: 50%;font-weight: bold;text-align: right;"> {$pres.name} </td>
                <td style="width: 15%;font-weight: bold;text-align: right;"> اسم الحالة       </td>
            </tr> 
        </table> 

        <br><br>

        <hr  style="border: 1px solid black;width: 100%;">
        <table style="width: 100%;"><tr style="line-height: 20px; "><td style="text-align: right;">{$pres.pres_content} </td></tr> </table>

        {else}
        <table style="width: 100%;">
            <tr style="line-height: 20px; ">
                <td style="width: 30%;font-weight: bold;"> {$pres.pres_date}</td>
                <td  style="width: 20%;font-weight: bold;"> {$pres.statusno} </td>
                <td  style=" width: 50%; text-align: right;font-weight: bold;">{$pres.title} /  {$pres.name} </td>
            </tr>
        </table> 
        <br><br><br>

        {foreach $pres.details as $detail }
        <table style="width: 100%;">
            <tr style="line-height: 20px; ">
                <td style="width: 5%;"> </td>
                <td  style=" width: 90%; text-align: center;font-weight: bold;"> 
                    <span>  {$detail->drugname}  </span>
                    <span> &nbsp;  &nbsp;  &nbsp;  {$detail->drugtype} </span>
                </td>
                <td style="width: 5%;"> </td>
            </tr> 
        </table> 

        <br>

        <table style="width: 100%;">
            <tr style="line-height: 20px; ">
                <td style="width: 5%;"> </td>
                <td  style=" width: 90%; text-align: center;font-weight: bold;"> 
                    <span>     {$detail->drugdos }</span>
                </td>
                <td style="width: 5%;"> </td>
            </tr>
        </table>

        <br><br>
        {/foreach}

        {/if}



    </body>
</html>
