<div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  
     id="waitingListModel">
    <div class="modal-dialog wds75">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title"> Waiting List </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form  method="post" class="form-horizontal  emptyform" >
                        <div class="form-body all" >
                            <!------===========================================------->
                            <div class="form-group">
                                <div class="col-md-12">

                                </div>
                                <div class="col-md-12">
                                    <table cellspacing="10" width="100%" class="rtl" >
                                        <thead>
                                            <tr>
                                                <th class="wds5 txtc">م</th>

                                                {if $programview  == 1} 
                                                <th class="txtc">اسم المريضة</th>
                                                <th class="wds5 txtc">رقم الحالة</th>
                                                <th class="txtc"> اسم الزوج </th>  
                                                {else}
                                                <th class="txtc">اسم المريض</th>
                                                <th class="wds5 txtc">رقم الحالة</th>
                                                {/if}
                                                <th class="txtc"> العنوان </th>
                                                <th class="wds10 txtc"> الهاتف  </th>
                                                <th class="txtc"> نوع الكشف </th>
                                                <th class="wds10 txtc"> تاريخ الحجز  </th>
                                                <th class="wds10 txtc"> تاريخ الإضافة   </th>
                                                <th class="txtc"> المستخدم  </th>
                                                <th class="txtc">  نقل لحجوزات اليوم  </th>
                                                <th class="txtc"> حذف   </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            {assign var=i value=1}
                                            {foreach $allvisit as $row}
                                            <tr>
                                                <td class="txtc"> {$i}</td>
                                                <td class="txtc"> {$row->patientName}</td>
                                                <td class="txtc"> {$row->patientstatusno}</td>
                                                {if $programview  == 1} <td class="txtc"> {$row->husbandname}</td>  {/if}
                                                <td class="txtc"> {$row->address}</td>
                                                <td class="txtc"> {$row->phone}</td>
                                                <td class="txtc">{$row->detection}</td>
                                                <td class="txtc"> {$row->visitdate}</td>
                                                <td class="txtc"> {$row->createdate}</td>
                                                <td class="txtc"> {$row->user_name}</td>
                                                <td class="txtc">
                                                    <a class="updatevisitAjax bg-green dltbtn"  data-date="1" 
                                                       data-id="{$row->id}"   data-link="visits" > <i class="fa fa-pencil"></i>
                                                    </a>
                                                </td>
                                                <td class="txtc">
                                                    <a class="updatevisitAjax bg-red dltbtn" 
                                                       data-id="{$row->id}"   data-link="visits"> <i class="fa fa-close"></i>
                                                    </a>
                                                </td>
                                            </tr>
                                            {capture assign=i}{$i+1}{/capture}
                                            {/foreach}
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button" id="amountcloseinput"   class="btn default wds15" data-dismiss="modal">Close</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
    </div>
</div>


