        <div class="wrapper">
            <div class="container">
                <!-- Page-Title -->
                <div class="row">
                    <div class="col-sm-12">
                        <h4 class="page-title">Advance Voucher</h4>
                    </div>
                </div>

                <div class="row">
                    <div class="col-md-12">
                        <div class="panel panel-default">
                           
                            <div class="panel-body">
                                 <div class="clearfix">
                                    <div class="pull-left">
                                        <h3 class="logo invoice-logo"><?php if(isset($business)){ echo "<img src='".base_url().'assets/images/business/'.$business[0]['business_logo']."' alt='".$business[0]['business_name']."' />";} else {echo 'SalonPK';}?></h3>
                                    </div>

                                    <div class="pull-right">
                                        <h4>Voucher # <strong id="invoicenumber"><?php echo $voucher->voucher_number; ?></strong></h4>
                                    </div>

                                </div>

                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="pull-left m-t-10">
                                            <input name="customerid" id="customerid" type="hidden" value="<?php echo $voucher->customer_id; ?>"/>
                                            <input name="txtvoucherid" id="txtvoucherid" type="hidden" value="<?php echo $voucher->id_order_vouchers; ?>"/>
                                            <address>
                                            <strong><?php echo $voucher->customer_name; ?></strong><br>
                                            <abbr title="Phone">P:</abbr> <?php echo $voucher->customer_cell; ?>
                                            </address>
                                        </div>

                                        <div class="pull-right m-t-10">
                                            <p><strong>Voucher Date: </strong> <?php echo $voucher->formatted_voucher_date; ?></p>
                                        </div>

                                    </div><!-- end col -->

                                </div>

                                <!-- end row -->
                                <?php if(isset($voucher->voucher_heading)){?>
                                <div class="row">
                                    <div class="col-md-12">
                                        <h4><?php echo $voucher->voucher_heading; ?></h4>
                                    </div>
                                </div>
                                <?php }?>
                                <div class="row">

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

                                        <div class="">

                                            <?php if($voucher->type === 'amount'){ ?>
                                            <table class="table m-t-10" id="tblservices">
                                                <thead>
                                                    <tr>
                                                        <th>Voucher Type</th>
                                                        <th>Amount</th>
                                                        <th>Voucher Date</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <tr>
                                                        <td><?php echo ucwords($voucher->type); ?></td>
                                                        <td><?php echo ucwords($voucher->amount); ?></td>
                                                        <td><?php echo $voucher->voucher_date; ?></td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                            <?php } ?>
                                            
                                            <?php if($voucher->type === 'service'){ ?>
                                            <table class="table m-t-10" id="tblservices">
                                                <thead>
                                                    <tr>
                                                        <th class="hidden-sm hidden-xs">#</th>
                                                        <th class="hidden-xs">Item</th>
                                                        <th>Description</th>
<!--                                                        <th>Service Cost</th>
                                                        <th>Service Status</th>-->
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    
                                                    <?php $i =1; $ids = explode('|', $voucher->remaining_service_ids); 
                                                        foreach($services as $service){ ?>
                                                    
                                                    <tr>
                                                        <td class="hidden-sm hidden-xs"><?php echo $i; ?></td>
                                                        
                                                        <td class="hidden-xs"><?php echo $service->service_category; ?></td>
                                                        <td><?php echo $service->service_name; ?></td>
<!--                                                    <td><?php //echo $service->service_rate; ?></td>
                                                        <td><?php //echo in_array($service->id_business_services, $ids) ? 'Not Provided' : '<b>Provided</b> <i class="glyphicon glyphicon-ok"></i>'; ?></td>-->
                                                    </tr>
                                                    
                                                    <?php $i++; } ?>
                                                    
                                                </tbody>
                                            </table>
                                            <?php } ?>

                                        </div>

                                    </div>

                                </div>

                                <div class="row">
                                  <!-- <div class="col-md-6 col-sm-6 col-xs-6">
                                         <div class="clearfix m-t-40">
                                            <h5 class="small text-inverse font-600">PAYMENT TERMS AND POLICIES</h5>
                                            <small>
                                                <?php //echo $business[0]['payment_terms'];?>
                                            </small>
                                        </div>
                                    </div>-->

                                    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 ">
                                        
                                        <div class="pull-right" style="text-align:right">
                                            <b style="font-size: 16px;">Worth Service of:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo CURRENCY_CODE;?>. <?php echo $voucher->voucher_value;?></b><br>
                                            <b>Tax:</b>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo CURRENCY_CODE;?>. <?php echo $voucher->voucher_tax;?><br>
                                            <b>CC Fee:</b>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo CURRENCY_CODE;?>. <?php echo $voucher->voucher_cccharge;?><br>
                                            <hr>
                                            <b>Total Amount:</b>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo CURRENCY_CODE;?>. <?php echo $voucher->amount;?><br>
                                            <b>Unused Amount:</b>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo CURRENCY_CODE;?>. <?php echo $voucher->remaining_amount;?><br>
                                            <b>Validity:</b>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $voucher->formatted_valid_until;?>
                                        </div>
                                        
                                        <div class="clearfix"></div>

                                    </div>

                                </div>

                                <hr>

                                <div class="hidden-print">

                                    <div class="pull-right">

                                        <a href="javascript:window.print()" class="btn btn-inverse waves-effect waves-light" id="btnprint" ><i class="fa fa-print"></i></a>

                                    </div>

                                </div>

                            </div>

                        </div>



                    </div>



                </div>

                <!-- end row -->