<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">


        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->


        <div class="portlet box green tabbable">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-gift"></i>All Prescriptions
                </div>
            </div>
            <div class="portlet-body">
                <div class=" portlet-tabs">
                    <ul class="nav nav-tabs">
                        <li class="active">
                            <a href="#portlet_tab2_3" data-toggle="tab" aria-expanded="true">
                                New Prescriptions</a>
                        </li>
                        <li class="">
                            <a href="#portlet_tab2_2" data-toggle="tab" aria-expanded="false">
                                Cashed Prescriptions </a>
                        </li>

                    </ul>
                    <div class="tab-content">

                        <div class="tab-pane" id="portlet_tab2_2">

                            <div class="portlet light bg-inverse">

                                <table class="table" >
                                    <thead>
                                        <tr>
                                            <th>Doctor Name</th>
                                            <th>Patient Name</th>

                                            <th>Receipt Date</th>

                                        </tr>
                                    </thead>
                                    <tbody>

                                        {foreach $allreceipt as $datarow}

                                        {if $datarow->status eq 1}
                                        <tr>
                                            <td>{$datarow->namedoc}</td>
                                            <td>{$datarow->patientname}</td>

                                            <td>{$datarow->rect_date}</td>
                                            <td>

                                            </td>
                                        </tr>
                                        {/if}

                                        {/foreach}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="tab-pane active" id="portlet_tab2_3">
                            <div class="portlet light bg-inverse">

                                <table class="table" >
                                    <thead>
                                        <tr>
                                            <th>Doctor Name</th>
                                            <th>Patient Name</th>
                                            <th>Receipt Date</th>
                                            <th class="wds1">Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>

                                        {foreach $allreceipt as $datarow}
                                        {if $datarow->status eq 0}
                                        <tr>
                                            <td>{$datarow->namedoc}</td>
                                            <td>{$datarow->patientname}</td>

                                            <td>{$datarow->rect_date}</td>
                                            <td>
                                                <a class="btn blue btn-xs" style=" float: left;" href="{$hosturl}/controllers/receipt.php?ac=showdetails&id={$datarow->id}" >
                                                    <i class="fa fa-eye"></i> Cashing

                                                </a>
                                            </td>
                                        </tr>
                                        {/if}

                                        {/foreach}
                                    </tbody>
                                </table>
                            </div>

                        </div>

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












    <!-- END PAGE CONTENT-->
</div>

<!-- END CONTENT -->



