        <!-- page content -->
        <style>
/*            .acc{*/
/*    display: none;*/
/*}*/
.hed{
    background-color:#028482 !important;
}
.list-group-item{
  max-height: 30px;
    /*background-color: #028482;*!*/

    /*color: #E7E7E7;*/
    /*font-weight: 500 !important;*/

}

#datt{
vertical-align: middle;
    width: 16px !important;
    height: 16px !important;
    margin-left: 250px !important;
    margin-top: -100px;
    cursor: pointer;
}



    </style>

        <link href="<?php echo base_url(); ?>assets/vendors/select2/dist/css/select2.min.css" rel="stylesheet">

        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
                <div class="title_left">
                   
                </div>
            </div>
            <div class="clearfix"></div>

            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <!--<div class="x_title">-->
                  <!--  <h2>General Ledger</h2>-->
                  <!--  <ul class="nav navbar-right panel_toolbox">-->
                  <!--    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>-->
                  <!--  </ul>-->
                  <!--  <div class="clearfix"></div>-->
                  <!--</div>-->
                  <div class="x_content">
    
        <div class="row">
            <div class="col-md-4">
                 <div class="panel panel-default">
                <div class="panel-heading hed">
                    <h3 class="panel-title"><center>
                        Student Reports</center></h3>
                </div>
                <ul class="list-group" style="">
                    <strong><a href="#" data-toggle="collapse"   class="list-group-item" data-target="#chart">Student Biodata</a></strong>
                    <strong><a href="#" data-toggle="collapse"  class="list-group-item" data-target="#journal">Student GR</a></strong>
                    <strong><a href="#" data-toggle="collapse"  class="list-group-item" data-target="#ledger">Gender Wise Student</a></strong>
                     <strong><a href="#" data-toggle="collapse"  class="list-group-item" data-target="#voucher">Yearly Progress</a></strong>
                   
                </ul>
            </div>
            </div>
            
            <div class="col-md-2"></div>
           
             <div class="row">
             <div class="col-md-6">
                 <div class="panel panel-default collapse" id="chart">
                
<!--             <form class="form-horizontal form-label-left" action="--><?php //echo base_url()?><!--Report/chart_of_accounts" method="post" id="chart_of_accounts">-->
                 <form class="form-horizontal form-label-left" action="<?php echo base_url()?>Report/bio_data" method="post" id="chart_of_accounts">
                 <div class="col-md-12">
                     <div class="col-md-2"></div>
                     <div class="col-md-8">
                         <div class="alert alert-success"><center><b>Chart of Accounts</b></center></div>
                     </div>
                     <div class="col-md-1"></div>
                 </div>
                      <div class="item form-group ">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Show Balances:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control" required name="showbalance" id="blnc">
                                    <option value="No">No</option>
                                    <option value="Yes">Yes</option>
                                 </select> 
                           </div>
                      </div>
                      
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Show Inactive:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control" required name="inact" id="in_act">
                                    <option value="No">No</option>
                                    <option value="Yes">Yes</option>
                                 </select> 
                           </div>
                       </div>
                       
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <textarea class="form-control" name="comment"></textarea>
                           </div>
                       </div>
                       
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Orientation:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control" required name="orientation" id="ori">
                                    <option value="Portrait">Portrait</option>
                                    <option value="Landscape">Landscape</option>
                                 </select> 
                           </div>
                       </div>
                       
                    
                       

                      <!-- end-row -->
                        <div class="ln_solid"></div>
                        <div class="form-group">
                       <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                        </div>
                      </div>
                    </form>
            </div>

            
             <div class="panel panel-default collapse" id="journal">
                
             <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_summary_ledgerajax" method="post" id="journal22">
                 <div class="col-md-12">
                 <div class="col-md-2"></div>
                 <div class="col-md-8">
                 <div class="alert alert-success"><center><b>List of Journal Entries</b></center></div>
                 </div>
                 <div class="col-md-1"></div>
                 </div>
