<div id="error_msg" class="alert alert-danger hidden"> </div>
            <!--<div id="loader"></div>-->
            <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_una_admin_remarks" class="form-horizontal" method="post">
                                        <input type="hidden" name="una_id" value="<?php echo $una_details->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>
                        
                        <div class="modal fade" id="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">
                                        UNA 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>
                            <?php if($una_details->status == 2 || $una_details->status == 3){ ?>
                            <li>
                                <a href="#tab_1_2" data-toggle="tab"> Settle UNA </a>
                            </li>
                            <li>
                                <a href="#tab_1_3" data-toggle="tab"> Payments </a>
                            </li>
                            <li>
                                <a href="#tab_1_4" data-toggle="tab"> Edit UNA </a>
                            </li>
                            <?php } ?>
                            <?php if($this->session->userdata('user_type_id') == 1 && $una_details->status == 4){ ?>
                            <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=UNA Purchase&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=UNA Purchase&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>UNA 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>UNA ID</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $una_details->id; ?>
                                                        </td>
                                                        <td>
                                                            <strong>Date</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo date("d-m-Y", strtotime($una_details->date)); ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Creditor Name</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $creditor_details->creditor_name; ?>
                                                        </td>
                                                        <td>
                                                            <strong>Contact Numbers</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $creditor_details->contact_number.' / '.$creditor_details->tel_number; ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>UNA Amount</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo 'AED. '.number_format($una_details->una_amount,2,'.',','); ?>
                                                        </td>
                                                        <td>
                                                            <strong>UNA Rate</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo 'Rs. '.number_format($una_details->una_rate,2,'.',','); ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>LKR Amount</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo 'Rs. '.number_format($una_details->lkr_amount,2,'.',','); ?>
                                                        </td>
                                                        <td>
                                                            <strong>Recipient</strong>
                                                        </td>
                                                        <td>
                                                            <?php echo $una_details->recipient; ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Status</strong>
                                                        </td>
                                                        <td>
                                                            <?php
                                                            if($una_details->status == 1){
                                                                echo '<span class="label label-success">Payment Completed</span>';
                                                            }else if($una_details->status == 2){
                                                                echo '<span class="label label-warning">Payment Incomplete</span>';
                                                            }else if($una_details->status == 3){
                                                                echo '<span class="label label-danger">Payment Pending</span>';
                                                            }else if($una_details->status == 4){
                                                                echo '<span class="label label-info">Pending Approval</span>';
                                                            }else if($una_details->status == 5){
                                                                echo '<span class="label label-danger">Rejected</span>';
                                                            }
                                                            ?>
                                                        </td>
                                                        <td></td>
                                                        <td></td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Remarks</strong>
                                                        </td>
                                                        <td colspan="3">
                                                            <?php echo $una_details->remarks; ?>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <strong>Admin Remarks</strong>
                                                        </td>
                                                        <td colspan="3">
                                                            <?php echo $una_details->admin_remarks; ?>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <!--end col-md-10-->
                                        </div>
                                        <!--end row-->  
                                        
                                        <div class="row">
                                            <div class="col-md-12">
                                                <table class="table table-hover table-bordered table-striped" style="font-size: initial;">
                                                    <tr>
                                                        <td>
                                                            <strong>LKR Amount</strong>
                                                        </td>
                                                        <td>
                                                            <strong><?php echo 'Rs. '.number_format($una_details->lkr_amount,2,'.',','); ?></strong>
                                                        </td>
                                                        <td>
                                                            <strong>Paid Amount</strong>
                                                        </td>
                                                        <td>
                                                            <strong><?php echo 'Rs. '.number_format($una_details->paid_amount,2,'.',','); ?></strong>
                                                        </td>
                                                        <td>
                                                            <strong>Balance Amount</strong>
                                                        </td>
                                                        <?php 
                                                            $balance_amount = $una_details->bal_amount;
                                                            if($balance_amount > 0){
                                                                $col_colour = 'background-color: #ff000085;';
                                                            }else{
                                                                $col_colour = 'background-color: #03ff007d;';
                                                            }
                                                        ?>
                                                        <td style="<?php echo $col_colour; ?>">
                                                            <strong><?php echo 'Rs. '.number_format($balance_amount,2,'.',','); ?></strong>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane" id="tab_1_2">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="portlet box grey-cascade">
                                            <div class="portlet-title">
                                                <div class="caption">
                                                    <i class="fa fa-gift"></i>Settle UNA
                                                </div>
                                            </div>
                                            <div class="portlet-body form">
                                                <!-- BEGIN FORM-->
                                                <form id="save_settle_una" class="form-horizontal" method="POST" enctype="multipart/form-data">
                                                    <input type="hidden" name="una_id" id="una_id" class="form-control" value="<?php echo $una_details->id; ?>"/>
                                                    <input type="hidden" name="creditor_id" id="creditor_id" class="form-control" value="<?php echo $una_details->creditor_id; ?>"/>
                                                    <div class="form-body">
                                                        <div class="form-group">
                                                            <label class="control-label col-md-3">Date</label>
                                                            <div class="col-md-9">
                                                                <input class="form-control form-control-inline input-medium date-picker" size="16" type="text" data-date-format=dd-mm-yyyy name="invoice_date" value="<?php echo $una_details->date; ?>"/>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label col-md-3">UNA Balance Payment</label>
                                                            <div class="col-md-9">
                                                                <div class="control-label pull-left"><?php echo 'Rs. '.number_format($balance_amount,2,'.',','); ?></div>
                                                                <input type="hidden" name="una_settle_bal_amount" id="una_settle_bal_amount" lass="form-control form-control-inline input-medium" value="<?php echo $balance_amount; ?>"/>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label col-md-3">Total Settlement Amount</label>
                                                            <div class="col-md-9">
                                                                <input type="number" name="una_settle_amount" id="una_settle_amount" placeholder="0.00" class="form-control form-control-inline input-medium"/>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    
                                                    <h4 class="col-md-12">UNA Settlement Account Details</h4>
                                                    <hr>
                                                        
                                                    <div class="row">
                                                        <div class="col-md-12">
                                                            <div class="row">
                                                                <div class="col-md-12">
                                                                    <table class="table table-hover table-bordered table-striped">
                                                                        <tr>
                                                                            <th>
                                                                                <strong>Payment By</strong>
                                                                            </th>
                                                                            <td>
                                                                                <strong>Balance Amount</strong>
                                                                            </td>
                                                                            <td>
                                                                                <strong>Payment Amount</strong>
                                                                            </td>
                                                                            <td>
                                                                                <strong>Available Balance</strong>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                Cash in hand
                                                                            </td>
                                                                            <td>
                                                                                <?php echo 'Rs. '.number_format($stock_details->cash_in_hand,2,'.',','); ?>
                                                                                <input type="hidden" class="form-control input-medium" id="cash_in_hand" name="cash_in_hand" value="<?php echo $stock_details->cash_in_hand; ?>">
                                                                            </td>
                                                                            <td>
                                                                                <input type="number" class="form-control input-medium payment_items" id="cash_payment" name="cash_payment">
                                                                            </td>
                                                                            <td>
                                                                                <div id="div_cash_available_balance"><?php echo 'Rs. '.number_format($stock_details->cash_in_hand,2,'.',','); ?></div>
                                                                                <input type="hidden" class="form-control input-medium" id="txt_cash_available_balance" name="txt_cash_available_balance">
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                Gold - <?php echo $stock_details->tf_gold_in_hand.' (g) x '; ?> <input type="number" class="form-control-inline input-small" id="txt_24k_rate" name="txt_24k_rate"> (24K Rate)
                                                                                <input type="hidden" class="form-control input-medium" id="txt_avb_gold_amount" name="txt_avb_gold_amount" value="<?php echo $stock_details->tf_gold_in_hand; ?>">
                                                                            </td>
                                                                            <td>
                                                                                <div id="div_gold_cash_amount"><?php echo 'Rs. '.number_format('0.00',2,'.',','); ?></div>
                                                                                <input type="hidden" class="form-control input-medium" id="txt_gold_cash_amount" name="txt_gold_cash_amount">
                                                                            </td>
                                                                            <td>
                                                                                <input type="number" class="form-control input-medium payment_items" id="gold_cash_payment" name="gold_cash_payment">
                                                                                <input type="hidden" class="form-control input-medium" id="txt_gold_amount" name="txt_gold_cash_amount">
                                                                            </td>
                                                                            <td>
                                                                                <div id="div_gold_cash_available_balance"><?php echo 'Rs. '.number_format('0.00',2,'.',',').' - '.$stock_details->tf_gold_in_hand.' g'; ?></div>
                                                                                <input type="hidden" class="form-control input-medium" id="txt_gold_available_balance" name="txt_gold_available_balance">
                                                                            </td>
                                                                        </tr>
                                                                        <?php foreach($bank_accounts as $bank_account){ ?>
                                                                        <tr>
                                                                            <input type="hidden" class="form-control input-medium" value="<?php echo $bank_account['id']; ?>" name="bank_account_id[]">
                                                                            <td>
                                                                                Cash at bank - <?php echo $bank_account['bank_name'].' - '.$bank_account['account_number']; ?>
                                                                            </td>
                                                                            <td>
                                                                                <?php echo 'Rs. '.number_format($bank_account['bank_balance'],2,'.',','); ?>
                                                                                <input type="hidden" class="form-control input-medium" id="bank_balance_<?php echo $bank_account['id']; ?>" value="<?php echo $bank_account['bank_balance']; ?>">
                                                                            </td>
                                                                            <td>
                                                                                <input type="number" class="form-control input-medium payment_items bank_payment" id="bank_payment_<?php echo $bank_account['id']; ?>" name="bank_payment[]" item-id="<?php echo $bank_account['id']; ?>">
                                                                            </td>
                                                                            <td>
                                                                                <div id="div_cash_available_balance_<?php echo $bank_account['id']; ?>"><?php echo 'Rs. '.number_format($bank_account['bank_balance'],2,'.',','); ?></div>
                                                                                <input type="hidden" class="form-control input-medium" id="txt_bank_available_balance_<?php echo $bank_account['id']; ?>" name="txt_bank_available_balance[]">
                                                                            </td>
                                                                        </tr>
                                                                        <?php } ?>
                                                                        <?php foreach($settlement_creditors as $settlement_creditor){ ?>
                                                                        <tr>
                                                                            <input type="hidden" class="form-control input-medium" value="<?php echo $settlement_creditor['id']; ?>" name="settlement_creditor_id[]">
                                                                            <td>
                                                                                Creditor - <?php echo $settlement_creditor['creditor_name']; ?>
                                                                            </td>
                                                                            <td>
                                                                                -
                                                                            </td>
                                                                            <td>
                                                                                <input type="number" class="form-control input-medium creditor_payment payment_items" id="creditor_payment_<?php echo $settlement_creditor['id']; ?>" name="creditor_payment[]" item-id="<?php echo $settlement_creditor['id']; ?>">
                                                                            </td>
                                                                            <td>
                                                                                -
                                                                            </td>
                                                                        </tr>
                                                                        <?php } ?>
                                                                        <tr>
                                                                            <td colspan="2">
                                                                                <strong>Total Balance Amount</strong>
                                                                            </td>
                                                                            <td colspan="2">
                                                                                <strong><div id="div_total_bal_amount">Rs. 0.00</div></strong>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                    <div id="error_msg_bal_amount" class="alert alert-danger hidden"></div>
                                                                    <div id="submit_btn" class="form-actions fluid">
                                                                        <div class="row">
                                                                            <div class="col-md-12">
                                                                                <div class="col-md-offset-3 col-md-9">
                                                                                    <button type="submit" class="btn green">
                                                                                        Submit <i class="fa fa-check"></i>
                                                                                    </button>
                                                                                    <button type="button" class="btn default">Cancel</button>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <!--end col-md-10-->
                                                            </div>
                                                            <!--end row--> 
                                                        </div>
                                                    </div>    
                                                </form>
                                            </div>
                                        </div>
                                    </div> 
                                </div>
                            </div>
                            <div class="tab-pane" id="tab_1_3">
                                <script type="text/javascript" language="javascript" >
                                    $(document).ready(function () {
                                        var dataTable = $('#una_payments').DataTable({
                                            select: true,
                                            pageLength: 10,
                                            processing: true,
                                            serverSide: true,
                                            ajax: {
                                                url: "Json_data/json_data_records?json_type=una_payments&una_id=<?php echo $una_details->id; ?>", // json datasource
                                                type: "post", // method  , by default get
                                                error: function () {  // error handling
                                                    $(".employee-grid-error").html("");
                                                    $("#employee-grid").append('<tbody class="employee-grid-error"><tr><th colspan="6">No data found in the server</th></tr></tbody>');
                                                    $("#employee-grid_processing").css("display", "none");

                                                }
                                            }, "aoColumns": [
                                                {"sTitle": "", "sClass": "hidden"},
                                                {"sTitle": "ID"},
                                                {"sTitle": "Date"},
                                                {"sTitle": "Amount"},
                                                {"sTitle": "Actions", "sClass": "actionWidthMembers"}
                                            ], "fnCreatedRow": function (nRow, aData, iDataIndex) {
                                                $(nRow).attr('id', '' + aData[0]);

                                            }
                                        });

                                    });
                                </script>
                                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                                <div class="portlet box grey-cascade">
                                    <div class="portlet-title">
                                        <div class="caption">
                                            <i class="fa fa-money"></i> Payments
                                        </div>
                                    </div>
                                    <div class="portlet-body">
                                        <table id="una_payments" class="table table-striped table-bordered table-hover"></table>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane" id="tab_1_4">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="portlet box grey-cascade">
                                            <div class="portlet-title">
                                                <div class="caption">
                                                    <i class="fa fa-gift"></i>Edit UNA
                                                </div>
                                            </div>
                                            <div class="portlet-body form">
                                                <!-- BEGIN FORM-->
                                                <form id="save_edit_una" class="form-horizontal" method="POST" enctype="multipart/form-data">
                                                    <input type="hidden" name="una_id" id="una_id" class="form-control" value="<?php echo $una_details->id; ?>"/>
                                                    <div class="form-body">
                                                        <div class="form-group">
                                                            <label class="control-label col-md-3">Date</label>
                                                            <div class="col-md-3">
                                                                <input class="form-control form-control-inline input-medium date-picker" size="16" type="text" data-date-format=dd-mm-yyyy name="invoice_date" value="<?php echo $una_details->date; ?>"/>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label col-md-3">UNA Creditor</label>
                                                            <div class="col-md-3">
                                                                <select class="form-control input-medium select2me" data-placeholder="Select..." id="una_add_creditor" name="select_creditor">
                                                                    <option value="">Select Creditor</option>
                                                                    <option value="Add New Creditor">Add New Creditor</option>
                                                                    <?php
                                                                        $creditors = $this->admin_db->get_creditors_to_add_una();
                                                                        foreach ($creditors as $creditor) {
                                                                            $sel = '';
                                                                            if($una_details->creditor_id == $creditor['id']){
                                                                               $sel = 'selected'; 
                                                                            }
                                                                            
                                                                    ?>

                                                                    <option value="<?php echo $creditor['id']; ?>" <?php echo $sel; ?> item_id="<?php echo $creditor['contact_number']; ?>"><?php echo $creditor['creditor_name']; ?></option>

                                                                    <?php } ?>
                                                                </select>
                                                                <input type="hidden" name="prev_creditor_id" class="form-control" value="<?php echo $una_details->creditor_id; ?>"/>
                                                            </div>
                                                        </div>
                                                        <div id="div_creditor_details">
                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">Mobile Number</label>
                                                                <div class="col-md-3">
                                                                    <input class="form-control" size="16" type="text" id="txt_creditor_contact_num" disabled="disabled" value="<?php echo $creditor_details->contact_number; ?>"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">Contact Number</label>
                                                                <div class="col-md-3">
                                                                    <input class="form-control" size="16" type="text" id="txt_creditor_tel_num" disabled="disabled" value="<?php echo $creditor_details->tel_number; ?>"/>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div id="add_new_creditor" class="hidden">
                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">Creditor Name</label>
                                                                <div class="col-md-3">
                                                                    <input type="text" name="creditor_name" id="creditor_name" placeholder="Shafraz & Co." class="form-control"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">Mobile Number</label>
                                                                <div class="col-md-3">
                                                                    <input type="number" name="contact_num" id="contact_num" placeholder="0777123456" class="form-control"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">Telephone Number</label>
                                                                <div class="col-md-3">
                                                                    <input type="number" name="tel_number" id="tel_number" placeholder="0342235122" class="form-control"/>
                                                                </div>
                                                            </div>
                                                            <div class="row form-group">
                                                                <label class="control-label col-md-3">Creditor Type</label>
                                                                <div class="col-md-3">
                                                                    <select class="form-control" name="creditor_type" id="creditor_type">
                                                                        <option value="">Select Creditor Type</option>
                                                                        <option value="UNA Creditor">UNA Creditor</option>
                                                                        <option value="UNA & Normal Creditor">UNA & Normal Creditor</option>
                                                                    </select>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label col-md-3">UNA Amount</label>
                                                            <div class="col-md-3">
                                                                <input type="number" name="una_amount" id="una_amount" placeholder="0.00" class="form-control" value="<?php echo $una_details->una_amount; ?>"/>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label col-md-3">UNA Rate</label>
                                                            <div class="col-md-3">
                                                                <input type="number" name="una_rate" id="una_rate" placeholder="0.00" class="form-control" value="<?php echo $una_details->una_rate; ?>"/>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label col-md-3">LKR Amount</label>
                                                            <div class="col-md-3">
                                                                <div class="control-label pull-left" id="div_lkr_amount">
                                                                    <?php
                                                                        $lkr_amount = $una_details->una_amount * $una_details->una_rate;
                                                                        echo 'Rs. '.number_format($lkr_amount,2,'.',',');
                                                                    ?>
                                                                </div>
                                                                <input type="hidden" name="lkr_amount" id="lkr_amount" placeholder="0.00" class="form-control" value="<?php echo $una_details->lkr_amount; ?>"/>
                                                                <input type="hidden" name="prev_lkr_amount" placeholder="0.00" class="form-control" value="<?php echo $una_details->lkr_amount; ?>"/>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="control-label col-md-3">Recipient</label>
                                                            <div class="col-md-3">
                                                                <input type="text" name="recipient" id="recipient" placeholder="Abdeen Jewellers" class="form-control" value="<?php echo $una_details->recipient; ?>"/>
                                                            </div>
                                                        </div>
                                                        <div class="form-actions fluid">
                                                            <div class="row">
                                                                <div class="col-md-12">
                                                                    <div class="col-md-offset-3 col-md-9">
                                                                        <button type="submit" class="btn green">
                                                                            Submit <i class="fa fa-check"></i>
                                                                        </button>
                                                                        <button type="button" class="btn default">Cancel</button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </form>
                                            </div>
                                        </div>
                                    </div> 
                                </div>
                            </div>
                            <!--end tab-pane-->
                        </div>
                    </div>
                    <!--END TABS-->
                </div>
            </div>
            <!-- END PAGE CONTENT-->
        </div>
    </div>
    <!-- END CONTENT -->
<!-- END QUICK SIDEBAR -->
</div>