<meta charset="utf8">
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12 ">
                <div class="todayvisit" >
                    <div class="portlet box blue">
                        <div class="portlet-title">
                            <div class="caption fright">
                                الحجوزات
                            </div>
                            <div class="tools fleft">
                                <a href="#" class="collapse" title="تصغير / تكبير"></a>
                                <a class="fff bold" 
                                   href="{$hosturl}/controllers/{$controllname}.php?ac=getalldepts">إضافة حجز   </a>
                            </div>
                        </div>
                        <div class="portlet-body form">

                            <div class="table-toolbar">
                            </div>

                            <table class="table table-bordered table-striped table-hover rtl">
                                <thead>
                                    <tr>
                                        <th class="wds3 txtc">م</th>
                                        <th class="txtc">الطبيب</th>
                                        <th class="wds5 txtc"></th>
                                        <th class="wds3 txtc"> تعديل</th>
                                        <th class="wds3 txtc"> حذف</th>
                                    </tr>
                                </thead>
                                <tbody id="visitNew">
                                    {assign var=i value=1}
                                    {foreach $doctors as $row}
                                    <tr>
                                        <td> {$i}</td>
                                        <td> {$row->patientName}</td>

                                        <td> {$row->husbandname}</td>

                                        <td><a class=" bg-green dltbtn  editVisit" data-visitId="{$row->id}" id="editvisit{$row->id}">
                                                <i class="fa fa-pencil"></i>
                                            </a>
                                        </td>

                                        <td>
                                            <a class=" bg-red dltbtn deletevisitAjax"  data-today="0" id="deletevisit{$row->id}" data-id="{$row->id}" data-link="visits" data-fn="del">
                                                <i class="fa fa-close"></i>
                                            </a>
                                        </td>
                                    </tr>
                                    {capture assign=i}{$i+1}{/capture}
                                    {/foreach}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>
</div>


<input type="hidden" id="controllName" value="reserve_clinic"/>