<!--                         <div class="item form-group">-->
<!--                     <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Start Date:<span class="required"></span>-->
<!--                     </label>-->
<!--                     <div class='input-group date col-md-6'>-->
<!--                         <input type='text' class="form-control" value="--><?php //echo date('d-m-Y') ?><!--"  id="date" true />-->
<!--                    <span class="input-group-addon ">-->
<!--                        <span class="glyphicon glyphicon-calendar"></span>-->
<!--                    </span>-->
<!--                     </div>-->
<!--                 </div>-->

                 <div class="item form-group">
                     <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Start Date:<span class="required"></span>
                     </label>
                     <div class="col-md-6 col-sm-6 col-xs-12">
                         <input type='date' class="form-control" name="from" value="<?php echo date('Y-m-d') ?>"/>
                     </div>
                 </div>


                 <div class="item form-group">
                     <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">End Date:<span class="required"></span>
                     </label>
                     <div class="col-md-6 col-sm-6 col-xs-12">
                         <input type='date' class="form-control" name="to" value="<?php echo date('Y-m-d') ?>" />
                     </div>
                 </div>

                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Chart of Accounts:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2" id="head" name="last_val" required style="width:240px !important;">
                                    <option value="-1">All</option>
                                    <?php
                                    foreach($heads as $val)
                                    {
                                        $data1 = $val['code'];
                                        $data2 = $val['name'];
                                        $result = $data1 . ' ' . $data2;
                                        ?>
                                        <option value="<?php echo $val['id']?>"><?php echo $result;?></option>
                                        <?php
                                    }
                                    ?>
                                </select>

                           </div>
                       </div>
                       
                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <textarea class="form-control" name="comment"></textarea>
                           </div>
                       </div>
                       
                       <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Orientation:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control" required name="ori" id="ori">
                                    <option value="Portrait">Portrait</option>
                                    <option value="Landscape">Landscape</option>
                                 </select> 
                           </div>
                       </div>
                       
                      

                      <!-- end-row -->
                        <div class="ln_solid"></div>
                        <div class="form-group">
                       <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                        </div>
                      </div>
                    </form>
            </div>

                 <div class="panel panel-default collapse" id="ledger">

                     <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_summary_ledgerajax1" method="post" id="journal23">
                         <div class="col-md-12">
                             <div class="col-md-2"></div>
                             <div class="col-md-8">
                                 <div class="alert alert-success"><center><b>Report For Ledger</b></center></div>
                             </div>
                             <div class="col-md-1"></div>
                         </div>


                         <div class="item form-group">
                             <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Start Date:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <input type='date' class="form-control" name="from" value="<?php echo date('Y-m-d') ?>"/>
                             </div>
                         </div>


                         <div class="item form-group">
                             <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">End Date:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <input type='date' class="form-control" name="to" value="<?php echo date('Y-m-d') ?>" />
                             </div>
                         </div>

                         <div class="item form-group">
                             <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Chart of Accounts:<span class="required"></span>
                             </label>
                             <div class="col-md-8">
                                 <select class="form-control select2" id="head" name="chart" required style="width:240px !important;">
                                     <option value="-1">All</option>
                                     <?php
                                     foreach($heads as $val)
                                     {
                                         $data1 = $val['code'];
                                         $data2 = $val['name'];
                                         $result = $data1 . ' ' . $data2;
                                         ?>
                                         <option value="<?php echo $val['code']?>"><?php echo $result;?></option>
                                         <?php
                                     }
                                     ?>
                                 </select>

                             </div>
                         </div>

                         <div class="item form-group">
                             <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <textarea class="form-control" name="comment"></textarea>
                             </div>
                         </div>

                         <div class="item form-group">
                             <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Orientation:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <select class="form-control" required name="ori" id="ori">
                                     <option value="Portrait">Portrait</option>
                                     <option value="Landscape">Landscape</option>
                                 </select>
                             </div>
                         </div>

                         <!-- end-row -->
                         <div class="ln_solid"></div>
                         <div class="form-group">
                             <div class="col-md-6 col-md-offset-3">
                                 <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                             </div>
                         </div>
                     </form>
                 </div>
                 
                      <div class="panel panel-default collapse" id="voucher">

                     <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/vouchers" method="post" id="voucher1">
                         <div class="col-md-12">
                             <div class="col-md-2"></div>
                             <div class="col-md-8">
                                 <div class="alert alert-success"><center><b>Report For Vouchers</b></center></div>
                             </div>
                             <div class="col-md-1"></div>
                         </div>

                 <div class="item form-group">
                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Select Type:<span class="required"></span>
                        </label>
                        <div class="col-md-8">
                                <select class="form-control select2" id="type" name="type" required style="width:240px !important;">
                             <option value="">Select Type</option>
                                    <option value="cash payment">Cash Payment</option>
                                    <option value="cash receipt">Cash Receipt</option>
                                    <option value="bank payment">Bank Payment</option>
                                    <option value="bank receipt">Bank Receipt</option>
                                    <option value="journal voucher">Journal Voucher</option>
                                     <option value="petty cash">Petty Cash</option>
                                   
                                </select>

                           </div>
                       </div>
                        
                         <!-- end-row -->
                         <div class="ln_solid"></div>
                         <div class="form-group">
                             <div class="col-md-6 col-md-offset-3">
                                 <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                             </div>
                         </div>
                     </form>
                 </div>
            
            
            <div class="panel panel-default collapse" id="expense">
                
             <form class="form-horizontal form-label-left" action="#" method="post" id="chart_of_accounts">
                 <div class="col-md-12">
                     <div class="col-md-2"></div>
                     <div class="col-md-8">
                         <div class="alert alert-success"><center><b>Student Biodata</b></center></div>
                     </div>
                     <div class="col-md-1"></div>
                 </div>

