{if $type != 2 }
<div class="row">
    <div class="portlet grey-cascade box">
        <div class="portlet-title">
            <div class="caption">Fresh  </div>
        </div>
        <div class="portlet-body">
            <div class="form-body">
                <div class="row">
                    <table class="table table-striped table-hover table-bordered">
                        <thead>
                            <tr>
                                <th rowspan="2" class="wds1">  </th>
                                <th rowspan="2">     Date </th>
                                {if $showName == 1 } <th rowspan="2"> Name</th> <th rowspan="2">     P. No </th>  {/if}
                                <th rowspan="2">     LMP </th>
                                <th rowspan="2">     Protocol +  TTT </th>
                                <th colspan="2">     Trigger </th>
                                <th rowspan="2"  class="wds7">     Follicles Last Size </th>
                                <th colspan="3">     Ovums </th>
                                <th rowspan="2">     Semen </th>
                                <th rowspan="2">     Embryos </th>
                                <th rowspan="2">     Groups </th>
                                <th rowspan="2">     Preg. </th>
                                <th rowspan="2">     Notes </th> 
                            </tr>
                            <tr>
                                <th>     Name </th>
                                <th>     Day </th>
                                <th>     MI </th>
                                <th>     MII </th>
                                <th>     G.V </th>
                            </tr>
                        </thead>
                        <tbody>
                            {assign var=i value=1}
                            {foreach $icsi_fresh  as $record }
                            <tr class="odd ">
                                <td>{$i}</td>
                                <td>{$record.try_date}</td>
                                {if $showName == 1 } 
                                <td>
                                    <a href="{$hosturl}/controllers/gyna.php?ac=index&patientid={$record.patientid}" target="_new">
                                        {$record.wifename}
                                    </a>
                                </td>
                                <td>{$record.statusno}</td>
                                {/if}
                                <td>{$record.lmp}</td>
                                <td> {$record.icsi_protocol}</td>
                                <td> {$record.icsi_trigname}</td>
                                <td> {$record.icsi_trigday}</td>
                                <td> {$record.last_size} </td>
                                <td> {$record.mi}</td>
                                <td> {$record.mii}</td>
                                <td> {$record.gv}</td>
                                <td>{$record.semen}</td>
                                <td> {$record.embryos}</td>
                                <td> {$record.groups}</td>
                                <td> {if $record.pregnancy == 1 } Yes {else}  No{/if}</td>
                                <td>{$record.notes}</td>
                            </tr>
                            {capture assign=i}{$i+1}{/capture}
                            {/foreach}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
{/if}


{if $type != 1 }
<div class="row">
    <div class="portlet grey-cascade box">
        <div class="portlet-title">
            <div class="caption">Frozen    </div>
        </div>
        <div class="portlet-body">

            <div class="form-body">
                <div class="row">
                    <table class="table table-striped table-hover table-bordered">
                        <thead>
                            <tr>
                                <th rowspan="2" class="wds1">  </th>
                                <th rowspan="2">     Date </th>
                                {if $showName == 1 } <th rowspan="2">     Name </th>  <th rowspan="2">  P. No </th> {/if}
                                <th rowspan="2">     LMP </th>
                                <th rowspan="2">      TTT </th>
                                <th colspan="3">     Endometrium </th>
                                <th colspan="4">     Transfer </th>
                                <th rowspan="2">     Preg. </th>
                                <th rowspan="2">     Delivery </th>
                                <th rowspan="2">     Notes </th>
                            </tr>
                            <tr>
                                <th>     Size </th>
                                <th>     Shape </th>
                                <th>     Trig. Day </th>
                                <th>     Difficulty </th>
                                <th>     Location </th>
                                <th>     Cather </th>
                                <th>     No. </th>
                            </tr>
                        </thead>
                        <tbody>
                            {assign var=i value=1}
                            {foreach $icsi_frozen  as $record }
                            <tr class="odd ">
                                <td>{$i}</td>
                                <td>{$record.try_date}</td>
                                {if $showName == 1 } 
                                <td>
                                    <a href="{$hosturl}/controllers/gyna.php?ac=index&patientid={$record.patientid}" target="_new">
                                        {$record.wifename}
                                    </a>
                                </td>
                                <td>{$record.statusno}</td>
                                {/if}
                                <td>{$record.lmp}</td>
                                <td> {$record.ttt}</td>
                                <td> {$record.end_size}</td>
                                <td> {$record.end_shape}</td>
                                <td> {$record.end_trigg} </td>
                                <td> {$record.trans_diff}</td>
                                <td> {$record.trans_location}</td>
                                <td> {$record.trans_cather}</td>
                                <td>{$record.trans_no}</td>
                                <td> {if $record.pregnancy == 1 } Yes {else}  No{/if}</td>
                                <td> {$record.delivery}</td>
                                <td>{$record.notes}</td>
                            </tr>
                            {capture assign=i}{$i+1}{/capture}
                            {/foreach}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
{/if}

