            <div class="row profile">
                <div class="col-md-12">
                    <!--BEGIN TABS-->
                    <div class="tabbable tabbable-custom tabbable-full-width">

                        <div class="modal fade" id="customer_success_modal" tabindex="-1" role="basic" aria-hidden="true">
                            <div class="modal-dialog">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                                        <h4 class="modal-title">Success!</h4>
                                    </div>
                                    <div class="modal-body">
                                        Supplier Details Edited Successfully
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn green" data-dismiss="modal" onclick="window.location.reload()">Ok</button>
                                    </div>
                                </div>
                                <!-- /.modal-content -->
                            </div>
                            <!-- /.modal-dialog -->
                        </div>
                        
                        <div class="pull-right">
                            <a class="btn default green-stripe"  data-toggle="modal" href="#add_previous_debts"> Add Previous Debts</a>
                        </div>
                        <ul class="nav nav-tabs">
                            <li class="active">
                                <a href="#tab_1_1" data-toggle="tab"> Overview </a>
                            </li>
                            <li>
                                <a href="#tab_1_2" data-toggle="tab"> Account </a>
                            </li>
                        </ul>
                        <div class="tab-content">
                            <div class="tab-pane active" id="tab_1_1">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="row">
                                            <div class="col-md-offset-1 col-md-10">
                                                <table class="table table-hover table-bordered table-striped">
                                                    <tr>
                                                        <td>
                                                            <strong>Supplier ID</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $supplier_details->id; ?>
                                                        </td>
                                                        <td>
                                                            <strong>Supplier Name</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $supplier_details->supplier_name; ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Mobile Number</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $supplier_details->contact_number; ?>
                                                        </td>
                                                        <td>
                                                            <strong>Telephone Number</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $supplier_details->tel_number; ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Customer Status</strong>
                                                        </td>
                                                        <td>
                                                            <?php
                                                            if($supplier_details->status == 1){
                                                                echo '<span class="label label-success">Active</span>';
                                                            }else if($supplier_details->status == 2){
                                                                echo '<span class="label label-warning">Inactive</span>';
                                                            }else if($supplier_details->status == 3){
                                                                echo '<span class="label label-danger">Deleted</span>';
                                                            }
                                                            ?>
                                                        </td>
                                                        <td>
                                                            <strong>Created On</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $supplier_details->added_on; ?>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <!--end col-md-10-->
                                        </div>
                                        <!--end row-->  
                                        
                                        <h4>Account Details</h4>
                                        <hr>
                                        
                                        <div class="row">
                                            <div class="col-md-offset-2 col-md-8">
                                                <table class="table table-hover table-bordered table-striped" style="font-size: initial;">
                                                    
                                                    <tr>
                                                        <td>
                                                            <strong>Total Purchased Gold Amount</strong>
                                                        </td>
                                                        <td>
                                                            <strong><?php echo number_format($supplier_details->gold_tot_amount,3,'.',',').' g'; ?></strong>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Total Purchased Gold In LKR</strong>
                                                        </td>
                                                        <td>
                                                            <strong><?php echo 'Rs. '.number_format($supplier_details->cash_tot_amount,2,'.',','); ?></strong>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Total Paid Amount in LKR</strong>
                                                        </td>
                                                        <td>
                                                            <strong><?php echo 'Rs. '.number_format($supplier_details->paid_amount,2,'.',','); ?></strong>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Balance Amount in LKR</strong>
                                                        </td>
                                                        <?php 
                                                            $balance_amount = $supplier_details->balance_amount;
                                                            if($balance_amount > 0){
                                                                $col_colour_credit = 'background-color: #ff000085;';
                                                            }else{
                                                                $col_colour_credit = 'background-color: #03ff007d;';
                                                            }
                                                        ?>
                                                        <td style="<?php echo $col_colour_credit; ?>">
                                                            <strong><?php echo 'Rs. '.number_format($balance_amount,2,'.',','); ?></strong>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </div>
                                        <!--end row-->
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane" id="tab_1_2">
                                <div class="row profile-account">
                                    <div class="col-md-3">
                                        <ul class="ver-inline-menu tabbable margin-bottom-10">
                                            <li class="active">
                                                <a data-toggle="tab" href="#tab_1-1">
                                                <i class="fa fa-cog"></i> Supplier info </a>
                                                <span class="after">
                                                </span>
                                            </li>
                                        </ul>
                                    </div>
                                        <div class="col-md-9">
                                            <div class="tab-content">
                                                <div id="tab_1-1" class="tab-pane active">
                                                    <form id="edit_supplier" class="form-horizontal" method="post" enctype="multipart/form-data"  novalidate="novalidate">
                                                        <input type="hidden" name="supplier_id" id="supplier_id" class="form-control" value="<?php echo $supplier_details->id; ?>"/>
                                                        <div class="form-body">
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label pull-left">Supplier Name</label>
                                                                <div class="col-md-6">
                                                                    <input type="text" name="supplier_name" id="supplier_name" placeholder="Shaf & Co." class="form-control" value="<?php echo $supplier_details->supplier_name; ?>"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label pull-left">Mobile Number</label>
                                                                <div class="col-md-6">
                                                                    <input type="number" name="contact_num" id="contact_num" placeholder="0771234567" class="form-control" value="<?php echo $supplier_details->contact_number; ?>"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label pull-left">Telephone Number</label>
                                                                <div class="col-md-6">
                                                                    <input type="number" name="tel_number" id="tel_number" placeholder="0112123456" class="form-control" value="<?php echo $supplier_details->tel_number; ?>"/>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="form-actions fluid">
                                                            <div class="col-md-3"></div>
                                                            <div class="col-md-6">
                                                                <button type="submit" class="btn green" id="save_edit_user_details"> Submit </button>
                                                            </div>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                        </div>
                                        <!--end col-md-9-->
                                </div>
                            </div>
                            <!--end tab-pane-->
                        </div>
                    </div>
                    <!--END TABS-->
                </div>
            </div>
            <!-- END PAGE CONTENT-->
        </div>
    </div>
    <!-- END CONTENT -->
<!-- END QUICK SIDEBAR -->
</div>