<div class="modal fade" id="checkPaymentModal" tabindex="-1" role="dialog" aria-labelledby="cashModal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" >
            <div class="modal-header" style="padding: 20px">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel" style="text-align: left">Check Payment</h4>
            </div>
            <?php
            $e_payment_id = $this->encrypt->encode($payment_info->payment_id);
            $payment_id = str_replace("/", "gkCn%Br", $e_payment_id);
            ?>
            <div class="modal-body">
                <?php
                $url = 'save-cheque-payment';
                echo form_open($url, 'class="cmxform" id="" name="add_check_payment" ');
                ?>

                <div class="col-sm-12 form-group" style="padding: 10px;border: 1px solid #EDEDED;background-color:#F2F9EA">
                    <div class="col-sm-4">Bank Name</div>
                    <div class="col-sm-4">Account Number</div>
                    <div class="col-sm-2">Amount</div>
                </div>
                <div class="col-sm-12">
                    <div class="col-sm-4" id="view_bank_name"></div>
                    <div class="col-sm-4" id="view_check_account_number"></div>
                    <div class="col-sm-2" id="view_check_payment_amount"></div>
                    <span>
                        <input type="hidden" id="hiddin_bank_name" name="hiddin_bank_name" value="">
                        <input type="hidden" id="hiddin_check_account_number" name="hiddin_check_account_number" value="">
                        <input type="hidden" id="hiddin_check_payment_amount" name="hiddin_check_payment_amount" value="">
                        <input type="hidden" id="hiddin_payment_id" name="hiddin_payment_id" value="<?php echo $payment_id; ?>">
                    </span>
                    <div class="col-sm-2">
                        <button type="submit" 
                                id="checkPayBtn" 
                                style="float: right;display: none" 
                                class="btn btn-success">Pay Now</button>
                    </div>
                </div>
                <div class="col-sm-12 form-group"><br></div>
                <?php echo form_close(); ?>
                <br><br><br>



                <div class="col-sm-12">
                    <div class="col-sm-5">
                        <h4 class="modal-title" id="myModalLabel" style="text-align: left" >
                            <span id="credit_level_t">Add Check Information</span> 
                        </h4> 
                    </div>

                    <div class="col-sm-5 "></div>
                    <div class="col-sm-2 ">
                        <a href="javascript:void(0)" 
                           onclick="addChequePaymentForm()">   
                            <span 
                                class="glyphicon glyphicon-menu-down" 
                                aria-hidden="true" id="checkFormOpenIcon" 
                                style="display: block">
                            </span>
                        </a>
                        <a href="javascript:void(0)" 
                           onclick="removeChequePaymentForm()">  
                            <span class="glyphicon glyphicon-menu-up" 
                                  aria-hidden="true" 
                                  id="checkFormCloseIcon" 
                                  style="display: none">
                            </span>
                        </a>
                    </div>
                    <div class="col-sm-12 "><hr></div><br><br><br>




                    <div class="col-sm-12" id="checkForm" style="display: none">
                        <div class="col-sm-12">
                            <div class="col-sm-8 form-group">
                                <select class="form-control"
                                        id="bank_name">
                                    <option  value="">Select Bank</option>
                                    <option  value="AB Bank Limited" >AB Bank Limited</option>
                                    <option  value="Agrani Bank Limited" >Agrani Bank Limited</option>
                                    <option  value="Al-Arafah Islami Bank Limited" >Al-Arafah Islami Bank Limited</option>
                                    <option  value="Bangladesh Commerce Bank Limited" >Bangladesh Commerce Bank Limited</option>
                                    <option  value="Bangladesh Development Bank Limited" >Bangladesh Development Bank Limited</option>
                                    <option  value="Bangladesh Krishi Bank" >Bangladesh Krishi Bank</option>
                                    <option  value="Bank Al-Falah Limited" >Bank Al-Falah Limited</option>
                                    <option  value=" Bank Asia Limited" > Bank Asia Limited</option>
                                    <option  value="BASIC Bank Limited" >BASIC Bank Limited</option>
                                    <option  value="BRAC Bank Limited" >BRAC Bank Limited</option>
                                    <option  value="Citibank N.A" >Citibank N.A</option>
                                    <option  value="Commercial Bank of Ceylon Limited" >Commercial Bank of Ceylon Limited</option>
                                    <option  value="Dhaka Bank Limited" >Dhaka Bank Limited</option>
                                    <option  value="Dutch-Bangla Bank Limited" >Dutch-Bangla Bank Limited</option>
                                    <option  value="Eastern Bank Limited" >Eastern Bank Limited</option>
                                    <option  value="EXIM Bank Limited" >EXIM Bank Limited</option>
                                    <option  value=" First Security Islami Bank Limited" > First Security Islami Bank Limited</option>
                                    <option  value="Habib Bank Ltd" >Habib Bank Ltd</option>
                                    <option  value=" ICB Islamic Bank Ltd" > ICB Islamic Bank Ltd</option>
                                    <option  value="IFIC Bank Limited" >IFIC Bank Limited</option>
                                    <option value="Islami Bank Bangladesh Ltd">Islami Bank Bangladesh Ltd</option>
                                    <option  value="Jamuna Bank Ltd" >Jamuna Bank Ltd</option>
                                    <option  value="Janata Bank Limited" >Janata Bank Limited</option>
                                    <option  value="Meghna Bank Limited" >Meghna Bank Limited</option>
                                    <option  value="Mercantile Bank Limited" >Mercantile Bank Limited</option>
                                    <option  value="Midland Bank Limited" >Midland Bank Limited</option>
                                    <option  value="Modhumoti Bank Ltd" >Modhumoti Bank Ltd</option>
                                    <option  value="Mutual Trust Bank Limited" >Mutual Trust Bank Limited</option>
                                    <option  value="National Bank Limited" >National Bank Limited</option>
                                    <option  value="National Bank of Pakistan" >National Bank of Pakistan</option>
                                    <option  value="National Credit & Commerce Bank Ltd" >National Credit & Commerce Bank Ltd</option>
                                    <option  value="NRB Bank Limited" >NRB Bank Limited</option>
                                    <option  value="NRB Commercial Bank Limited" >NRB Commercial Bank Limited</option>
                                    <option  value="NRB Global Bank Limited" >NRB Global Bank Limited</option>
                                    <option  value="One Bank Limited" >One Bank Limited</option>
                                    <option value="Premier Bank Limited">Premier Bank Limited</option>
                                    <option  value="Prime Bank Ltd" >Prime Bank Ltd</option>
                                    <option  value=" Pubali Bank Limited" > Pubali Bank Limited</option>
                                    <option  value="Rajshahi Krishi Unnayan Bank" >Rajshahi Krishi Unnayan Bank</option>
                                    <option  value="Rupali Bank Limited" >Rupali Bank Limited</option>
                                    <option  value="Shahjalal Islami Bank Limited" >Shahjalal Islami Bank Limited</option>
                                    <option  value="Social Islami Bank Ltd." >Social Islami Bank Ltd.</option>
                                    <option  value="Sonali Bank Limited" >Sonali Bank Limited</option>
                                    <option  value="South Bangla Agriculture & Commerce Bank Limited" >South Bangla Agriculture & Commerce Bank Limited</option>
                                    <option  value="Southeast Bank Limited" >Southeast Bank Limited</option>
                                    <option  value="Standard Bank Limited" >Standard Bank Limited</option>
                                    <option  value="Standard Chartered Bank" >Standard Chartered Bank</option>
                                    <option  value="State Bank of India" >State Bank of India</option>
                                    <option  value="The City Bank Ltd." >The City Bank Ltd.</option>
                                    <option  value="The Farmers Bank Ltd" >The Farmers Bank Ltd</option>
                                    <option  value="The Hong Kong and Shanghai Banking Corporation. Ltd." >The Hong Kong and Shanghai Banking Corporation. Ltd.</option>
                                    <option  value="Trust Bank Limited" >Trust Bank Limited</option>
                                    <option  value="Union Bank Limited" >Union Bank Limited</option>
                                    <option  value="United Commercial Bank Limited" >United Commercial Bank Limited</option>
                                    <option  value="Uttara Bank Limited" >Uttara Bank Limited</option>
                                    <option  value="Woori Bank" >Woori Bank</option>
                                </select>
                            </div>
                            <div class="col-sm-8 form-group">
                                <input class="form-control" 
                                       type="text" 
                                       name="check_account_number" 
                                       id="check_account_number" 
                                       value="" 
                                       maxlength="20"
                                       oninput="checkCheckAccountNumber(this.value)"
                                       placeholder="Please Type Check Receipt Number">
                                <span id="check_account_number_error" style="color: red"></span>
                                <input type="hidden" id="check_account_number_validate" value="1">
                            </div>
                            <div class="col-sm-8 form-group">
                                <input class="form-control" 
                                       type="text" 
                                       name="check_payment_amount" 
                                       id="check_payment_amount" 
                                       value="" 
                                       maxlength="12"
                                       oninput="checkPaymentAmount(this.value,'<?php echo $payment_info->payment_type ?>','<?php echo $payment_info->total_price ?>')"
                                       placeholder="Please Type Payment Amount">
                                <span id="payment_amount_error" style="color: red"></span>
                                <input type="hidden" id="payment_amount_validate" value="1">
                            </div>
                        </div>
                        <div class="col-sm-12"> 
                            <br>
                        </div>
                        <div class="col-sm-12">
                            <div class="col-sm-4">
                                <input class="form-control btn btn-success"
                                       onclick="return viewChequeAmount()"
                                       type="button" value="Add Cash">
                            </div>
                        </div>
                        <div class="col-sm-12"> 
                            <br><hr>
                        </div>
                    </div>




                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">Close</button>
            </div>

        </div>
    </div>
</div>