            <div class="row profile">
                <div class="col-md-12">
                    <!--BEGIN TABS-->
                    <div class="tabbable tabbable-custom tabbable-full-width">
                        <div id="response_msg"></div>
                         
                        <div id="add_admin_remarks" class="modal fade" tabindex="-1" 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">Add Admin Remarks</h4>
                                    </div>
                                    <form id="add_expense_admin_remarks" class="form-horizontal" method="post">
                                        <input type="hidden" name="expense_id" value="<?php echo $expense_details->expense_id; ?>">
                                        <div class="modal-body">
                                            <div id="response_msg_modal"></div>
                                            <div class="scroller" style="height:100px" data-always-visible="1" data-rail-visible1="1">
                                                <div class="row">
                                                    <div class="col-md-12">
                                                        <div class="form-body">
                                                            <div class="row form-group">
                                                                <label class="col-md-3 control-label pull-left">Admin Remarks</label>
                                                                <div class="col-md-6">
                                                                    <textarea name="admin_remarks" id="admin_remarks" class="form-control"></textarea>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="modal-footer">
                                            <button type="button" data-dismiss="modal" class="btn default">Close</button>
                                            <button type="submit" class="btn green">Save changes</button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </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_3" data-toggle="tab"> Edit Details </a>-->
                            </li>
                            <?php if($this->session->userdata('user_type_id') == 1 && $expense_details->expense_status == 'Pending'){ ?>
                            <div class="pull-right">
                                <a class="btn default btn-sm green"  data-toggle="modal" href="<?php echo base_url().'change_this_approval_status?id='.$approval_details->id.'&type=Expense&status=Approved'; ?>"> Approve</a>
                                <a class="btn default btn-sm red"  data-toggle="modal" href="<?php echo base_url().'change_this_approval_status?id='.$approval_details->id.'&type=Expense&status=Rejected'; ?>"> Reject</a>
                            </div>
                            <?php } ?>
                        </ul>
                        <div class="tab-content">
                            <div class="tab-pane active" id="tab_1_1">
                                <div class="row">
                                    <div class="col-md-12">
                                        <?php if($this->session->userdata('user_type_id') == 1){ ?>
                                        <div class="pull-right">
                                            <a class="btn default btn-sm green-stripe" data-toggle="modal" href="#add_admin_remarks"> Add Admin Remarks</a>
                                        </div>
                                        <?php } ?>
                                        <h4>Expenses Details</h4>
                                        <hr>
                                        <div class="row">
                                            <div class="col-md-offset-1 col-md-10">
                                                <table class="table table-hover table-bordered table-striped">
                                                    <tr>
                                                        <td>
                                                            <strong>Expense ID</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $expense_details->expense_id; ?>
                                                        </td>
                                                        <td>
                                                            <strong>Date</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $expense_details->date; ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Expense Type</strong>
                                                        </td>
                                                        <td>
                                                            <?php 
                                                            if($expense_details->expense_type == 'Dxb'){
                                                                echo 'Dxb Expense';
                                                            }else if($expense_details->expense_type == 'Box'){
                                                                echo 'Box Expense';
                                                            }else{
                                                                echo '-';
                                                            } ?>
                                                        </td>
                                                        <td>
                                                            <strong>Category Name</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $expense_details->category_name; ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Category Description</strong>
                                                        </td>
                                                        <td colspan="3">
                                                            <?php echo $expense_details->category_description; ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Payment Method</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $expense_details->payment_method; ?>
                                                        </td>
                                                        <td>
                                                            <strong>Payment Amount</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo 'Rs. '.number_format($expense_details->amount,2,'.',','); ?>
                                                        </td>
                                                    </tr>
                                                    
                                                    <?php if($expense_details->payment_method == 'Cheque'){ ?>
                                                    <tr>
                                                        <td>
                                                            <strong>Cheque Issued Bank Name</strong>
                                                        </td>
                                                        <td>
                                                            <?php 
                                                            $cheque_account_details = $this->admin_db->get_account_details_by_id($expense_details->account_id);
                                                            echo $cheque_account_details->bank_name; 
                                                            ?>
                                                        </td>
                                                        <td>
                                                            <strong>Cheque Issued Account Number</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $cheque_account_details->account_number; ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Cheque Number</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $expense_details->cheque_number; ?>
                                                        </td>
                                                        <td>
                                                            <strong>Cheque Deposit Date</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $expense_details->cheque_deposit_date; ?>
                                                        </td>
                                                    </tr>
                                                    <?php } ?>
                                                    
                                                    <?php if($expense_details->payment_method == 'Bank Transfer'){ ?>
                                                    <tr>
                                                        <td>
                                                            <strong>Transfered From Bank Name</strong>
                                                        </td>
                                                        <td>
                                                            <?php 
                                                            $transfered_from_account_details = $this->admin_db->get_account_details_by_id($expense_details->account_id);
                                                            echo $transfered_from_account_details->bank_name; 
                                                            ?>
                                                        </td>
                                                        <td>
                                                            <strong>Transfered From Account Number</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $transfered_from_account_details->account_number; ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Transfered To Bank Name</strong>
                                                        </td>
                                                        <td>
                                                            <?php 
                                                            $transfered_to_bank_details = $this->admin_db->get_bank_by_id($expense_details->third_party_bank_id);
                                                            echo $transfered_to_bank_details->bank_name; 
                                                            ?>
                                                        </td>
                                                        <td>
                                                            <strong>Transfered To Account Number</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $expense_details->third_party_account_number; ?>
                                                        </td>
                                                    </tr>
                                                    <?php } ?>
                                                    
                                                    <?php if($expense_details->payment_method == 'Bank Deposit'){ ?>
                                                    <tr>
                                                        <td>
                                                            <strong>Deposited To Bank Name</strong>
                                                        </td>
                                                        <td>
                                                            <?php 
                                                            $transfered_to_bank_details = $this->admin_db->get_bank_by_id($expense_details->third_party_bank_id);
                                                            echo $transfered_to_bank_details->bank_name; 
                                                            ?>
                                                        </td>
                                                        <td>
                                                            <strong>Deposited To Account Number</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $expense_details->third_party_account_number; ?>
                                                        </td>
                                                    </tr>
                                                    <?php } ?>
                                                    
                                                    <tr>
                                                        <td>
                                                            <strong>Expense Status</strong>
                                                        </td>
                                                        <td>
                                                            <?php
                                                            if($expense_details->expense_status == 'Approved'){
                                                                echo '<span class="label label-success">Approved</span>';
                                                            }else if($expense_details->expense_status == 'Pending'){
                                                                echo '<span class="label label-warning">Pending</span>';
                                                            }else if($expense_details->expense_status == 'Rejected'){
                                                                echo '<span class="label label-danger">Rejected</span>';
                                                            }
                                                            ?>
                                                        </td>
                                                        <td>
                                                            <strong>Expense Description</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $expense_details->expense_description; ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Admin Remarks</strong>
                                                        </td>
                                                        <td colspan="3">
                                                            <?php echo $expense_details->admin_remarks; ?>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <!--end col-md-10-->
                                        </div>
                                        <!--end row-->   
                                    </div>
                                </div>
                            </div>
                            <!--tab_1_2-->
                            <div class="tab-pane" id="tab_1_3">
                                <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> Item 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_expense_category" class="form-horizontal" method="post" enctype="multipart/form-data"  novalidate="novalidate">
                                                        <input type="hidden" name="category_id" id="category_id" class="form-control" value="<?php echo $category_details->id; ?>"/>
                                                        <div class="form-body">
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label pull-left">Category Name</label>
                                                                <div class="col-md-6">
                                                                    <input type="text" name="category_name" id="category_name" class="form-control" value="<?php echo $category_details->category_name; ?>"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label pull-left">Description</label>
                                                                <div class="col-md-6">
                                                                    <textarea name="description" id="description" class="form-control"><?php echo $category_details->description; ?></textarea>
                                                                </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"> 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>