

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

        .noborder tr { height: 8mm; }
        .txtl{  text-align:left !important ; }
        .bold { font-weight: bold;}
        .h1 { font-weight: 900; font-size: 28px;}
        .h3 { font-weight: 700; font-size: 24px;}
        .col-md-12 { width: 100% !important ;}
        .col-md-4 { width: 33% !important ;}
        .col-md-8 { width: 66% !important ;}
        .break { page-break-after: always;}
    }
</style>

<style>
    table {
        font-family: arial, sans-serif;
        border-collapse: collapse;
        width: 100%;

    }


    td, th {
        border: 1px solid #000000;
        text-align: center;
        padding: 2px;
    }

    tr:nth-child(even) {
        background-color: #dddddd;
    }
</style>






<style>
    @page {ldelim}
    size: auto;
    margin-top: {$ProgramesettingData->above}cm;
    margin-bottom: {$ProgramesettingData->buttom}cm;
    {rdelim}

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

    .enfnt {ldelim}
    font-size: {$ProgramesettingData->fontsizeen}px !important;
    {rdelim}
</style>


<div class="page-content-wrapper" id="mydiv">

    <div class="row " style="margin-left: 25px;">
        <table style="width: 25%;margin: 5px auto; float: left;" class="noborder">
            <tr>
                <td class="h3 txtl">  Royal Fertility Center     </td>
            </tr>
        </table>

        <table style="width: 25%;float: right;border: 1px solid black !important;">
            <tr>
                <td class="bold">  Age     </td>
                <td class="bold">  BMI      </td>
                <td class="bold">  AMH    </td>
                <td class="bold">   FSH      </td>
            </tr>
            <tr>
                <td>{$patAge}</td>
                <td>{$ivf_report.bmi}</td>
                <td>{$ivf_report.amh}</td>
                <td>{$ivf_report.fsh}</td>
            </tr>
        </table>

        <table style="width: 75%;margin: 5px; float: left; " class="noborder">
            <tr>
                <td class="bold txtl" style="width: 15%;">  Patient Name :     </td>
                <td class="txtl">  {$patName} </td>
                <td class="bold txtl" style="width: 25%;">  Under Supervision of Dr :     </td>
                <td class="txtl">  {$ref_dr}  </td>
            </tr>
        </table>

        <table style="width: 75%;margin: 5px; float: left; " class="noborder">
            <tr>
                <td class="bold txtl" style="width: 25%;">  Protocol of Treatment :     </td>
                <td class="txtl">  {$ivf_report.protocolName} </td>
                <td class="bold txtl" style="width: 10%;">  Trial No  :     </td>
                <td class="txtl"> {$ivf_report.trial_no}  </td>
            </tr>
        </table>
    </div>

    <div class="row ">
        <table style="width: 100%;margin: 5px auto;">
            <thead>
                <tr>
                    <th rowspan="3" style="width: 100px;">Date</th>
                    <th rowspan="3" style="width: 100px;">Cycle Day</th>
                    <th rowspan="3" style="width: 100px;">E2</th>
                    <th rowspan="2" colspan="2" style="width: 500px;">Drugs</th>
                    <th colspan="4" style="width: 400px;">Transvaginal Ultrasonography </th>
                    <th rowspan="3" style="width: 100px;">Endometrium </th>
                </tr>
                <tr>
                    <th  colspan="2" style="width: 200px;">Right Ovary</th>
                    <th colspan="2"  style="width: 200px;">Left Ovary  </th>
                </tr>
                <tr>
                    <th>Type</th>
                    <th>Dose</th>
                    <th style="width: 90px;">NO.</th>
                    <th style="width: 110px;">Size</th>
                    <th style="width: 90px;">NO.</th>
                    <th style="width: 110px;">Size</th>
                </tr>
            </thead>

            <tbody>
                {foreach $ivf_records as $ivf_record }
                <tr>
                    <td>  {$ivf_record->record_date}</td>
                    <td>  {$ivf_record->cycle_day}</td>
                    <td>  {$ivf_record->e2}</td>
                    <td colspan="2">
                        <table >
                            <tbody>
                                {foreach $ivf_record->record_drugs as $data }
                                {if $data.drugid > 0 }
                                <tr>
                                    <td style="width: 220px;"> {$data.drugName}</td>
                                    <td style="direction: rtl;width: 280px;"> {$data.drugdos}</td>
                                </tr>
                                {/if}
                                {/foreach}
                            </tbody>
                        </table>
                    </td>

                    <td>  {$ivf_record->r_no}</td>
                    <td>  MOF : {$ivf_record->r_size}</td>
                    <td>  {$ivf_record->l_no}</td>
                    <td>  MOF : {$ivf_record->l_size}</td>
                    <td>  {$ivf_record->endo}</td>
                </tr>
                {/foreach}
            </tbody>
        </table>
    </div>

    <div class="row ">
        <table style="width: 100%; float: left; " class="noborder">
            <tr>
                <td class="bold txtl" style="width: 20%;">  Date Of Triggering :     </td>
                <td class="txtl" >  {$ivf_report.trig_date} </td>
                <td class="bold txtl" style="width: 20%;">  Time Of Triggering  :     </td>
                <td class="txtl" > {$ivf_report.trig_time}  </td>
            </tr>
        </table>

        <table style="width: 100%;margin: 5px auto;">
            <tr>
                <td class="bold" style="width: 15%; vertical-align: top;  border: 1px solid black !important;">  Dose Of Triggering :     </td>
                <td>
                    <table >
                        <tbody>
                            {foreach $ivf_drugs as $data }
                            {if $data.drugid > 0 }
                            <tr>
                                <td> {$data.drugName}</td>
                                <td> {$data.drugdos}</td>
                            </tr>
                            {/if}
                            {/foreach}
                        </tbody>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</div>






