      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Loan Application
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Loans</a></li>
            <li class="active">Loan Application</li>
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">
          <div class="row">         
           
            <div class="col-md-12">
            <div class="box box-primary">
              <div class="box-header with-border">
                
                <div class="col-md-6 pull-right">
                   <div class="col-md-6">
                        <button type="submit" class="btn btn-primary btn-label-left  btn-block btn-header">
                            Loan Details
                        </button>
                    </div>                          
                    <div class="col-md-6">
                        <button type="submit" class="btn btn-info btn-label-left btn-block btn-header">
                            Add Guarantor(s)
                        </button>
                    </div>                      
				</div>
                    
              </div><!-- /.box-header -->
              <div class="box-body">
                                    
                       <form id="loan_application" action="<?php echo site_url();?>loans/insert_loan_details" method="post">
                                                                   
                        <div class="col-md-8">
                        <div  class="form-group">
                            <label>Member No.</label>			
                            <input type="text" class="form-control" name="member_no" value="<?php echo $member_no_member_name;?>"  readonly />
                            <input type="hidden" name="subject_id" value="<?php echo $subject_id;?>" />
                        </div>
                        <div  class="form-group">
                            <label>Amount</label>						
                            <?php echo form_error('principal'); ?> <br/>
                            <input type="text" class="form-control" name="principal" placeholder="Amount Requested" data-toggle="tooltip" data-placement="bottom" value="<?php echo set_value('principal'); ?>" title="Amount">
                        </div>
                        <div  class="form-group">
                            <label>Repayment Duration(Months)</label>						
                            <?php echo form_error('repayment_duration'); ?> <br/>
                            <input type="text" class="form-control" name="repayment_duration" placeholder="Repayment Duration(months)" data-toggle="tooltip" data-placement="bottom" value="<?php echo set_value('repayment_duration'); ?>" title="Repayment Duration">
                        </div>
                        <div  class="form-group">
                            <label>Purpose</label>						
                            <?php echo form_error('purpose'); ?> <br/>
                            <input type="text" class="form-control" name="purpose" placeholder="Purpose" data-toggle="tooltip" data-placement="bottom" value="<?php echo set_value('purpose'); ?>" title="Purpose">
                        </div>
                        
                       <div class="row">
                       <div class="col-md-6">
                            <button type="reset" class="btn btn-primary btn-label-left  btn-block">
                                Save and Resume Later
                            </button>
                        </div>
                          
                        <div class="col-md-6">
                            <button type="submit" class="btn btn-success btn-label-left btn-block">
                                Submit
                            </button>
                        </div>
                      
					</div>
                        
                   </div>                           
                                    
                       
                    </form>
                  
              </div><!-- /closing box-body -->               
             
            </div><!-- /.box -->   
           </div>
             
          </div>   <!-- /.row -->
        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->