<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th><input type="checkbox" class="selectall"> All</th>
            <th>S.No</th>
            <th>Book.Ref.No.</th>
            <th>Invoice No</th>
            <th>Bill Date</th>
            <th>Type</th>
            <th>Name</th>
            <th>Total</th>
            <th>Advance</th>
            <th>Balance</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php
        //echo '<pre>';print_r($billListing);//die();
        if ($billListing > 0) {
            $i = 1;
            foreach ($billListing as $listing) {
                ?>
                <tr>
                    <td><input type="checkbox" class="check" rel="<?php echo $listing['id']; ?>" rel1="<?php echo $listing['user_id']; ?>"></td>
                    <td><?php echo $i; ?></td>
                    <td><?php echo $listing['reference_number']; ?></td>
                    <td><?php echo $listing['invoice_number']; ?></td>
                    <td><?php echo date('Y-m-d H:i:s', strtotime($listing['AddedTime'])); ?></td>
                    <td><?php echo $listing['user_type']; ?></td>
                    <td><?php echo $listing['username']; ?></td>
                    <td><i class="fa fa-inr"></i><?php echo $listing['total_price']; ?> </td>
                    <td><i class="fa fa-inr"></i><?php echo $listing['booking_amt_paid']; ?> </td>
                    <td><i class="fa fa-inr"></i><?php echo $listing['booking_amt_balance']; ?> </td>
                    <td><?php echo $listing['billing_status']; ?></td>
                    <td>
                        <div class="action-buttons">
                            <a class="blue" href="#" title="View Bill"> <i class="ace-icon fa fa-search-plus bigger-130" ></i> </a>
                            <a class="red" href="#" title="Edit Bill"> <i class="ace-icon fa fa-edit iconsize" ></i> </a>
                            <a class="red" href="javascript: void(0);"  onclick="generateParticularVoucher('<?php echo $listing['id']; ?>')" title="Add Voucher"> <i class="ace-icon fa fa-files-o bigger-130" ></i> </a>
                        </div>
                    </td>
                </tr>
                <?php
                $i++;
            }
        } else {
            ?>
            <tr><td colspan="11" style="text-align: center;">No Records Found</td></tr>
        <?php } ?>
    </tbody>
</table>