<script src="<?php echo base_url().'assets/js/script.js'?>" type="text/javascript"></script>

<input type="hidden" name="cheque_id" value="<?php echo $cheque_details->id; ?>">
<input type="hidden" name="cheque_type" value="<?php echo $cheque_details->cheque_type; ?>">
<input type="hidden" name="payment_id" value="<?php echo $cheque_details->payment_id; ?>">
<input type="hidden" name="customer_id" value="<?php echo $cheque_details->customer_id; ?>">
<input type="hidden" name="cheque_amount" value="<?php echo $cheque_details->cheque_amount; ?>">
<input type="hidden" name="cheque_number" value="<?php echo $cheque_details->cheque_number; ?>">

<div class="modal-body">
    <div id="response_msg_modal"></div>
    <div class="scroller" style="height:400px" data-always-visible="1" data-rail-visible1="1">
        <div class="row">
            <div class="col-md-12">
                <div class="form-body">
                    <div class="form-group">
                        <label class="control-label col-md-3">Bank Name</label>
                        <div class="col-md-9">
                            <div class="control-label pull-left">
                                <?php 
                                    $bank_details = $this->admin_db->get_bank_by_id($cheque_details->bank_id);
                                    echo $bank_details->bank_name; 
                                ?>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3">Cheque Number</label>
                        <div class="col-md-9">
                            <div class="control-label pull-left">
                                <?php echo $cheque_details->cheque_number; ?>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3">Cheque Amount</label>
                        <div class="col-md-9">
                            <div class="control-label pull-left">
                                <?php echo 'Rs. '.number_format($cheque_details->cheque_amount,2,'.',','); ?>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3">Deposit Date</label>
                        <div class="col-md-9">
                            <div class="control-label pull-left">
                                <?php echo date("d-m-Y", strtotime($cheque_details->deposit_date)); ?>
                            </div>
                        </div>
                    </div>
                    <div class="row form-group">
                        <label class="col-md-3 control-label pull-left">Cheque Action</label>
                        <div class="col-md-6">
                            <select class="form-control input-large" name="submit_action" id="submit_action">
                                <option value="Bank Deposited">Bank Deposited</option>
                                <option value="Cashed">Cashed</option>
                                <option value="Cheque Returned">Cheque Returned</option>
                                <option value="Cheque Cancelled">Cheque Cancelled</option>
                            </select>
                        </div>
                    </div>
                    <div class="row form-group" id="div_chq_submit_bank_account">
                        <label class="col-md-3 control-label pull-left">Bank Account</label>
                        <div class="col-md-6">
                            <select class="form-control input-large select2me" name="bank_account" id="bank_account">
                                <?php
                                    $accounts = $this->admin_db->get_bank_accounts_for_receipts();
                                    foreach ($accounts as $account) {
                                        $sel = '';
                                ?>

                                <option value="<?php echo $account['id']; ?>" <?php echo $sel; ?>><?php echo $account['account_name'].' - '.$account['account_number'].' - '.$account['bank_name']; ?></option>

                                <?php } ?>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
jQuery(document).ready(function() {    
  Metronic.init(); // init metronic core componets
//   Layout.init(); // init layout
//   QuickSidebar.init() // init quick sidebar
//   Index.init();   
//   Index.initDashboardDaterange();
//   Index.initJQVMAP(); // init index page's custom scripts
//   Index.initCalendar(); // init index page's custom scripts
//   Index.initCharts(); // init index page's custom scripts
//   Index.initChat();
//   Index.initMiniCharts();
//   Index.initIntro();
//   Tasks.initDashboardWidget();
//   ComponentsPickers.init();
// //   TableAdvanced.init();
//   EcommerceIndex.init();
  UIGeneral.init();
});
</script>