{if $case_summary == 1 }
<tr>
    <td class="wds35"> 
        <select  class="form-control  family_disease updateElement allupdateselect" data-val="" id="family_disease{$itr}" data-itr="{$itr}" select-tableName="phfamilydisease"  name="family_disease" data-colName="family_disease" data-id="{$phfamily_obj->id}" data-tableName="phfamily" >
            <option value="">choose</option>
            {foreach  $allphfamilydisease as $myallphfamilydisease}
            <option value="{$myallphfamilydisease->id}" >{$myallphfamilydisease->name} </option>
            {/foreach}
            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td class="wds25">
        <select  class="form-control family_relative  updateElement allupdateselect" data-val="" id="family_relative{$itr}" data-itr="{$itr}" select-tableName="phfamilyrelative"  name="family_relative" data-colName="family_relative" data-id="{$phfamily_obj->id}" data-tableName="phfamily" >
            <option value="">choose</option>
            {foreach  $allphfamilyrelative as $myallphfamilyrelative}
            <option value="{$myallphfamilyrelative->id}" >{$myallphfamilyrelative->name} </option>
            {/foreach}
            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement" placeholder="Note" name="familynote" data-colName="familynote"   data-id="{$phfamily_obj->id}" data-tableName="phfamily"/>
    </td>
    <td class="wds10"> 
        <input type="checkbox"   id="for_husband" value="1" class="updateElementCheck" 
               data-id="{$phfamily_obj->id}" data-tableName="phfamily" 
               data-colName="for_husband"  
               {if $phfamily_obj->for_husband  == 1 } checked {/if}>
    </td>
    <td class="wds5">
        <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="{$phfamily_obj->id}" 
           data-link="case_summary"  data-fn="del" data-tableName="phfamily" data-colName="del">
            <i class="fa fa-times"></i> </a>
    </td>
</tr>
{else}
<div>
    {if $ProgramesettingData->displaydoctorname eq 1}
    <div class="row ltr" >
        <div class="col-md-1">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <label class="control-label col-md-2 ">{$username}</label>
            </div>
        </div>
    </div>
    {/if}
    <div class="row ltr" >
        <div class="col-md-4">
            <div class="form-group">
                <!--<label class="control-label col-md-2 ls2">Disease</label>-->
                <select  class="form-control  family_disease updateElement allupdateselect" data-val="" id="family_disease{$itr}" data-itr="{$itr}" select-tableName="phfamilydisease"  name="family_disease" data-colName="family_disease" data-id="{$phfamily_obj->id}" data-tableName="phfamily" >
                    <option value="">choose</option>
                    {foreach  $allphfamilydisease as $myallphfamilydisease}
                    <option value="{$myallphfamilydisease->id}" >{$myallphfamilydisease->name} </option>
                    {/foreach}
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </div>
        </div>


        <div class="col-md-4">
            <div class="form-group">
                <!--<label class="control-label col-md-2 ls2">Relative</label>-->
                <select  class="form-control family_relative  updateElement allupdateselect" data-val="" id="family_relative{$itr}" data-itr="{$itr}" select-tableName="phfamilyrelative"  name="family_relative" data-colName="family_relative" data-id="{$phfamily_obj->id}" data-tableName="phfamily" >
                    <option value="">choose</option>
                    {foreach  $allphfamilyrelative as $myallphfamilyrelative}
                    <option value="{$myallphfamilyrelative->id}" >{$myallphfamilyrelative->name} </option>
                    {/foreach}
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </div>
        </div>


        <div class="col-md-3">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <div class="form-group form-md-line-input form-md-floating-label has-info">
                    <input type="text" class="amrpop form-control updateElement" placeholder="Note" name="familynote" data-colName="familynote"   data-id="{$phfamily_obj->id}" data-tableName="phfamily"/>
                </div>
            </div>
        </div>

        <div class="col-md-1" style="padding-left: 3%;" >
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <input type="checkbox"   id="for_husband" value="1" class="updateElementCheck" 
                       data-id="{$phfamily_obj->id}" data-tableName="phfamily" 
                       data-colName="for_husband"  
                       {if $phfamily_obj->for_husband  == 1 } checked {/if}>
                <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="{$phfamily_obj->id}" data-tableName="phfamily"><i class="fa fa-close"></i></button>
            </div>

        </div>
    </div>

</div>
{/if}