
<!-- END CONTENT -->
<div class="modal-dialog modal-scroll wds70 fsprint fsinvoice" >
    <div class="modal-content fsinvoice">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            <h4 class="modal-title"> </h4>
        </div>
        <div class="modal-body">
            <div class="scroller" data-always-visible="1" data-rail-visible1="1">
                <div class="row">
                    <div class="col-md-12">

                        <div class="col-xs-8 invoice-block hidden-print">
                            <a class="btn btn-lg blue hidden-print margin-bottom-5" id="printinvoivce">
                                Print <i class="fa fa-print"></i>
                            </a>
                        </div>

                        <div class="row">
                            <div class="col-md-12">

                                <!-- BEGIN PAGE CONTENT-->

                                <div class="invoice" id="adv_containter_invoice">
                                    <div class="row invoice-logo">
                                        <div class="col-xs-6 invoice-logo-space">
                                            <img src="{$path}/_assets/admin/pages/media/invoice/logo.png" class="img-responsive" alt=""/>
                                        </div>
                                        <div class="col-xs-6">
                                            <p><span class="muted">
                                                    #{$billdetails->invoicenum} / {$billdetails->invoicedate}
                                                </span>
                                                <span class="muted">
                                                    {$billdetails->suppliers} </span>
                                            </p>
                                        </div>
                                    </div>
                                    <hr/>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <table class="table table-striped table-hover">
                                                <thead>
                                                    <tr>
                                                        <th>
                                                            #
                                                        </th>
                                                        <th>
                                                            Item
                                                        </th>
                                                        <th class="hidden-480">
                                                            Quantity
                                                        </th>
                                                    </tr>
                                                </thead>
                                                <tbody>

                                                    {assign var=i value=1}
                                                    {foreach $drugsinbill as $med}

                                                    <tr>
                                                        <td>
                                                            {$i}
                                                        </td>
                                                        <td>
                                                            {$med->ddetails->drugname}
                                                        </td>
                                                        <td class="hidden-480">
                                                            {$med->amount}
                                                        </td>
                                                    </tr>

                                                    {capture assign=i}{$i+1}{/capture}
                                                    {/foreach}
                                                </tbody>
                                                </tfoot>
                                            </table>
                                        </div>
                                    </div>

                                </div>

                                <!-- END PAGE CONTENT-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" data-dismiss="modal" class="btn default hidden-print">Close</button>

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