
<?php $__env->startSection('main-content'); ?>
    <main>
        <div class="container-fluid">
            <h2 class="mt-5 mb-4">Salary Reporting List</h2>

            <div class="row">
            <div class="col-md-12">
            <div class="card card-primary">
                        <div class="card-header">
                            <!-- <h6 class="card-title"></h6> -->
                            <a href="<?php echo e(url('/admin/salary-calculate')); ?>"  style="float: right;"><button class="btn btn-primary">Generate Salary</button></a>
                        </div>
                        <form action="<?php echo e(url('/admin/report/salary-report')); ?>" method="get">
                        <div class="card-body" id="demo">
                            <div class="col-md-2">
                                <div class="form-group">
                                    <label for="">From Date</label>
                                    <input type="date" class="form-control" name="from_date" id="from_date" value="<?php echo e(Request::get('from_date')); ?>">
                                </div>
                            </div>
                            <div class="col-md-2">
                                <div class="form-group">
                                    <label for="">To Date</label>
                                    <input type="date" class="form-control" name="to_date" id="to_date" value="<?php echo e(Request::get('to_date')); ?>">
                                </div>
                            </div>
                            <div class="col-md-2">
                                <div class="form-group">
                                    <label>Registrar EA Combination</label>
                                    <select name="Ea_Code" id="eacode" onchange="eacodeFun()" class="form-control select2">
                                        <option value="">All</option>
                                        <?php $__currentLoopData = DB::table('registrars')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($val->Ea_Code); ?>" <?php echo e(Request::get('Ea_Code')==$val->Ea_Code ?
                                            'selected' : ''); ?>>
                                            <?php echo e($val->Ea_Code); ?> (<?php echo e($val->Ea_Name); ?>)</option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-2">
                                <label for="">State</label>
                                <select name="state" id="state" onchange="stateFun()" class="form-control">
                                    <option value="">All</option>
                                    <?php $__currentLoopData = $state; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($val->state); ?>" <?php echo e(Request::get('state')==$val->state ? 'selected':''); ?>><?php echo e($val->state); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            
                            <div class="col-md-2">
                                <div class="form-group">
                                    <label for="">District</label>
                                    <select name="district" id="district" onchange="districtFun()" class="form-control">
                                        <option value="">All</option>
                                        <?php $__currentLoopData = $districtList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                         <option value="<?php echo e($val->District); ?>" <?php echo e(Request::get('district') == $val->District ? 'selected':''); ?>><?php echo e($val->District); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-2">
                                <div class="form-group">
                                    <label for="">Branch Code</label>
                                    <select name="branch_code" id="branch" onchange="branchFun()" class="form-control">
                                        <option value="">All</option>
                                        <?php $__currentLoopData = $branchList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($val->branch_code); ?>" <?php echo e(Request::get('branch_code') == $val->branch_code ? 'selected':''); ?>><?php echo e($val->branch_code); ?> <?php echo e($val->branch_name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-2">
                                <div class="form-group">
                                    <label for="">Operator Name</label>
                                    <select name="operator_code" id="operator" class="form-control">
                                        <option value="">All</option>
                                        <?php $__currentLoopData = $operatorList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($val->Operator_Code); ?>" <?php echo e(Request::get('operator_code') == $val->Operator_Code ? 'selected':''); ?>><?php echo e($val->Operator_Code); ?> <?php echo e($val->Operator_Name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-2">
                                <input type="submit" name="submit" class="btn btn-primary" value="Filter" style="margin-top: 25px;">
                                <input type="submit" name="submit" class="btn btn-primary" value="Export Excel"  style="margin-top: 25px; float:right;">
                            </div>
                        </div>
                        </form>
                </div>
            </div>
                <div class="col-md-12">
                    <div class="card card-primary">
                        <div class="card-header">
                            <!-- <h6 class="card-title"></h6> -->
                            
                        </div>
                        <div class="card-body" id="demo">
                            <div class="table-responsive">
                                <table class="table table-bordered table-striped" style="width: 2000px;" cellspacing="0">
                                    <thead>
                                        <tr>
                                            <th>S.No.</th>
                                            <th>Branch</th>
                                            <th>District</th>
                                            <th>Operator ID</th>
                                            <th>Operator/Supervisor Name </th>
                                            <th>Father Name</th>
                                            <th>Date Of Joining</th>
                                            <th>Salary Date</th>
                                            <th>Total Present days in month</th>
                                            <th>Total Full Day</th>
                                            <th>Total Half Day</th>
                                            <th>Payout@11098	</th>
                                            <th>ESIC @.75%</th>
                                            <th>PF @12%</th>
                                            <th>Employer ESIC @ 3.25%</th>
                                            <th>Employer PF @ 13%</th>
                                            <th>TOTAL</th>
                                            <th>Net Salary	</th>
                                            <th>PF NO.	</th>
                                            <th>ESI NO	</th>
                                        </tr>
                                    </thead>
                                    <tbody>


                                        <?php $__empty_1 = true; $__currentLoopData = $List; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key =>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                        <tr>
                                            <td><?php echo e($key + $List->firstItem()); ?></td>
                                            <td><?php echo e($val->branch->branch_name); ?></td>
                                            <td><?php echo e($val->branch->district); ?></td>
                                            <td><?php echo e($val->operator_code); ?></td>
                                            <td><?php echo e($val->operator->Operator_Name); ?></td>
                                            <td><?php echo e($val->operator->Father_Name); ?></td>
                                            <td><?php echo e(date('d-m-Y', strtotime($val->created_at))); ?></td>
                                            <td><?php echo e($val->salary_date); ?></td>
                                            <td><?php echo e($val->total_present_in_month); ?></td>
                                            <td><?php echo e($val->total_fullday_count); ?></td>
                                            <td><?php echo e($val->total_halfday_count); ?></td>
                                            <td><?php echo e($val->payout); ?></td>
                                            <td><?php echo e($val->ESIC); ?></td>
                                            <td><?php echo e($val->PF); ?></td>
                                            <td><?php echo e($val->Employer_ESIC); ?></td>
                                            <td><?php echo e($val->Employer_PF); ?></td>
                                            <td><?php echo e($val->TOTAL); ?></td>
                                            <td><?php echo e($val->Net_Salary); ?></td>
                                            <td><?php echo e($val->PF_NO); ?></td>
                                            <td><?php echo e($val->ESI_NO); ?></td>
                                        </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>

                                        <tr>
                                            <td colspan="17">No Record Found !!</td>
                                        </tr>
                                            
                                        <?php endif; ?>
                                     
                                        
                                    </tbody>
                                </table>
                                <?php echo $List->appends($_GET)->links(); ?>

                            </div>
                        </div>
                        <!-- /.card-body -->
                    </div>
                    <!-- /.card -->

                    <!-- end -->
                </div>
            </div>

        </div>
    </main>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/aks5g/public_html/aadhar.aks.5g.in/resources/views/admin/report/salary_reporting.blade.php ENDPATH**/ ?>