<div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  id="casesModal">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title"> cases </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form action="" method="post" class="form-horizontal emptyform">
                        <div class="form-body">
                            <!------===========================================------->
                            <table class="table table-bordered table-striped table-hover rtl " >
                                <thead>
                                    <tr>
                                        <th>م  </th>
                                        <th>رقم الحالة </th>
                                        <th>إسم الزوجة </th>
                                        <th>التاريخ </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {assign var=m value=1}
                                    {foreach  $cases as $case}
                                    <tr>
                                        <td>{$m}</td>
                                        <td>{$case.statusno}</td>
                                        <td>
                                            <a  target="_blank" 
                                                href="{$hosturl}/controllers/embryoslab.php?ac=edit&id={$case.id}&patientid={$case.patient_id}">
                                                {$case.wifename}
                                            </a>
                                        </td>
                                        <td>{$case.visitdate}</td>
                                    </tr>
                                    {capture assign=m}{$m+1}{/capture}
                                    {/foreach}
                                </tbody>
                            </table>
                            <!------===========================================------->

                            <div class="modal-footer">
                                <button type="button" id="amountcloseinput"   class="btn default" data-dismiss="modal">Close</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
    </div>
</div>