<!-- 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-12 col-sm-12 col-xs-12">
                            <div class="x_title">
                                <h2>Human Resource 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="#teachbio" data-toggle="tab">Teacher Bio Data</a>
                                        </li>
                                        <!--<li><a href="#perform" data-toggle="tab">Performance Report</a>-->
                                        <!--</li>-->
                                        <li><a href="#nonteach" data-toggle="tab">Staff Bio Data</a>
                                        </li>
                                        <li class="navi"><a href="#monthsal" data-toggle="tab">Monthly Salary Sheet</a>
                                        </li>
                                        <li class="navi"><a href="#banksal" data-toggle="tab">Bank Salary Sheet</a>
                                        </li>
                                        <li><a href="#salslip" data-toggle="tab">Payslips Slips</a>
                                        </li>
                                        <li class="navi"><a href="#ded" data-toggle="tab">SalaryDeduction</a>
                                        </li>
                                        <li class="navi"><a href="#increment" data-toggle="tab">Salary Increments</a>
                                        </li>
                                        <li><a href="#allowan" data-toggle="tab">Salary Allowances</a>
                                        </li>
                                        <li class="navi"><a href="#advan" data-toggle="tab">Advance Salary</a>
                                        </li>
                                        <li class="navi"><a href="#perexp" data-toggle="tab">Personal Expense</a>
                                        </li>
                                        <li class="navi"><a href="#dayded" data-toggle="tab">Days Deductions</a>
                                        </li>
                                        
                                         <li class="navi"><a href="#loan" data-toggle="tab">Loan</a></li>
                                         
                                         <!--<li class="navi"><a href="#security" data-toggle="tab">Security</a></li>-->
                                           
                                           <li class="navi"><a href="#deduction" data-toggle="tab">Deduction Amount</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="teachbio">
                                           
                                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/fetch_teacher_status" method="post" id="teachbio1">
                                                <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>Teacher Status
                                                                </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">Status:<span class="required"></span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select select id="status" class="form-control" name="status" style="width:240px !important;">

                                                            <option value="">Select Status</option>
                                                            <?php
                                                            $branch=$this->user_model->getbranch();
                                                            $this->db->where('is_delete',0)->where('branch',$branch) ;
                                                            $this->db->where('type','Teacher') ;
                                                            $satus=$this->db->get('status')->result();
                                                            foreach($satus as $value) {
                                                                ?>
                                                                <option value="<?php echo $value->id;?> "><?php echo $value->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">Teacher:<span class="required"></span>
                                                    </label>
                                                    <div class="col-md-6">

                                                        <select id="teacher" class="form-control" multiple name="teacher[]">
                                                            <?php
                                                            $this->db->where('status',0)->where('branch',$branch) ;
                                                            $tea=$this->db->get('teacher')->result();
                                                            foreach($tea as $value) {
                                                                ?>
                                                                <option value="<?php echo $value->id;?> "><?php echo $value->firstname." ".$value->lastname; ?></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">From:<span class="text-danger"></span>
                                                    </label>
                                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                                        <input type="date" class="form-control " id="date" name="from"  required-temp="true" placeholder="dd-mm-yyyy"
                                                               style="width:100%;">
                                                    </div>
                                                </div>



                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">To:<span class="text-danger"></span>
                                                    </label>
                                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                                        <input type="date" class="form-control " id="date1" name="to" required-temp="true" placeholder="dd-mm-yyyy"
                                                               style="width:100%;">
                                                    </div>
                                                </div>
                                                
                                                <!--<div class="item form-group">-->
                                                <!--    <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Gender:<span class="text-danger"></span>-->
                                                <!--    </label>-->
                                                <!--    <div class="col-md-6 col-sm-6 col-xs-12">-->
                                                <!--        <select id="gender" class="form-control" name="gender">-->
                                                            
                                                <!--                <option value=""></option>-->
                                                <!--                <option value=""></option>-->
                                                <!--                <option value=""></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="nonteach">

                                            <?php if(!$is_super){ ?>
                                                <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/fetch_All_staff" method="post" id="nonteach1">
                                                    <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>Staff Status
                                                                    </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">Status:<span class="required"></span>
                                                        </label>
                                                        <div class="col-md-8">
                                                            <select id="staffstatus" class="form-control" name="status" style="width:240px !important">
                                                                <option value="">Select Status</option>
                                                                <?php       $branch=$this->user_model->getbranch();
                                                                $this->db->where('is_delete',0) ;
                                                                $this->db->where('type','Staff')->where('branch',$branch) ;
                                                                $satus=$this->db->get('status')->result_array();
                                                                foreach($satus as $value) {
                                                                    ?>
                                                                    <option value="<?php echo $value['id'];?> "><?php echo $value['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">Staff:<span class="required"></span>
                                                        </label>
                                                        <div class="col-md-6">

                                                            <select id="staffmulti" class="form-control col-md-7 col-xs-12" multiple name="staff[]" >

                                                                <?php
                                                                $this->db->where('status',0)->where('branch',$branch) ;
                                                                $tea=$this->db->get('staff')->result();
                                                                foreach($tea as $value) {
                                                                    ?>
                                                                    <option value="<?php echo $value->id;?> "><?php echo $value->firstname." ".$value->lastname; ?></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">From:<span class="text-danger"></span>
                                                        </label>
                                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                                            <input type="date" class="form-control " id="date" name="from" pattern="([0-9]{2}|[0-9]{1})[-]([0-9]{2}|[0-9]{1})[-][0-9]{4}" required-temp="true" placeholder="dd-mm-yyyy"
                                                                   style="width:100%;">
                                                        </div>
                                                    </div>



                                                    <div class="item form-group">
                                                        <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">To:<span class="text-danger"></span>
                                                        </label>
                                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                                            <input type="date" class="form-control " id="date1" name="to" pattern="([0-9]{2}|[0-9]{1})[-]([0-9]{2}|[0-9]{1})[-][0-9]{4}" required-temp="true" placeholder="dd-mm-yyyy"
                                                                   style="width:100%;">
                                                        </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>
                                            <?php } ?>

                                        </div>

                                        <div class="tab-pane" id="monthsal">
                                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_list" method="post" id="monthsal1">
                                                <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>Salary
                                                                </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">Type:<span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select name="type" id="type"  class="form-control col-md-7 col-xs-12" style="width:75%;" required>
                                                            <option>Select Type</option>
                                                            <option value="teacher">Teacher Staff</option>
                                                            <option value="staff">Non Teaching Staff</option>
                                                        </select>
                                                    </div>
                                                </div>

                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Month:<span class="text-danger">*</span>
                                                    </label>
                                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                                        <input type="month" id='month' name="month" class="form-control" required>
                                                    </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="banksal">
                                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_listt" method="post" id="banksal11">
                                                <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 Salary Sheet
                                                                </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">
                                                        <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Branch:<span class="required"></span>
                                                        </label>
                                                        <div class="col-md-8">
                                                            <select class="form-control select2" id="branchstd"  name="branch" required style="width:240px !important;">
                                                                <option value=''>Select Branch</option>

                                                                <?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">
                                                        <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Branch:<span class="required">*</span></label>
                                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                                            <input id="branchstd" 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-4 col-sm-3 col-xs-12" for="name">Month:<span class="text-danger">*</span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <input class="form-control"  type="month" name="month"   required style="width:240px !important;">
                                                    </div>
                                                </div>

                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Type:<span class="required"></span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select class="form-control select2" name="type" required style="width:240px !important;">
                                                            <option value="teacher" selected>Teacher</option>
                                                            <option value="staff">Staff</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="salslip">
                                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_salary_slip" method="post" id="salslip1">
                                                <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>Salary Slips
                                                                </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">Type:<span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select name="type" id="typesalr" class="form-control col-md-7 col-xs-12" style="width:75%;">
                                                            <option>Select Type</option>
                                                            <option value='teacher'>Teacher</option>
                                                            <option value='staff'>Staff</option>
                                                        </select>
                                                    </div>
                                                </div>



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

                                                        <select required name="emp" id="empsalrr" class="form-control">
                                                            <option value=''>Select Employee</option>
                                                        </select>

                                                    </div>
                                                </div>



                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Month:<span class="text-danger"></span>
                                                    </label>
                                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                                        <input type="month" class="form-control" name="month" id="month">
                                                    </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="ded">
                                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_summary_slip_dedcutions" method="post" id="ded1">
                                                <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>Salary Deductions
                                                                </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">Type:<span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select name="type" id="typede" required class="form-control col-md-7 col-xs-12" style="width:75%;">
                                                            <option>Select Type</option>
                                                            <option value='teacher'>Teacher</option>
                                                            <option value='staff'>Staff</option>
                                                        </select>
                                                    </div>
                                                </div>



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

                                                        <select required name="emp" id="empeede" class="form-control" style="width:240px !important">
                                                            <option value=''>Select Employee</option>
                                                        </select>

                                                    </div>
                                                </div>



                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Month:<span class="text-danger"></span>
                                                    </label>
                                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                                        <input type="month" class="form-control" name="month" id="month">
                                                    </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="increment">
                                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_summary_slip_increments" method="post" id="increment1">
                                                <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>Increments

                                                                </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">Type:<span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select name="type" id="typeinc" required  class="form-control col-md-7 col-xs-12" style="width:75%;">
                                                              <option value=''>Select Type</option>
                                                          <option value='teacher'>Teacher</option>
                                                          <option value='staff'>Staff</option>
                                                                                    </select>
                                                        
                                                    </div>
                                                </div>



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

                                                       <select class="form-control" multiple name="emp[]" id="empeeinc">
                            
                                                </select> 

                                                    </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">

                                                       <select name="year" class="form-control">
                                                    <option value="">Select Year</option>
                                                    <option value="2017">2017</option>
                                                    <option value="2018">2018</option>
                                                    <option value="2019">2019</option>
                                                    <option value="2020">2020</option>
                                                    </select>

                                                    </div>
                                                </div>



                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Month:<span class="text-danger"></span>
                                                    </label>
                                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                                       <input type="month" class="form-control" name="month">
                                                    </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="allowan">
                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_summary_slip_allowance" method="post" id="allowan1">
                                                <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>Allowances
                                                                </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">Type:<span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select name="type" id="typeallow" required class="form-control col-md-7 col-xs-12" style="width:75%;">
                                                              <option value=''>Select Type</option>
                                                          <option value='teacher'>Teacher</option>
                                                          <option value='staff'>Staff</option>
                                                                                    </select>
                                                        
                                                    </div>
                                                </div>



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

                                                       <select class="form-control" multiple name="emp[]" id="empeeallow">
                            
                                                </select> 

                                                    </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">

                                                       <select name="year" class="form-control">
                                                    <option value="">Select Year</option>
                                                    <option value="2023">2023</option>
                                                    <option value="2024">2024</option>
                                                     <option value="2025">2025</option>
                                                     <option value="2026">2026</option>
                                                    </select>

                                                    </div>
                                                </div>



                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Month:<span class="text-danger"></span>
                                                    </label>
                                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                                       <input type="month" class="form-control" name="month">
                                                    </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="advan">
                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_summary_slip" method="post" id="advan1">
                                                <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>Advances

                                                                </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">Type:<span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select name="type" id="typeadvan" required class="form-control col-md-7 col-xs-12" style="width:75%;">
                                                              <option value=''>Select Type</option>
                                                          <option value='teacher'>Teacher</option>
                                                          <option value='staff'>Staff</option>
                                                                                    </select>
                                                        
                                                    </div>
                                                </div>



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

                                                       <select class="form-control" multiple name="emp[]" id="empeeadvan">
                            
                                                </select> 

                                                    </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">

                                                       <select name="year" class="form-control">
                                                            <option value="">Select Year</option>
                                                   <option value="2017">2017</option>
                                                <option value="2018">2018</option>
                                                 <option value="2019">2019</option>
                                                <option value="2020">2020</option>
                                                    </select>

                                                    </div>
                                                </div>



                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Month:<span class="text-danger"></span>
                                                    </label>
                                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                                       <input type="month" class="form-control" name="month">
                                                    </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="dayded">
                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_summary_slip_days" method="post" id="dayded1">
                                                <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>Days Deductions

                                                                </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">Type:<span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select name="type" id="typedayded" required  class="form-control col-md-7 col-xs-12" style="width:75%;">
                                                              <option value=''>Select Type</option>
                                                          <option value='teacher'>Teacher</option>
                                                          <option value='staff'>Staff</option>
                                                                                    </select>
                                                        
                                                    </div>
                                                </div>



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

                                                       <select class="form-control" multiple name="emp[]" id="empeedayded">
                            
                                                </select> 

                                                    </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">

                                                       <select name="year" class="form-control">
                                                            <option value="">Select Year</option>
                                                   <option value="2023">2023</option>
                                                <option value="2024">2024</option>
                                                 <option value="2025">2025</option>
                                                <option value="2026">2026</option>
                                                    </select>

                                                    </div>
                                                </div>



                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Month:<span class="text-danger"></span>
                                                    </label>
                                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                                       <input type="month" class="form-control" name="month">
                                                    </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="perexp">
                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_summary_slip_expense" method="post" id="perexp1">
                                                <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>Personal Expense


                                                                </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">Type:<span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select name="type" id="typeperexp" required class="form-control col-md-7 col-xs-12" style="width:75%;">
                                                              <option value=''>Select Type</option>
                                                          <option value='teacher'>Teacher</option>
                                                          <option value='staff'>Staff</option>
                                                                                    </select>
                                                        
                                                    </div>
                                                </div>



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

                                                       <select class="form-control" multiple name="emp[]" id="empperexp">
                            
                                                </select> 

                                                    </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">

                                                       <select name="year" class="form-control">
                                                            <option value="">Select Year</option>
                                                   <option value="2023">2023</option>
                                                <option value="2024">2024</option>
                                                 <option value="2025">2025</option>
                                                 <option value="2026">2026</option>
                                             
                                                    </select>

                                                    </div>
                                                </div>



                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Month:<span class="text-danger"></span>
                                                    </label>
                                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                                       <input type="month" class="form-control" name="month">
                                                    </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="loan">
                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_summary_slip_loan" method="post" id="loan1">
                                                <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>Loan


                                                                </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">Type:<span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select name="type" id="typeloan"  class="form-control col-md-7 col-xs-12" style="width:75%;" required>
                                                              <option value=''>Select Type</option>
                                                          <option value='teacher'>Teacher</option>
                                                          <option value='staff'>Staff</option>
                                                                                    </select>
                                                        
                                                    </div>
                                                </div>



                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Employee Name:<span class="required"></span>
                                                    </label>
                                                    <div class="col-md-6">
                                                       <select class="form-control"  name="emp[]" id="emploan" style="width:240px !important;">
                                                           <option value=''>Select Employee</option>
                                                </select> 

                                                    </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">

                                                       <select name="year" class="form-control">
                                                            <option value="">Select Year</option>
                                                   <option value="2023">2023</option>
                                                <option value="2024">2024</option>
                                                 <option value="2025">2025</option>
                                                 <option value="2026">2026</option>
                                             
                                                    </select>

                                                    </div>
                                                </div>



                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12" for="name">Month:<span class="text-danger"></span>
                                                    </label>
                                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                                       <input type="month" class="form-control" name="month">
                                                    </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="security">
                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_summary_security" method="post" id="security1">
                                                <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>Security


                                                                </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">Type:<span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select name="type" id="typesecurity"  class="form-control col-md-7 col-xs-12" style="width:75%;" required>
                                                          <option value=''>Select Type</option>
                                                          <option value='teacher'>Teacher</option>
                                                          <option value='staff'>Staff</option>
                                                        </select>
                                                        
                                                    </div>
                                                </div>



                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Employee Name:<span class="required"></span>
                                                    </label>
                                                    <div class="col-md-6">
                                                        <select class="form-control"  name="emp"  id="empsecurity" style="width:240px !important;" required>
                                                           <option value=''>Select Employee</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="deduction">
                            <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_deduction_summary" method="post" id="deduction1">
                                                <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>Deduction Amounts


                                                                </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">Type:<span class="required">*</span>
                                                    </label>
                                                    <div class="col-md-8">
                                                        <select name="type" id="typededuction"  class="form-control col-md-7 col-xs-12" style="width:75%;" required>
                                                          <option value=''>Select Type</option>
                                                          <option value='teacher'>Teacher</option>
                                                          <option value='staff'>Staff</option>
                                                        </select>
                                                        
                                                    </div>
                                                </div>



                                                
                                                
                                                <div class="item form-group">
                                                    <label class="control-label col-md-4 col-sm-3 col-xs-12"   for="name">Month:<span class="required"></span>
                                                    </label>
                                                    <div class="col-md-6">
                                                       <input type="month" class="form-control" name="tdate" id="tdate" class="required">

                                                    </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>
                                </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() {
                $('#nonteach1').submit(function() {
                    window.open('<?php echo base_url()?>Report/fetch_All_staff', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                $('#teachbio1').submit(function() {
                    window.open('<?php echo base_url()?>Reports/fetch_teacher_status', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                $('#monthsal1').submit(function() {
                    window.open('<?php echo base_url()?>Report/print_list', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                 $('#banksal11').submit(function() {
                    window.open('<?php echo base_url()?>Report/print_listt', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });

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

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

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

                $('#sesswise1').submit(function() {
                    window.open('<?php echo base_url()?>Report/fetch_teacher_report', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                 $('#increment1').submit(function() {
                    window.open('<?php echo base_url()?>Report/print_summary_slip_increments', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });

                 $('#allowan1').submit(function() {
                    window.open('<?php echo base_url()?>Report/print_summary_slip_allowance', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                 $('#ded1').submit(function() {
                    window.open('<?php echo base_url()?>Report/print_summary_slip_dedcutions', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                $('#advan1').submit(function() {
                    window.open('<?php echo base_url()?>Report/print_summary_slip', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });

                $('#dayded1').submit(function() {
                    window.open('<?php echo base_url()?>Report/print_summary_slip_days', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                $('#perexp1').submit(function() {
                    window.open('<?php echo base_url()?>Report/print_summary_slip_expense', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                $('#loan1').submit(function() {
                    window.open('<?php echo base_url()?>Report/print_summary_slip_loan', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                
                 $('#security1').submit(function() {
                    window.open('<?php echo base_url()?>Report/print_summary_security', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });
                
                $('#deduction1').submit(function() {
                    window.open('<?php echo base_url()?>Report/print_deduction_summary', 'formpopup', 'width=800,height=1000,resizeable,scrollbars');
                    this.target = 'formpopup';
                });

            });
        </script>
       
      
        <script src="<?php echo base_url()?>assets/select/js/select2.min.js"></script>
      

        <!---Teacher Bio Data-->
       <script>
 
     $('#status').select2({
     //selectOnClose: true,
    allowClear:true
    });
    
     $('#staffstatus').select2({
     //selectOnClose: true,
    allowClear:true
    });
     $('#emploan').select2({
     //selectOnClose: true,
    allowClear:true
    });
    
     $('#empsecurity').select2({
     //selectOnClose: true,
    allowClear:true
    });
    
       $('#empdeduction').select2({
     //selectOnClose: true,
    allowClear:true
    });
    
     $('#empeede').select2({
     //selectOnClose: true,
    allowClear:true
    });
    
    
    </script>
    <script>
        $(function(){
         
            $(document).on("load","#class",function(){
                var val = $(this).val();
                $.get("<?php echo base_url(); ?>load/teacherWise/"+val,{},function(ret){
                    $("#teacher").html(ret);
                    jq('#teacher').multiselect('reload');
                });
            });
        

            jq('#teacher').multiselect({
                columns: 1,
                placeholder: 'Select Teacher',
                selectAll: true,
                search: true
            });
        });
    </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>
        
     $( function() {
        $( '.date' ).datepicker({ dateFormat: 'd-m-yy' }).val();
      } );
    
        function date(selector) {
            var dNow = new Date();
            var localdate = dNow.getFullYear()+'/' +(dNow.getMonth() + 1)+'/' + dNow.getDate();
           
        };
    </script>
    <script>
        
     $( function() {
        $( '.date1' ).datepicker({ dateFormat: 'd-m-yy' }).val();
      } );
    
        function date(selector) {
            var dNow = new Date();
            var localdate = dNow.getFullYear()+'/' +(dNow.getMonth() + 1)+'/' + dNow.getDate();
           
        };
    </script>
  <!---Teacher Bio Data end-->
  
    <!---Salary Slips-->
  
  <!---Deduction -->
  
  <script>

    $('#typede').change(function() {


   var c=$(this).val();
   
   if(c=="teacher"){
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval/"+c, 
          success: function(result){
                 
                $("#empeede").html(result);
                jq('#empeede').multiselect('reload');
                
            }}
            );
    


   }else{
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval1/"+c, 
          success: function(result){
                $("#empeede").html(result);
                jq('#empeede').multiselect('reload');
                
            }
            });
 }
    
  });
</script> 
  
  
   <script>

 $('#typesalr').change(function() {


   var c=$(this).val();
   
   if(c=="teacher"){
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval/"+c, 
          success: function(result){
                 
                $("#empsalrr").html(result);
                jq('#empsalrr').multiselect('reload');
                
            }}
            );

   }else{
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval1/"+c, 
          success: function(result){
                $("#empsalrr").html(result);
                jq('#empsalrr').multiselect('reload');
                
            }
            });
 }
    
  });
        $("#empesalr").select2({
          
        });
   
 
   </script>
  
  
  <!---Non teaching staff bio data -->
  <script>
        $(function(){
         
            $(document).on("load","#class",function(){
                var val = $(this).val();
                $.get("<?php echo base_url(); ?>load/staffWise/"+val,{},function(ret){
                    $("#staffmulti").html(ret);
                    jq('#staffmulti').multiselect('reload');
                });
            });
        

            jq('#staffmulti').multiselect({
                columns: 1,
                placeholder: 'Select Staff',
                selectAll: true,
                search: true
            });
        });
    </script>
    <!---increments -->
    
     <script>
    jq('#empeeinc').multiselect({
                columns: 1,
                placeholder: 'Select Employee',
                selectAll: true,
                search: true
            });
</script>


<script>

    $('#typeinc').change(function() {


   var c=$(this).val();
   
   if(c=="teacher"){
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval/"+c, 
          success: function(result){
                 
                $("#empeeinc").html(result);
                jq('#empeeinc').multiselect('reload');
                
            }}
            );
    


   }else{
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval1/"+c, 
          success: function(result){
                $("#empeeinc").html(result);
                jq('#empeeinc').multiselect('reload');
                
            }
            });
 }
  
  });
</script> 

<!---Allowance -->
    
<script>
    jq('#empeeallow').multiselect({
                columns: 1,
                placeholder: 'Select Employee',
                selectAll: true,
                search: true
            });
</script>

<script>

    $('#typeallow').change(function() {


   var c=$(this).val();
   
   if(c=="teacher"){
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval/"+c, 
          success: function(result){
                 
                $("#empeeallow").html(result);
                jq('#empeeallow').multiselect('reload');
                
            }}
            );
    


   }else{
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval1/"+c, 
          success: function(result){
                $("#empeeallow").html(result);
                jq('#empeeallow').multiselect('reload');
                
            }
            });
 }
    
  });
</script> 


<!---Advance -->

<script>
    jq('#empeeadvan').multiselect({
                columns: 1,
                placeholder: 'Select Employee',
                selectAll: true,
                search: true
            });
</script>
<script>

    $('#typeadvan').change(function() {


   var c=$(this).val();
   
   if(c=="teacher"){
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval/"+c, 
          success: function(result){
                 
                $("#empeeadvan").html(result);
                jq('#empeeadvan').multiselect('reload');
                
            }}
            );
    


   }else{
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval1/"+c, 
          success: function(result){
                $("#empeeadvan").html(result);
                jq('#empeeadvan').multiselect('reload');
                
            }
            });
 }
      
  });
</script> 

<!---Days Deduction -->

<script>
    jq('#empeedayded').multiselect({
                columns: 1,
                placeholder: 'Select Employee',
                selectAll: true,
                search: true
            });
</script>

<script>

    $('#typedayded').change(function() {


   var c=$(this).val();
   
   if(c=="teacher"){
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval/"+c, 
          success: function(result){
                 
                $("#empeedayded").html(result);
                jq('#empeedayded').multiselect('reload');
                
            }}
            );
    


   }else{
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval1/"+c, 
          success: function(result){
                $("#empeedayded").html(result);
                jq('#empeedayded').multiselect('reload');
                
            }
            });
 }
     
  });
</script> 

<!---Personal expense -->

<script>
    jq('#empperexp').multiselect({
                columns: 1,
                placeholder: 'Select Employee',
                selectAll: true,
                search: true
            });
</script>

<script>

    $('#typeperexp').change(function() {


   var c=$(this).val();
   
   if(c=="teacher"){
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval/"+c, 
          success: function(result){
                 
                $("#empperexp").html(result);
                jq('#empperexp').multiselect('reload');
                
            }}
            );
     }else{
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval1/"+c, 
          success: function(result){
                $("#empperexp").html(result);
                jq('#empperexp').multiselect('reload');
                
            }
            });
 }
    
  });
</script> 

<!---Loan  -->

<script>
$('#typeloan').change(function() {
var c=$(this).val();
   if(c=="teacher"){
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval/"+c, 
            success: function(result){
                $("#emploan").html(result);
                jq('#emploan').multiselect('reload');
             }}
            );
    }else{
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval1/"+c, 
            success: function(result){
                $("#emploan").html(result);
                jq('#emploan').multiselect('reload');
            }
            });
 }
});
</script> 

<script>
$('#typesecurity').change(function() {
var c=$(this).val();
   if(c=="teacher"){
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval_security/"+c, 
            success: function(result){
                $("#empsecurity").html(result);
                jq('#empsecurity').multiselect('reload');
             }}
            );
    }else{
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval1_security/"+c, 
            success: function(result){
                $("#empsecurity").html(result);
                jq('#empsecurity').multiselect('reload');
            }
            });
 }
});
</script> 



    
        </body>
        </html></div>