<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false" 
     id="patVisitsModel" style="min-width:1000px;">
    <div class="modal-dialog  modal-lg wds90">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close closeDrug" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title txtc"> {$patientName} </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form class="form-horizontal" role="form" action="" method="post" id="gynaDrugs" enctype="multipart/form-data">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="portlet blue-hoki box">

                                    <div class="portlet-body  scroll_y showNum isheight" style="padding: 25px 7px 0  7px;">
                                        <table class="table table-striped table-hover table-bordered"  id="repTable"
                                               style="direction: rtl;">
                                            <thead>
                                                <tr>
                                                    <th>م</th>
                                                    <th class="wds10">تاريخ الزيارة </th>
                                                    <th>وقت الوصول   </th>
                                                    <th>وقت الحضور  </th>
                                                    <th>وقت الكشف  </th>
                                                    {if $programesetting->system_lang  == 1}     <th>المريض</th>  {/if}
                                                    <th>نوع الكشف </th>
                                                    <th>طبيب الزيارة   </th>
                                                    <th>  ملاحظات الزيارة   </th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {assign var=i value=1}
                                                {foreach $patRfcvisits as $row}
                                                <tr>
                                                    <td> {$i}</td>
                                                    <td> {$row.visitdate}</td>
                                                    <td>{$row.arrivedTime}   </td>
                                                    <td>{$row.recep_p_exit}   </td>
                                                    <td> {$row.kashf_enterance}  </td>
                                                    {if $programesetting->system_lang  == 1}    
                                                    <td> {if $row.for_husband eq 1} الزوج{else} الزوجه{/if}</td>
                                                    {/if}
                                                    <td> {$row.detect}</td>
                                                    <td>{$row.drName}</td>
                                                    <td>{$row.visitNote}</td>
                                                </tr>
                                                {capture assign=i}{$i+1}{/capture}
                                                {/foreach}
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


{literal}
<script type="text/javascript" >
    $('#repTable').dataTable({
        "pageLength": 15,
        "lengthMenu": [
            [15, 25, 50, 100, 150, -1],
            [15, 25, 50, 100, 150, "All"] // change per page values here
        ]
    });


</script>
{/literal}