{literal}
<style>
    th {
        text-align: left !important;
    }

    th , td {
        padding: 10px  15px !important;
    }

    .casesDetails {
        font-size: 15px;
    }
</style>

{/literal}

<input type="hidden" id="controllName" value="adddevices"/>
<div      style="max-width: 1650px;white-space: nowrap;">   
    <table class="table table-bordered table-striped table-hover " >
        <tbody>
            <tr>
                <th class="wds50"> Total Cases </th>
                <td class="btn  wds100 casesDetails" data-type="totalEcCases">
                    {if $result.totalEC > 0 } {$result.totalEC}{else} 0 {/if}
                </td>
            </tr>

            <tr>
                <th> Total E.T </th>
                <td class="btn  wds100 casesDetails" data-type="totalEtCases">
                    {if $result.totalET > 0 }  {$result.totalET}{else} 0 {/if}
                    ( No Answer :  {if $result.etNoAnswer > 0 }  {$result.etNoAnswer}{else} 0 {/if} )
                </td>
            </tr>

            <tr>
                <th> Total Cancelled </th>
                <td class="btn  wds100 casesDetails" data-type="totalCancelledCases">
                    {if $result.totalCancelled > 0 } {$result.totalCancelled}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Total Pregnant Cases +ve </th>
                <td class="btn  wds100 casesDetails" data-type="totalPregnantCases">
                    {if $result.etPositive > 0 } {$result.etPositive}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Pregnancy Rate Per E.T </th>
                <td> {$result.etPositiveRate} % </td>
            </tr>

            <tr style="background-color: #eebabb;    height: 20px;"> <td colspan="2"></td> </tr>
            {foreach  $cancel_reason as $one}
            <tr>
                <th> Cancelled Cases Due To {$one.name} </th>
                <td> {$one.totalCases}</td>
            </tr>
            {/foreach}
            <tr style="background-color: #eebabb;    height: 20px;"> <td colspan="2"></td> </tr>

            <tr>
                <th> Total Cases Under 35 Years ( ≤ 34 years ) </th>
                <td>   {if $result.totalUnderAge35 > 0 }{$result.totalUnderAge35}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Total Cancelled Under 35 Years ( ≤ 34 years ) </th>
                <td>  {if $result.cancelUnderAge35 > 0 } {$result.cancelUnderAge35}{else} 0 {/if}

                </td>
            </tr>

            <tr>
                <th> Pregnancy Rate For Cases Under 35 Years ( ≤ 34 years ) </th>
                <td>   {if $result.pregUnderAge35 > 0 }{$result.pregUnderAge35}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Total Cases Over 35 Years ( ≥35 years) </th>
                <td>  {if $result.totalOverAge35 > 0 } {$result.totalOverAge35}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Total Cases Cancelled Over 35 Years ( ≥35 years) </th>
                <td>  {if $result.cancelOverAge35 > 0 } {$result.cancelOverAge35}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Pregnancy Rate For Cases Over 35 Years ( ≥35 years) </th>
                <td>   {if $result.pregOverAge35 > 0 }{$result.pregOverAge35}{else} 0 {/if}</td>
            </tr>

            <tr style="background-color: #eebabb;    height: 20px;"> <td colspan="2"></td> </tr>

            <tr>
                <th> Blastocyst transfer </th>
                <td>
                    <table class="table table-bordered " >
                        <tr>
                            <th> 1 </th> <td>{if $result.blastocyst1 > 0 }{$result.blastocyst1}{else} 0 {/if}</td>
                            <th> 2 </th> <td>{if $result.blastocyst2 > 0 }{$result.blastocyst2}{else} 0 {/if}</td> 
                            <th> 3 </th> <td>{if $result.blastocyst3 > 0 }{$result.blastocyst3}{else} 0 {/if}</td>
                            <th> 4 </th> <td>{if $result.blastocyst4 > 0 }{$result.blastocyst4}{else} 0 {/if}</td> 
                        </tr>
                    </table>
                </td>
            </tr>

            <tr>
                <th> Total Number Of Collected Oocytes </th>
                <td>   {if $result.totalOocytes > 0 }{$result.totalOocytes}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Oocyte Maturity Rate    (MII)  </th>
                <td>   {if $result.totalMii > 0 }{$result.totalMii}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Total Number Of injected Oocytes </th>
                <td> {$result.totalInjectedOocytes} % </td>
            </tr>

            <tr>
                <th> Oocyte Fertilization Rate </th>
                <td>   {if $result.totalFertilized > 0 }{$result.totalFertilized}{else} 0 {/if}</td>
            </tr>

            <tr style="background-color: #eebabb;    height: 20px;"> <td colspan="2"></td> </tr>

            <tr>
                <th> Cases with under 5 oocytes ( ≤ 5 ) </th>
                <td>   {if $result.totalUnderOocytes5 > 0 }{$result.totalUnderOocytes5}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Cancelled cases Under 5 Oocytes ( ≤ 5 ) </th>
                <td>   {if $result.cancelUnderOocytes5 > 0 }{$result.cancelUnderOocytes5}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Pregnancy Rate  for cases under 5 oocytes (≤ 5 ) </th>
                <td>   {if $result.pregUnderOocytes5 > 0 }{$result.pregUnderOocytes5}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Cases with more than 15 oocytes ( ≥ 15 ) </th>
                <td>   {if $result.totalOverOocytes15 > 0 }{$result.totalOverOocytes15}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Cancelled Cases with more than 15 oocytes ( ≥ 15 ) </th>
                <td>   {if $result.cancelOverOocytes15 > 0 }{$result.cancelOverOocytes15}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Pregnancy rate  for cases more than 15 oocytes ( ≥ 15 ) </th>
                <td>   {if $result.pregOverOocytes15 > 0 }{$result.pregOverOocytes15}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Cases with ( 6 : 14 ) oocytes </th>
                <td>   {if $result.totalbetweenrOocytes5_15 > 0 }{$result.totalbetweenrOocytes5_15}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Cancelled Cases with ( 6 : 14 ) Oocytes </th>
                <td>   {if $result.cancelbetweenrOocytes5_15 > 0 }{$result.cancelbetweenrOocytes5_15}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Pregnancy rate  for cases with ( 6 : 14 ) oocytes </th>
                <td>   {if $result.pregbetweenrOocytes5_15 > 0 }{$result.pregbetweenrOocytes5_15}{else} 0 {/if}</td>
            </tr>

            <tr style="background-color: #eebabb;    height: 20px;"> <td colspan="2"></td> </tr>

            <tr>
                <th> Total Cases with Frozen Embryos </th>
                <td>   {if $result.totalFreezing > 0 }{$result.totalFreezing}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Number of frozen embryos </th>
                <td>   {if $result.totalFrozenEmbryos > 0 }{$result.totalFrozenEmbryos}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Number of straws </th>
                <td>   {if $result.totalFrozenStraws > 0 }{$result.totalFrozenStraws}{else} 0 {/if}</td>
            </tr>

            <tr style="background-color: #eebabb;    height: 20px;"> <td colspan="2"></td> </tr>

            <tr>
                <th> Total Thawing Cases  </th>
                <td>   {if $result.xxxxxx > 0 }{$result.xxxxxx}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Total Cancelled Thawing Cases </th>
                <td>   {if $result.xxxxxx > 0 }{$result.xxxxxx}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Pregnancy Rate For Thawing/ET </th>
                <td>   {if $result.xxxxxx > 0 }{$result.xxxxxx}{else} 0 {/if}</td>
            </tr>

            <tr style="background-color: #eebabb;    height: 20px;"> <td colspan="2"></td> </tr>

            <tr>
                <th> 2nd Day embryo transfer cases </th>
                <td>   {if $result.day2TransferCases > 0 }{$result.day2TransferCases}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> PR </th>
                <td>   {if $result.xxxxxx > 0 }{$result.xxxxxx}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> 3rd Day embryo transfer cases </th>
                <td>   {if $result.day3TransferCases > 0 }{$result.day3TransferCases}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> PR </th>
                <td>   {if $result.xxxxxx > 0 }{$result.xxxxxx}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> 4th  Day embryo transfer cases </th>
                <td>   {if $result.day4TransferCases > 0 }{$result.day4TransferCases}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> PR </th>
                <td>   {if $result.xxxxxx > 0 }{$result.xxxxxx}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> 5th  Day embryo transfer cases </th>
                <td>   {if $result.day5TransferCases > 0 }{$result.day5TransferCases}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> PR </th>
                <td>   {if $result.xxxxxx > 0 }{$result.xxxxxx}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> 6th  Day embryo transfer cases </th>
                <td>   {if $result.day6TransferCases > 0 }{$result.day6TransferCases}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> PR </th>
                <td>   {if $result.xxxxxx > 0 }{$result.xxxxxx}{else} 0 {/if}</td>
            </tr>

            <tr style="background-color: #eebabb;    height: 20px;"> <td colspan="2"></td> </tr>

            <tr>
                <th> Total Cases Under 39 Years ( ≤ 39 years ) </th>
                <td>  {if $result.totalUnderAge39 > 0 } {$result.totalUnderAge39}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Total Cancelled Under 39 Years ( ≤ 39 years ) </th>
                <td>  {if $result.cancelUnderAge39 > 0 } {$result.cancelUnderAge39}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Pregnancy Rate For Cases Under 39 Years ( ≤ 39 years ) </th>
                <td>  {if $result.pregUnderAge39 > 0 } {$result.pregUnderAge39}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Total Cases Over 40 Years ( ≥40 years) </th>
                <td>   {if $result.totalOverAge40 > 0 }{$result.totalOverAge40}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Total Cases Cancelled Over 40 Years ( ≥40 years) </th>
                <td>  {if $result.cancelOverAge40 > 0 } {$result.cancelOverAge40}{else} 0 {/if}</td>
            </tr>

            <tr>
                <th> Pregnancy Rate For Cases Over 40 Years ( ≥40 years) </th>
                <td>   {if $result.pregOverAge40 > 0 }{$result.pregOverAge40}{else} 0 {/if}</td>
            </tr>
        </tbody>
    </table>

</div>