
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12 clinick invz" id="gprinModel">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->

                <div class="portlet box grey-cascade">
                    <div class="portlet-title">
                        <div class="caption fright"> بيانات الزيارة  </div>
                        <div class="actions"></div>
                        <div class="tools fleft">
                            <a href="#" class="collapse" title="تصغير / تكبير"></a>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <div class="row">
                            <div>
                                <div class="row">
                                    <div class="portlet-body form" >
                                        <div class="form-body">
                                            <table  class="table table-bordered rtl">
                                                <caption class="txtc"></caption>
                                                <thead>
                                                    <tr> </tr>
                                                    <tr>
                                                        <th class="txtc wds9">تاريخ الزيارة     </th>
                                                        <td class="txtc wds9">{$visit.visitdate}</td>
                                                        <th class="txtc wds9"> نوع الكشف </th>
                                                        <td>{$visit.visitDetect}</td>
                                                        <th class="txtc wds9"> القسم </th>
                                                        <td>{$visit.visitDept}</td>
                                                        <th class="txtc wds9"> الطبيب    </th>   
                                                        <td>{$visit.visitDoctor}</td>
                                                        <th class="txtc wds9"> المنطقة   </th>   
                                                        <td>{$visit.visitRegion} -  {$visit.visitSubRegion}</td>
                                                    </tr>
                                                </thead>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>

                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-user"></i>Follow Up 
                        </div>
                        <div class="actions">
                            <a href="#" class="btn btn-default btn-sm" id="addVisitFollow" data-visitId="{$visit.id}"> Add </a>
                        </div>
                    </div>
                    <div class="portlet-body all">
                        <input type="hidden" id="controllName" value="regions"/>
                        <input type="hidden" id="regions" value="1"/>
                        <div class="row">
                            <div id="ultrasoundgynaDiv">
                                <div class="row">
                                    <div class="portlet-body form">
                                        <div class="form-body"  id="followsContainer">

                                            {assign var=i value=1}
                                            {foreach $visits_follows as $data}

                                            <table  class="table table-bordered rtl">
                                                <tbody  >
                                                    <tr>
                                                        <th class="txtc wds8">المستخدم    </th>
                                                        <td>{$data.userName}</td>

                                                        <th class="txtc wds8">التاريخ    </th>
                                                        <td class="wds8">{$data.followDate}</td>

                                                        <th class="txtc wds8"> الوقت   </th>
                                                        <td class="wds8">{$data.followTime}</td>

                                                        <th class="txtc wds9">المصدر    </th>
                                                        <td class="wds15">
                                                            <div class="col-md-6">
                                                                <div class="md-radio-list">
                                                                    <div class="md-radio">
                                                                        <input type="radio" id="comment_from0_{$data.id}"  value="0" 
                                                                               class="md-radiobtn updateElement"  name="comment_from_{$data.id}" 
                                                                               data-colName="comment_from"  data-tableName="visits_follows"
                                                                               data-id="{$data.id}"  {if  $data.comment_from != 1 }  checked {/if} >
                                                                        <label for="comment_from0_{$data.id}">
                                                                            <span></span>
                                                                            <span class="check"></span>
                                                                            <span class="box"></span>
                                                                            Patient</label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-6">
                                                                <div class="md-radio-list">
                                                                    <div class="md-radio">
                                                                        <input type="radio" id="comment_from1_{$data.id}"  value="1" 
                                                                               class="md-radiobtn updateElement"  name="comment_from_{$data.id}" 
                                                                               data-colName="comment_from"  data-tableName="visits_follows"
                                                                               data-id="{$data.id}"   {if  $data.comment_from == 1 }  checked {/if} >
                                                                        <label for="comment_from1_{$data.id}">
                                                                            <span></span>
                                                                            <span class="check"></span>
                                                                            <span class="box"></span>
                                                                            Doctor </label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </td>
                                                    </tr>

                                                    <tr>
                                                        <th class="txtc">التعليق    </th>
                                                        <td colspan="7">
                                                            <textarea class="form-control txtc updateElement" rows="2" data-id="{$data.id}" 
                                                                      data-colName="comment" data-tableName="visits_follows" placeholder="ملاحظات"
                                                                      data-toggle="popover" data-trigger="hover" data-placement="bottom"  
                                                                      data-content="{$data.comment}">{$data.comment}
                                                            </textarea>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                            <hr>
                                            {capture assign=i}{$i+1}{/capture}
                                            {/foreach}

                                        </div>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>   
    </div> 
</div>