<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-users"></i>edd
                        </div>
                    </div>
                    <div class="portlet-body all">
                        <input type="hidden" id="reportPage" value="1"/>
                        <input type="hidden" id="tdate" value="{$today}">
                        <input type="hidden" id="controllName" value="edd"/>
                        <input type="hidden" id="controllname" value="edd"/>
                        <!--Begin Semen-->

                        <div class="row">
                            <div class="row clinick posre">
                                <div class="col-md-2">

                                </div>
                                 <div class="col-md-2">
                                     <div class="form-group">
                                        <label for="form_control" >  البحث باسم المريض  </label>
                                        <select  class="form-control select2me searchall" id="patientids" >
                                            <option value=""></option>
                                            {foreach $allPatient as $patient}
                                            <option value="{$patient->id}" >{$patient->wifename}/{$patient->statusno}</option>
                                            {/foreach}
                                        </select>
                                    </div>

                                </div>
                                <div class="col-md-3">
                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                        <input type="text" class="form-control datepicker today txtc searchall" id="fromdates" value="{$today}"/>
                                        <label for="form_control_1">Date from: </label>
                                    </div>
                                </div>
                                <div class="col-md-3">
                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                        <input type="text" class="form-control datepicker tomoro txtc searchall" id="todates" value="{$today}"/>
                                        <label for="form_control_1">Date to: </label>
                                    </div>
                                </div>

                            </div>
                        </div>

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

                        <div class="portlet box white">
                            <div class="portlet-title">
                                <div class="actions">
                                    <a class="btn btn-default btn-sm" id="printe">
                                        <i class="fa fa-print"></i> Print </a>

                                </div>
                            </div>

                            <div class="portlet-body form" id="expectedDiv" style="margin: 0px 8px;">
                                <table class="table table-hover portlet light bg-inverse" id="controllpropr">
                                    <thead>
                                        <tr>
                                            <th  width="5%">No.</th>
                                            <th width="15%">
                                                Patient Name
                                            </th>
                                            <th width="15%">
                                                tel
                                            </th>
                                            <th width="5%">w</th>
                                            <th width="15%">EDD</th>
                                            <th width="15%">Risk</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        {assign var="i" value="1"}
                                        {foreach $allData as $data}
                                        <tr class="odd gradeX">
                                            <td >{$i}</td>
                                            <td>
                                                <a href="{$hosturl}/controllers/patienthistory.php?ac=show&patientid={$data->patientid}" target="_new">{$data->info->wifename}</a>
                                            </td>
                                            <td>
                                               {$data->info->mobile} - {$data->info->phone}
                                            </td>
                                            <td>
                                                {$data->week}
                                            </td>
                                            <td>
                                                {$data->sheetedd}
                                            </td>
                                            <td>
                                                {$data->info->risk}
                                            </td>
                                        </tr>
                                        {assign var="i" value={$i+1}}
                                        {/foreach}
                                    </tbody>
                                </table>
                            </div>
                        </div>

                    </div>

                </div>

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

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

<div id="long" class="modal fade modal-scroll" tabindex="-1" data-replace="true">
    <div class="modal-dialog wds75">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close hidden-print" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title"></h4>
            </div>
            <div class="modal-body printtable" id="printd">
                <center><h4 class="modal-title">edd Date</h4></center>
                <table class="table table-hover portlet light bg-inverse tbl2prnt">
                    <thead>
                        <tr>
                            <th  width="5%">No.</th>
                            <th width="15%">
                                                Patient Name
                                            </th>
                                            <th width="15%">
                                                tel
                                            </th>
                                            <th width="5%">w</th>
                                            <th width="15%">edd</th>
                                            <th width="15%">Risk</th>
                        </tr>
                    </thead>
                     <tbody>
                                        {assign var="i" value="1"}
                                        {foreach $allData as $data}
                                        <tr class="odd gradeX">
                                            <td >{$i}</td>
                                            <td>
                                                <a href="{$hosturl}/controllers/patienthistory.php?ac=show&patientid={$data->patientid}" target="_new">{$data->info->wifename}</a>
                                            </td>
                                            <td>
                                               {$data->info->mobile} - {$data->info->phone}
                                            </td>
                                            <td>
                                                {$data->week}
                                            </td>
                                            <td>
                                                {$data->sheetedd}
                                            </td>
                                            <td>
                                                {$data->info->risk}
                                            </td>
                                        </tr>
                                        {assign var="i" value={$i+1}}
                                        {/foreach}
                                    </tbody>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn hidden-print">Close</button>
                <button type="button" id="print1" class="btn red hidden-print">print</button>
            </div>
        </div>
    </div>
</div>