<?php 
 if($this->user_model->is_super())
                 {    $com= $this->db->select("name,id")->from("branch")->get()->result_array();
                 
?>
                        <div class="item form-group" id="branch_div">
                        <label class="control-label col-md-2 col-sm-3 col-xs-12" for="name">Branch<span class="required">*</span> 
                        </label>
                        <div class="col-md-7 col-sm-9 col-xs-12">
                          <select id="branch" name="branch" class="form-control" required="required">
                                            <?php   
                    
                              foreach ($com as $value) {
                  ?>    <option value="<?php echo $value['id']; ?>"><?php echo $value['name']?></option>
                  <?php } ?>
                          </select>
                        </div>
                      </div>
                    <?php }else{$branch=$this->user_model->getbranch();?>
                            <div class="item form-group" id="branch_div">
                              <label class="control-label col-md-2 col-sm-3 col-xs-12" for="name">Branch 
                        </label>
                        <div class="col-md-7 col-sm-9 col-xs-12">
                            <input id="branch" name="branch" type="hidden" value="<?= $branch ?>">
                            <input class="form-control" id="branch_name" name="branch_name" type="input" readonly value="<?= $this->report_model->getBranch()[0]['name']; ?>">
                            </div>
                        </div>
                      <?php  } ?>
                  
                       
                       
                       
                       <div class="item form-group" id="branch_div">
                        <label class="control-label col-md-2 col-sm-3 col-xs-12" for="name">Class
                        </label>
                        <div class="col-md-7 col-sm-9 col-xs-12">
                              <select id="class" class="form-control" name="class" >
                              </select>
                          </div>
                         </div>
                          <div class="item form-group" id="branch_div">
                        <label class="control-label col-md-2 col-sm-3 col-xs-12" for="name">Section 
                        </label>
                        <div class="col-md-7 col-sm-9 col-xs-12">
                          <select id="section" name="section" class="form-control" >
                            <option value="">Select Section</option>
                          </select>
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-2 col-sm-3 col-xs-12" for="name">Gender  </label>
                        <div class="col-md-7 col-sm-6 col-xs-12">
                        <select class="form-control" name="gender" id="gender">
                                      <option value="">Select Gender</option>
                                         <option value="Male">Male</option>
                                         <option value="Female">Female</option>
                                 </select>                    
                        </div>
                      </div> 
                       
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Orientation:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control" required name="ori" id="ori">
                                    <option value="Portrait">Portrait</option>
                                    <option value="Landscape">Landscape</option>
                                 </select> 
                           </div>
                       </div>


                      <!-- end-row -->
                        <div class="ln_solid"></div>
                        <div class="form-group">
                       <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                        </div>
                      </div>
                    </form>
            </div>
            
            <div class="panel panel-default collapse" id="balance">
                
             <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_summary_balance" method="post" id="balancesheet111">
                 <div class="col-md-12">
                     <div class="col-md-2"></div>
                     <div class="col-md-8">
                         <div class="alert alert-success"><center><b>Balance Sheet</b></center></div>
                     </div>
                     <div class="col-md-1"></div>
                 </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Start Date:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                                      <?php
                           $start = date('Y-m-d', strtotime('first day of this month'));
                    
                            ?>
  <input type="date" name="from" class="form-control" value="<?php echo $start?>">
                                 </select> 
                           </div>
                      </div>
                      
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">End Date:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                                      <?php
                           $start = date('Y-m-d', strtotime('last day of this month'));
                           
                            ?>
  <input type="date" name="to" class="form-control" value="<?php echo $start?>">
                                 </select> 
                           </div>
                       </div>

                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <textarea class="form-control" name="comment"></textarea>
                           </div>
                       </div>
                       
                     

                      <!-- end-row -->
                        <div class="ln_solid"></div>
                        <div class="form-group">
                       <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                        </div>
                      </div>
                    </form>
            </div>
            
            
             <div class="panel panel-default collapse" id="profit">
                
             <form class="form-horizontal form-label-left" action="<?php echo base_url()?>report/print_summary_pls" method="post" id="proftloss">
                 <div class="col-md-12">
                     <div class="col-md-2"></div>
                     <div class="col-md-8">
                         <div class="alert alert-success"><center><b>Profit and Loss Statement</b></center></div>
                     </div>
                     <div class="col-md-1"></div>
                 </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Start Date:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">

                                <input type='date' class="form-control" name="from" value="<?php echo date('Y-m-d') ?>"/>

                           </div>
                      </div>
                      
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">End Date:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type='date' class="form-control" name="to" value="<?php echo date('Y-m-d') ?>"/>

                           </div>
                       </div>
                       
                       
