HEX
Server: Apache/2.4.46 (Ubuntu)
System: Linux localhost 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64
User: root (0)
PHP: 7.4.16
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/hrms-production/storage/framework/views/3f2f44724a9b443302e0dce0bea57a30c925f3dd.php

<?php $__env->startSection('content'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 id="page-title">Group wise Abstract (Nomination/Promotion)</h1>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-12 col-sm-12">
                    <div class="card card-primary card-outline card-outline-tabs">
                        <!--  <div class="card-header p-0 border-bottom-0">
                            <ul class="nav nav-tabs" id="custom-tabs-four-tab" role="tablist">
                                <li class="nav-item">
                                    <a class="nav-link active" id="group-wise-nomination-tab" data-toggle="pill"
                                    href="#group-wise-nomination" role="tab" aria-controls="group-wise-nomination"
                                    aria-selected="true"><i class="fas fa-table-alt"></i> Nomination</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" id="group-wise-promotion-tab" data-toggle="pill"
                                    href="#group-wise-promotion" role="tab"
                                    aria-controls="group-wise-promotion" aria-selected="false"><i class="fas fa-table-alt"></i> Promotion</a>
                                </li>
                            </ul>
                        </div> -->
                        <div class="card-body">
                            <div class="tab-content" id="tabContent">
                                <div class="tab-pane fade show active" id="group-wise-nomination" role="tabpanel"
                                    aria-labelledby="group-wise-nomination">
                                    
                                    <!-- <div class="row justify-content-end">
                                    <div class="col-sm-4 text-right">
                                        <button type="button" class="btn btn-sm btn-outline-success mx-1"
                                        id="downloadbtn_front"><i class="fa fa-download"></i></button>
                                    </div>
                                </div> -->
                                    <div id="servicebook_frontpage">
                                        <div class="card-body">
                                            <div class="row justify-content-around">
                                                <div class="col-md-12">
                                                    <table id="emplaoyeeTable"
                                                        class="table table-bordered table-striped table-sm">
                                                        <thead>
                                                            <tr>
                                                                <th style="text-align: center">Group</th>
                                                                <th style="text-align: center">Sanction</th>
                                                                <th style="text-align: center">Filled By Nomination</th>
                                                                <th style="text-align: center">Filled By Promotion</th>
                                                                <th style="text-align: center">Vacant</th>
                                                            </tr>
                                                        </thead>
                                                        <tbody>
                                                            <?php $TotalGroupSanctionPost = 0; $TotalFilledNominationPost = 0; $TotalFilledPromotionPost = 0;
                                                            ?>
                                                            <?php $__currentLoopData = $groupData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $report): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <tr class="text-center">
                                                                <td><?php echo e($report["GroupName"]); ?></td>

                                                                <td><?php echo e($report["TotalSanctionPostGroup"]); ?></td>

                                                                <?php 
                                                          $TotalPost = isset($report["TotalSanctionPostGroup"]) ? $report["TotalSanctionPostGroup"] : '';
                                                             $TotalGroupSanctionPost  = $TotalGroupSanctionPost + $TotalPost;
                                                             ?>

                                                                <td><?php echo e($report["TotalGroupWiseNomination"]); ?></td>

                                                                <?php 
                                                          $NominationFilled = isset($report["TotalGroupWiseNomination"]) ? $report["TotalGroupWiseNomination"] : '';
                                                             $TotalFilledNominationPost  = $TotalFilledNominationPost + $NominationFilled;
                                                             ?>

                                                                <td><?php echo e($report["TotalGroupWisePromotion"]); ?></td>

                                                                <?php 
                                                          $PromotionFilled = isset($report["TotalGroupWisePromotion"]) ? $report["TotalGroupWisePromotion"] : '';
                                                             $TotalFilledPromotionPost  = $TotalFilledPromotionPost + $PromotionFilled;
                                                             ?>

                                                            <td>
                                                                <?php if(($report["TotalSanctionPostGroup"]) > ($report["TotalGroupWiseNomination"])): ?>
                                                                <?php echo e(($report["TotalSanctionPostGroup"]) - (($report["TotalGroupWiseNomination"]) + ($report["TotalGroupWisePromotion"]))); ?>

                                                                <?php else: ?>
                                                                <?php echo e('0'); ?>

                                                                <?php endif; ?>
                                                            </td>
                                                            </tr>
                                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                            <tr>
                                                                <th class="text-center">Total</th>
                                                                <th class="text-center"><?php echo e($TotalGroupSanctionPost); ?>

                                                                </th>
                                                                <th class="text-center"><?php echo e($TotalFilledNominationPost); ?>

                                                                </th>
                                                                <th class="text-center"><?php echo e($TotalFilledPromotionPost); ?>

                                                                </th>
                                                                <th class="text-center">
                                                                    <?php echo e(($TotalGroupSanctionPost)-($TotalFilledNominationPost+$TotalFilledPromotionPost)); ?>

                                                                </th>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
    </section>
</div>


<script>
    $(function() {
        $("#emplaoyeeTable").DataTable({
            "responsive": true,
            "ordering": false,
            // "lengthChange": true,
            // "autoWidth": false,
            // "lengthMenu": [10, 20, 50, 100, 250, 500],
            // "columnDefs": [{ "orderable": false, "targets": 0 }],
            "buttons": ["csv", "excel", "pdf", "print"]
        }).buttons().container().appendTo('#emplaoyeeTable_wrapper .col-md-6:eq(0)');
    });
</script>
<!-- /.content-wrapper -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.include.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/hrms-production/resources/views/admin/Reports/group-wise-nomination-promotion.blade.php ENDPATH**/ ?>