<div class="portlet box purple">
    <div class="portlet-title">
        <div class="caption">Present History </div>
        <div class="actions"></div>
        <div class="tools">
            <a href="#" class="collapse" title="تصغير / تكبير"></a>
        </div>
    </div>
    <div class="portlet-body">
        <div class="row">
            <div id="ultrasoundgynaDiv">
                <div class="row">
                    <div class="portlet-body form" >
                        <form>
                            <div class="form-body">
                                <table>
                                    <caption>           Complaint Analysis        </caption>
                                    <tbody>
                                        <tr>
                                            <td colspan="2">
                                                <select multiple="" size="1" class="form-control select2me complaint_analysis updateDiagnosis"
                                                        id="complaint_analysis"   data-id="{$obstetric_case->id}" data-colName="complaint_analysis" 
                                                        data-tableName="obstetric_case">
                                                    <option value="">choose</option>
                                                    {foreach $complaint_analysis as $data}
                                                    <option value="{$data->id}" {if $data->id|in_array:$obstetric_case->complaint_analysis}selected="selected"{/if}>{$data->name}</option>
                                                    {/foreach}
                                                    <option value="-1" class="addDiagnosis">Add</option>
                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                </select>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th class="wds16"> Note   :   </th>  
                                            <td>
                                                <input type="text" class="form-control  updateElement txtc" 
                                                       data-tableName="obstetric_case" data-colName="complaint_analysis_note" 
                                                       data-id="{$obstetric_case->id}"   value="{$obstetric_case->complaint_analysis_note}"/>
                                            </td>
                                        </tr>
                                </table>

                                <table>
                                    <caption>           Symptoms of High Risk Pregnancy (Warning Symptoms)       </caption>
                                    <tbody>
                                        <tr>
                                            <td colspan="2">
                                                <select multiple="" size="1" class="form-control select2me symptoms updateDiagnosis"
                                                        id="symptoms"   data-id="{$obstetric_case->id}" data-colName="symptoms" 
                                                        data-tableName="obstetric_case">
                                                    <option value="">choose</option>
                                                    {foreach $symptoms as $data}
                                                    <option value="{$data->id}" {if $data->id|in_array:$obstetric_case->symptoms}selected="selected"{/if}>{$data->name}</option>
                                                    {/foreach}
                                                    <option value="-1" class="addDiagnosis">Add</option>
                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                </select>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th class="wds16"> Note   :   </th>  
                                            <td>
                                                <input type="text" class="form-control  updateElement txtc" 
                                                       data-tableName="obstetric_case" data-colName="symptoms_note" 
                                                       data-id="{$obstetric_case->id}"   value="{$obstetric_case->symptoms_note}"/>
                                            </td>
                                        </tr>
                                </table>

                                <table>
                                    <caption>           Symptoms of Approaching Labor    </caption>
                                    <tbody>
                                        <tr>
                                            <td colspan="2">
                                                <div class="col-md-12">
                                                    <div class="md-checkbox-inline">
                                                        <div class="md-checkbox">
                                                            <input type="checkbox" id="lightening"  data-id="{$obstetric_case->id}"  
                                                                   class="md-check updateElementCheck" value="1"  
                                                                   data-colName="lightening" data-tableName="obstetric_case"
                                                                   {if  $obstetric_case->lightening == 1 } checked {/if}>
                                                            <label for="lightening">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                Lightening </label>
                                                        </div>

                                                        <div class="md-checkbox">
                                                            <input type="checkbox" id="pelvic_pressure"    data-id="{$obstetric_case->id}"
                                                                   class="md-check updateElementCheck" value="1"  
                                                                   data-colName="pelvic_pressure" data-tableName="obstetric_case"
                                                                   {if  $obstetric_case->pelvic_pressure == 1 } checked {/if}>
                                                            <label for="pelvic_pressure">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                Pelvic Pressure Symptoms</label>
                                                        </div>

                                                        <div class="md-checkbox">
                                                            <input type="checkbox" id="vaginal_discharge"    data-id="{$obstetric_case->id}"
                                                                   class="md-check updateElementCheck" value="1"  
                                                                   data-colName="vaginal_discharge" data-tableName="obstetric_case"
                                                                   {if  $obstetric_case->vaginal_discharge == 1 } checked {/if}>
                                                            <label for="vaginal_discharge">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                Vaginal Discharge </label>
                                                        </div>

                                                        <div class="md-checkbox">
                                                            <input type="checkbox" id="false_labor"    data-id="{$obstetric_case->id}"
                                                                   class="md-check updateElementCheck" value="1"  
                                                                   data-colName="false_labor" data-tableName="obstetric_case"
                                                                   {if  $obstetric_case->false_labor == 1 } checked {/if}>
                                                            <label for="false_labor">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                False Labor pains </label>
                                                        </div>

                                                        <div class="md-checkbox">
                                                            <input type="checkbox" id="true_labor"    data-id="{$obstetric_case->id}"
                                                                   class="md-check updateElementCheck" value="1"  
                                                                   data-colName="true_labor" data-tableName="obstetric_case"
                                                                   {if  $obstetric_case->true_labor == 1 } checked {/if}>
                                                            <label for="true_labor">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                True Labor Pains  </label>
                                                        </div>

                                                        <div class="md-checkbox"> 
                                                            <input type="checkbox" id="passage"   data-id="{$obstetric_case->id}" 
                                                                   class="md-check updateElementCheck" value="1"  
                                                                   data-colName="passage" data-tableName="obstetric_case"
                                                                   {if  $obstetric_case->passage == 1 } checked {/if}>
                                                            <label for="passage">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                Passage of Show </label>
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                </table>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>