              <!-- 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;
    }
    .tabs-left>li> a:hover {
        background-color:  rgba(38,185,154,0.88) !important;
    }
    .tabs-left>li.active>a, .tabs-left>li.active>a:hover, .tabs-left>li.active>a:focus {
        background-color:  rgba(38,185,154,0.88) !important;
    }
    .al{
        height: 5px;
        width:250px;
    }

</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="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_content">
        <div class="row">
           
            
            <div class="col-md-2"></div>
           
             <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="x_title">
                                <h2>Accounts Reports</h2>
                                <ul class="nav navbar-right panel_toolbox">
                                </ul>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <div class="col-md-3">

                                    <ul class="nav nav-tabs tabs-left">
                                        <li class="active"><a href="#chart" data-toggle="tab">Chart Of Accounts</a>
                                        </li>
                                        <li><a href="#journal" data-toggle="tab">Journal Entries List</a>
                                        </li>
                                        <li class="navi"><a href="#ledger" data-toggle="tab">Ledger</a>
                                        </li>
                                        <li class="navi"><a href="#voucher" data-toggle="tab">Vouchers</a>
                                        
                                        <!-- <li><a href="#expense" data-toggle="tab">Annual Expense Breakdown</a>-->
                                        <!--</li>-->
                                        <li class="navi"><a href="#balance" data-toggle="tab">Balance Sheet</a>
                                        </li>
                                        <li class="navi"><a href="#profit" data-toggle="tab">Profit & Loss Statement</a>
                                        </li>
                                        
                                         <li class="navi"><a href="#trial1" data-toggle="tab">Trial Balance</a>
                                        </li>
                                         <li class="navi"><a href="#trial2" data-toggle="tab">Trial Balance 2</a>
                                        </li>
                                        <!--<li class="navi"><a href="#annual" data-toggle="tab">Annual Balance Breakdown - Detailed</a>-->
                                        <!--</li>-->
                                        <!-- <li><a href="#annualexbreak" data-toggle="tab">Annual Expense Breakdown - Detailed</a>-->
                                        <!--</li>-->
                                        <li class="navi"><a href="#bankstatement" data-toggle="tab">Bank Statement</a>
                                        </li>
                                        <li class="navi"><a href="#banksummary" data-toggle="tab">Bank Summary Report</a>
                                        </li>
                                        <li class="navi"><a href="#cashflow" data-toggle="tab">Cash Flow Statement</a>
                                        </li>
                                        <li class="navi"><a href="#bankstatementwr" data-toggle="tab">Bank Statement W/Reconcile</a>
                                        </li>
                                        <!-- <li class="navi"><a href="#bankstatementwrn" data-toggle="tab">Bank Statement w/Reconcile-New</a>-->
                                        <!--</li>-->
                                        
                                        

                                    </ul>
                                </div>
                                <div class="col-md-2"></div>
                                <div class="col-md-6">

                                    <div class="tab-content">

                                        <div class="tab-pane active" id="chart">
                 <form class="form-horizontal form-label-left" action="<?php echo base_url()?>Report/chart_ofaccounts" method="post" id="chart_of_accounts">
                 <div class="col-md-12">
                     <div class="col-md-2"></div>
                
                      <div class="col-md-6" style="display:inline-block;margin-left: 70px">
                                                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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-4 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-4 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-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="orientation" id="ori">
                                    <option value="Portrait">Portrait</option>
                                    <option value="Landscape">Landscape</option>
                                 </select> 
                           </div>
                       </div>
                       
                    
                       

                      <!-- end-row -->
                       <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            </div>
                                       
                                        <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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-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="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            </div>
                                        
                                        <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                     </form>
                 </div>
                                        
                                        <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                     </form>
                 </div>
        
                                        <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><b>Annual Expense Breakdown
                        </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">Year:<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <select class="form-control" required name="year" id="blnc">
                                <option value="">01-07-2016 - 30-06-2017  Closed</option>
                                    <option value="">01-07-2017 - 30-06-2018  Closed</option>
                                   <option value="">01-07-2018 - 30-06-2019  Active</option>
                                 </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>


                     <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            </div>
            
                                      <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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-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">
                                      <?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-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">
                                      <?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-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="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            </div>
            
                                        <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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-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">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="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            </div> 
            
            
                                    <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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-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">

                            <?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-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">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-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="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            </div>
            
                                    <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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-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">
                         <?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-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">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="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            </div>
            
                                    <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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-4 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-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>
                     
                       

                      <!-- end-row -->
                         <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            </div>
                 
                                     <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><b>Annual Expense Beakdown
                        </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">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-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>
                      

                      <!-- end-row -->
                        <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                    </form>
            </div>
                                     <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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-4 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-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">
                                
                                    <?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-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">
                                
                                     <?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-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="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                     </form>
                 </div>
                                    <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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-4 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-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">
                                   <?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-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">
                                  <?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-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="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                     </form>
                 </div>
                                    <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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-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">
                         <?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-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">
                             <?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-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>


                        

                         <!-- end-row -->
                        <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                     </form>
                 </div>
                                    <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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-4 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-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">
                             <?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-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">
                                  <?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-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>


                      

                         <!-- end-row -->
                         <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                     </form>
                 </div>
                                    <div class="tab-pane" 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-6" style="display:inline-block;margin-left: 70px">
                        <div class="alert alert-success align-middle al"><center style="margin-top: -10px"><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-4 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-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" name="sdate" class="form-control">

                             </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" name="edate" class="form-control">
                             </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">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>

                         <div class="form-group">
                                                    <div class="col-md-6" style="display:inline-block;margin-left: 180px">
                                                        <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                                                    </div>
                                                </div>
                     </form>
                 </div>
                                       

                                    </div>
                                </div>
                                <div class="clearfix"></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/chart_ofaccounts', '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>

        </body>
        </html>