<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>Expected Delivery
                        </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="expected"/>
                        <!--Begin Semen-->

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

                                </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" id="fromdate" value="{$today}"/>
                                        <label for="form_control_1">Date from: </label>
                                    </div>
                                </div>
                                <div class="col-md-2">

                                </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" id="todate" 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>No.</th>
                                            <th>
                                                Patient Name
                                            </th>
                                            <th>
                                                Patient Number
                                            </th>
                                            <th>
                                                Husband Name
                                            </th>
                                            <th>Expected delivery date</th>
                                            <th>Contact</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->statusno}
                                            </td>
                                            <td>
                                                {$data->info->husdandname}
                                            </td>
                                            <td>
                                                {$data->eed}
                                            </td>
                                            <td>
                                                {$data->info->mobile} - {$data->info->phone}
                                            </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">Expected Delivery Date</h4></center>
                <table class="table table-hover portlet light bg-inverse tbl2prnt">
                    <thead>
                        <tr>
                            <th width="1%">No.</th>
                            <th width="30%">
                                Patient Name
                            </th>
                            <th width="30%">
                                Husband Name
                            </th>
                            <th>Expected date</th>
                            <th>Conatact</th>
                        </tr>
                    </thead>
                    <tbody>
                        {assign var="i" value="1"}
                        {foreach $allData as $data}
                        <tr class="odd gradeX">
                            <td>{$i}</td>
                            <td>
                                {$data->info->wifename}
                            </td>
                            <td>
                                {$data->info->husdandname}
                            </td>
                            <td>
                                {$data->eed}
                            </td>
                            <td>
                                {$data->info->mobile} <br> {$data->info->phone}
                            </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>