<!--                       <div class="item form-group">-->
<!--                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Compare to:<span class="required"></span>-->
<!--                        </label>-->
<!--                        <div class="col-md-6 col-sm-6 col-xs-12">-->
<!--                            <select class="form-control" required name="in_act" id="in_act">-->
<!--                                   <option value="No">Accumalated</option>-->
<!--                                    <option value="Yes">Period</option>-->
<!--                                     <option value="Yes">budget</option>-->
<!--                                 </select> -->
<!--                           </div>-->
<!--                       </div>-->
                       
                       
                       
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <textarea class="form-control" name="comment"></textarea>
                           </div>
                       </div>
                       
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Orientation:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control" required name="ori" id="ori">
                                    <option value="Portrait">Portrait</option>
                                    <option value="Landscape">Landscape</option>
                                 </select> 
                           </div>
                       </div>
                       
<!--                       <div class="item form-group">-->
<!--                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Destination:<span class="required"></span>-->
<!--                        </label>-->
<!--                        <div class="col-md-6 col-sm-6 col-xs-12">-->
<!--                            <select class="form-control" required name="ori" id="ori">-->
<!--                                    <option value="PDF">PDF</option>-->
<!--                                    <option value="Excel">Excel</option>-->
<!--                                 </select> -->
<!--                           </div>-->
<!--                       </div>-->
                       

                      <!-- end-row -->
                        <div class="ln_solid"></div>
                        <div class="form-group">
                       <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                        </div>
                      </div>
                    </form>
            </div>

            <div class="panel panel-default collapse" id="trial1">
                
             <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/trial_balance" method="post" id="trial11">
                 <div class="col-md-12">
                     <div class="col-md-2"></div>
                     <div class="col-md-8">
                         <div class="alert alert-success"><center><b>Trial Balance</b></center></div>
                     </div>
                     <div class="col-md-1"></div>
                 </div>

                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Start Date:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">

                            <?php
                            //Last day of current month.
                            $lastDayThisMonth = date("Y-m-t");
                            ?>
                            <input type='date'  name="from" class="form-control" value="<?php echo $lastDayThisMonth;?>"/>
                           </div>
                      </div>
                      
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">End Date:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type='date' class="form-control" name="to" value="<?php echo date('Y-m-d')?>" />
                           </div>
                       </div>
                       
                       
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Zero Values:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control" required name="zerovalues" id="in_act">
                                     <option value="No">No</option>
                                      <option value="Yes">Yes</option>
                                 </select>
                           </div>
                       </div>

                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <textarea class="form-control" name="comment"></textarea>
                           </div>
                       </div>
                       
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Orientation:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control" required name="ori" id="ori">
                                    <option value="Portrait">Portrait</option>
                                    <option value="Landscape">Landscape</option>
                                 </select> 
                           </div>
                       </div>
                       
                   

                      <!-- end-row -->
                        <div class="ln_solid"></div>
                        <div class="form-group">
                       <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                        </div>
                      </div>
                    </form>
            </div>
             <div class="panel panel-default collapse" id="trial2">
                
             <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/trial_balance2" method="post" id="trial22">
                 <div class="col-md-12">
                     <div class="col-md-2"></div>
                     <div class="col-md-8">
                         <div class="alert alert-success"><center><b>Trial Balance 2</b></center></div>
                     </div>
                     <div class="col-md-1"></div>
                 </div>

                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Start Date:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                         <?php
                           $start = date('Y-m-d', strtotime('-3 years'));
                           
                            ?>
                            <input type='date'  name="from" class="form-control" value="<?php echo $start;?>"/>
                           </div>
                      </div>
                      
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">End Date:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type='date' class="form-control" name="to" value="<?php echo date('Y-m-d')?>" />
                           </div>
                       </div>
                       
                       
                       <!--<div class="item form-group">-->
                       <!-- <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Zero Values:<span class="required"></span>-->
                       <!-- </label>-->
                       <!-- <div class="col-md-6 col-sm-6 col-xs-12">-->
                       <!--     <select class="form-control" required name="zerovalues" id="in_act">-->
                       <!--              <option value="No">No</option>-->
                       <!--               <option value="Yes">Yes</option>-->
                       <!--          </select> -->
                       <!--    </div>-->
                       <!--</div>-->
                       
                      
                       
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <textarea class="form-control" name="comment"></textarea>
                           </div>
                       </div>
                       
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Orientation:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control" required name="ori" id="ori">
                                    <option value="Portrait">Portrait</option>
                                    <option value="Landscape">Landscape</option>
                                 </select> 
                           </div>
                       </div>
                       
                    
                       

                      <!-- end-row -->
                        <div class="ln_solid"></div>
                        <div class="form-group">
                       <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                        </div>
                      </div>
                    </form>
            </div>

            
               <div class="panel panel-default collapse" id="annual">
                
             <form class="form-horizontal form-label-left" action="#" method="post" id="annual1">
                 <div class="col-md-12">
                     <div class="col-md-2"></div>
                     <div class="col-md-8">
                         <div class="alert alert-success"><center><b>Annual Balance Breakdown</b></center></div>
                     </div>
                     <div class="col-md-1"></div>
                 </div>

                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Report Period:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control" required name="blnc" id="blnc">
                                    <option value="No">No</option>
                                    <option value="Yes">Yes</option>
                                 </select> 
                           </div>
                      </div>
                      
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <textarea class="form-control" name="comment"></textarea>
                           </div>
                       </div>
                     
                       

                      <!-- end-row -->
                        <div class="ln_solid"></div>
                        <div class="form-group">
                       <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right" disabled>Get Report</button>
                        </div>
                      </div>
                    </form>
            </div>
            
              <div class="panel panel-default collapse" id="annualexbreak">
                
             <form class="form-horizontal form-label-left" action="#" method="post" id="annualexbreak1">
                 <div class="col-md-12">
                     <div class="col-md-2"></div>
                     <div class="col-md-8">
                         <div class="alert alert-success"><center><b>Annual Expense Beakdown - Detailed</b></center></div>
                     </div>
                     <div class="col-md-1"></div>
                 </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Report Period:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control" required name="blnc" id="blnc">
                                    <option value="No">No</option>
                                    <option value="Yes">Yes</option>
                                 </select> 
                           </div>
                      </div>
                      
                       
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <textarea class="form-control" name="comment"></textarea>
                           </div>
                       </div>
                      

                      <!-- end-row -->
                        <div class="ln_solid"></div>
                        <div class="form-group">
                       <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right" disabled>Get Report</button>
                        </div>
                      </div>
                    </form>
            </div>


                  <div class="panel panel-default collapse" id="bankstatement">

                     <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_bank_statement" method="post" id="bankstatement1">
                         <div class="col-md-12">
                             <div class="col-md-2"></div>
                             <div class="col-md-8">
                                 <div class="alert alert-success"><center><b>Bank Statement</b></center></div>
                             </div>
                             <div class="col-md-1"></div>
                         </div>


                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Bank Accounts:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <select class="form-control select2" required name="bank" id="ori" style="width:240px !important;">
                                    <?php
                                     $heads= $this->db->query("SELECT id,name from `account_heads` WHERE `name` LIKE '%Bank' and is_delete=0")->result_array();
                                        foreach($heads as $val)
                                        {
                                            ?>
                                     <option value="<?php echo $val['id']?>"><?php echo $val['name']?></option>
                                     <?php
                                     }
        ?>
                                 </select>
                             </div>
                         </div>
                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Start Date:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                   <?php
                           $start = date('Y-m-d', strtotime('first day of this month'));
                           
                            ?>
                                    <input type="date" name="from" class="form-control" value="<?php echo $start?>">
                                 </select>
                             </div>
                         </div>

                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">End Date:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                  <?php
                           $end = date('Y-m-d', strtotime('last day of this month'));
                           
                            ?>
                                     <input type="date" name="to" class="form-control" value="<?php echo $end?>">
                                 </select>
                             </div>
                         </div>

                         <!--<div class="item form-group">-->
                         <!--    <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Zero values:<span class="required"></span>-->
                         <!--    </label>-->
                         <!--    <div class="col-md-6 col-sm-6 col-xs-12">-->
                         <!--        <select class="form-control" required name="zero" id="blnc">-->
                         <!--            <option value="No">No</option>-->
                         <!--            <option value="Yes">Yes</option>-->
                         <!--        </select>-->
                         <!--    </div>-->
                         <!--</div>-->


                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <textarea class="form-control" name="comment"></textarea>
                             </div>
                         </div>


                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Orientation:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <select class="form-control" required name="ori" id="ori">
                                     <option value="Portrait">Portrait</option>
                                     <option value="Landscape">Landscape</option>
                                 </select>
                             </div>
                         </div>


                         <!-- end-row -->
                         <div class="ln_solid"></div>
                         <div class="form-group">
                             <div class="col-md-6 col-md-offset-3">
                                 <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                             </div>
                         </div>
                     </form>
                 </div>


                 <div class="panel panel-default collapse" id="banksummary">

                     <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_bank_summary" method="post" id="banksummary1">
                         <div class="col-md-12">
                             <div class="col-md-2"></div>
                             <div class="col-md-8">
                                 <div class="alert alert-success"><center><b>Bank Summary Report</b></center></div>
                             </div>
                             <div class="col-md-1"></div>
                         </div>
                    
                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Bank Accounts:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <select class="form-control select2" required name="bank" style="width:240px !important;">
                                      <option value="-1">Select All</option>
                                     <?php
                                     $heads= $this->db->query("SELECT id,name from `account_heads` WHERE `name` LIKE '%Bank' and is_delete=0 or id='6' or id='7'")->result_array();
                                        foreach($heads as $val)
                                        {
                                            ?>
                                     <option value="<?php echo $val['id']?>"><?php echo $val['name']?></option>
                                     <?php
                                     }
        ?>
                                 </select>
                             </div>
                         </div>
                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Start Date:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                
                                    <?php
                           $start = date('Y-m-d', strtotime('first day of this month'));
                           
                            ?>
  <input type="date" name="from" class="form-control" value="<?php echo $start?>">
                             </div>
                         </div>

                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">End Date:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                
                                     <?php
                           $start = date('Y-m-d', strtotime('last day of this month'));
                            ?>
  <input type="date" name="to" class="form-control" value="<?php echo $start?>">
                              
                             </div>
                         </div>

                     

                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <textarea class="form-control" name="comment"></textarea>
                             </div>
                         </div>


                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Orientation:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <select class="form-control" required name="ori" id="ori">
                                     <option value="Portrait">Portrait</option>
                                     <option value="Landscape">Landscape</option>
                                 </select>
                             </div>
                         </div>

                      

                         <!-- end-row -->
                         <div class="ln_solid"></div>
                         <div class="form-group">
                             <div class="col-md-6 col-md-offset-3">
                                 <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                             </div>
                         </div>
                     </form>
                 </div>

                 <div class="panel panel-default collapse" id="cashflow">

                     <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_cash_flow" method="post" id="cashflow11">
                         <div class="col-md-12">
                             <div class="col-md-2"></div>
                             <div class="col-md-8">
                                 <div class="alert alert-success"><center><b>Cash Flow Statement</b></center></div>
                             </div>
                             <div class="col-md-1"></div>
                         </div>

                         
                         <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Start Date:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                         <?php
                           $start = date('Y-m-d',  strtotime('first day of this month'));
                           
                            ?>
                            <input type='date'  name="from" class="form-control" value="<?php echo $start ;?>"/>
                           </div>
                      </div>
                      
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">End Date:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                             <?php
                           $start = date('Y-m-d',  strtotime('last day of this month'));
                           
                            ?>
                            <input type='date'  name="to" class="form-control" value="<?php echo $start;?>"/>
                           </div>
                       </div>
                       
                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <textarea class="form-control" name="comment"></textarea>
                             </div>
                         </div>


                        

                         <!-- end-row -->
                         <div class="ln_solid"></div>
                         <div class="form-group">
                             <div class="col-md-6 col-md-offset-3">
                                 <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                             </div>
                         </div>
                     </form>
                 </div>
                 <div class="panel panel-default collapse" id="bankstatementwr">

                     <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/bankstatement_wr" method="post" id="bankstatementwr1">
                         <div class="col-md-12">
                             <div class="col-md-2"></div>
                             <div class="col-md-8">
                                 <div class="alert alert-success"><center><b>Bank Statement w / Reconcile</b></center></div>
                             </div>
                             <div class="col-md-1"></div>
                         </div>

                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Bank Accounts:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <select class="form-control" required name="bank" id="ori">
                                    <?php
                                    $query=$this->db->query("SELECT id,name from account_heads where name like '%bank' and is_delete=0")->result();
                                   
                                    foreach($query as $row)
                                    {
                                        ?>
                                        <option value="<?php echo $row->id?>"><?php echo $row->name?></option>;
                                    <?php
                                    }
                                    ?>
                                 </select>
                             </div>
                         </div>
                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Start Date:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                             <?php
                           $start = date('Y-m-d',  strtotime('first day of this month'));
                           
                            ?>

                                    <input type='date'  name="from" class="form-control" value="<?php echo $start ;?>"/>

                             </div>
                         </div>

                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">End Date:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                  <?php
                           $start = date('Y-m-d',  strtotime('last day of this month'));
                           
                            ?>
                                <input type='date'  name="to" class="form-control" value="<?php echo $start ;?>"/>
                             </div>
                         </div>


                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <textarea class="form-control" name="comment"></textarea>
                             </div>
                         </div>


                      

                         <!-- end-row -->
                         <div class="ln_solid"></div>
                         <div class="form-group">
                             <div class="col-md-6 col-md-offset-3">
                                 <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                             </div>
                         </div>
                     </form>
                 </div>
                 <div class="panel panel-default collapse" id="bankstatementwrn">

                     <form class="form-horizontal form-label-left" action="#" method="post">
                         <div class="col-md-12">
                             <div class="col-md-2"></div>
                             <div class="col-md-8">
                                 <div class="alert alert-success"><center><b>Bank Statement w / Reconcile-New</b></center></div>
                             </div>
                             <div class="col-md-1"></div>
                         </div>
                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Bank Accounts:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <select class="form-control" required name="ori" id="ori">
                                     <option value="">MCB</option>
                                     <option value="">Soneri</option>
                                     <option value="">HBL</option>
                                     <option value="">Bank Al Habib</option>
                                 </select>
                             </div>
                         </div>
                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Start Date:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">

                                 <input type="date" name="sdate" class="form-control">

                             </div>
                         </div>

                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">End Date:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <input type="date" name="edate" class="form-control">
                             </div>
                         </div>


                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comments:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <textarea class="form-control" name="comment"></textarea>
                             </div>
                         </div>


                       

                         <div class="item form-group">
                             <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Reconciled:<span class="required"></span>
                             </label>
                             <div class="col-md-6 col-sm-6 col-xs-12">
                                 <select class="form-control" required name="ori" id="ori">
                                     <option value="">All</option>
                                     <option value="">Yes</option>
                                     <option value="">No</option>
                                 </select>
                             </div>
                         </div>

                         <!-- end-row -->
                         <div class="ln_solid"></div>
                         <div class="form-group">
                             <div class="col-md-6 col-md-offset-3">
                                 <button id="send" type="submit" class="btn btn-success pull-right" disabled>Get Report</button>
                             </div>
                         </div>
                     </form>
                 </div>
            
            
            </div>
        </div>
            
        </div>
            
           
            
                
                
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->
       <!-- jQuery -->
    <script src="<?php echo base_url(); ?>assets/vendors/jquery/dist/jquery.min.js"></script>
    <script src="<?php echo base_url()?>assets/select/js/select2.min.js"></script>
    <!-- Custom JS -->
    <script src="<?php echo base_url(); ?>assets/js/main.js"></script>
    <!-- Bootstrap -->
    <script src="<?php echo base_url(); ?>assets/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="<?php echo base_url(); ?>assets/vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="<?php echo base_url(); ?>assets/vendors/nprogress/nprogress.js"></script>
    <!-- Chart.js -->
    <script src="<?php echo base_url(); ?>assets/vendors/Chart.js/dist/Chart.min.js"></script>
    <!-- gauge.js -->
    <script src="<?php echo base_url(); ?>assets/vendors/gauge.js/dist/gauge.min.js"></script>
    <!-- bootstrap-progressbar -->
    <script src="<?php echo base_url(); ?>assets/vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
    <!-- iCheck -->
    <script src="<?php echo base_url(); ?>assets/vendors/iCheck/icheck.min.js"></script>
    <!-- Skycons -->
    <script src="<?php echo base_url(); ?>assets/vendors/skycons/skycons.js"></script>
    <!-- Flot -->
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.pie.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.time.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.stack.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.resize.js"></script>
    <!-- Flot plugins -->
    <script src="<?php echo base_url(); ?>assets/js/flot/jquery.flot.orderBars.js"></script>
    <!--<script src="<?php echo base_url(); ?>assets/js/flot/date.js"></script>-->
    <script src="<?php echo base_url(); ?>assets/js/flot/jquery.flot.spline.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/flot/curvedLines.js"></script>
    <!-- jVectorMap -->
    <script src="<?php echo base_url(); ?>assets/js/maps/jquery-jvectormap-2.0.3.min.js"></script>
    <!-- bootstrap-daterangepicker -->
    <script src="<?php echo base_url(); ?>assets/js/moment/moment.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/bootstrap-datepicker.js"></script>
     <!-- bootstrap-daterangepicker -->
    <script src="<?php echo base_url(); ?>assets/js/moment/moment.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/datepicker/daterangepicker.js"></script>
    <!-- Jquery UI-daterangepicker -->
    <script src="<?php echo base_url(); ?>assets/vendors/datepicker/jquery-ui.min.js"></script>

        <script>
            $(document).ready(function() {
                $('#chart_of_accounts').submit(function() {
                    window.open('<?php echo base_url()?>Reports/bio_data', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });

                $('#journal22').submit(function() {
                    window.open('<?php echo base_url()?>Reports/print_summary_ledgerajax', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });

                $('#trial11').submit(function() {
                    window.open('<?php echo base_url()?>Reports/trial_balance', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                 $('#trial22').submit(function() {
                    window.open('<?php echo base_url()?>Reports/trial_balance2', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });



                $('#balancesheet111').submit(function() {
                    window.open('<?php echo base_url()?>Reports/print_summary_balance', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });

                $('#proftloss').submit(function() {
                    window.open('<?php echo base_url()?>Reports/print_summary_pls', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                                $('#journal23').submit(function() {
                    window.open('<?php echo base_url()?>Reports/print_summary_ledgerajax1', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                   $('#bankstatement1').submit(function() {
                    window.open('<?php echo base_url()?>Reports/print_bank_statement', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                $('#banksummary1').submit(function() {
                    window.open('<?php echo base_url()?>Reports/print_bank_summary', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                 $('#cashflow11').submit(function() {
                    window.open('<?php echo base_url()?>Reports/print_cash_flow', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                $('#voucher1').submit(function() {
                    window.open('<?php echo base_url()?>Reports/vouchers', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                $('#bankstatementwr1').submit(function() {
                    window.open('<?php echo base_url()?>Reports/bankstatement_wr', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
//     window.collapseAllopened=function(ref) {
//       //console.log(ref);
//     $('.collapse').collapse('hide');
//     console.log(ref.data-target);
//     $(ref.data-target).click();
//   // return false;
// }
                $('.list-group-item').click(function(){
                    var ref=$(this).attr('data-target');
                    //console.log(ref);
                    $('.collapse').collapse('hide');
                    $(ref).click();
                })

//                $( function() {
//                    $( ".datepicker" ).datepicker({dateFormat: 'd-m-yy' }).val();
//                } );



            });


        </script>
<script>
    $(document).ready(function() {
        $('.select2').select2();
        allowClear: true
    });
</script>
<script>
       
       
            $(function(){
                   
   <?php if($this->user_model->is_super()){ ?>
            $(document).on("change","#branch",function(){
                var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select class</opiton>';
                    $("#class").html(pre+d);
                });
            });
            <?php }else{ ?>
                var value = $('#branch').val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select class</opiton>';
                    $("#class").html(pre+d);
                });
            <?php } ?>
            
        });

        $(document).ready(function(){
            $(document).on("change","#class",function(){
                    $("#section_div").show();
                    var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/section/role/"+value,{},function(d){
                    var pre = '<option value="">Select Section</opiton>';
                    $("#section").html(pre+d);
                    jq('#section').multiselect('reload');
                });
            });
            
        });
    </script>


        </body>
        </html>