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/17b997be16e42e2527954f345939d91d568cc644.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">Parallel Reservation Report</h1>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>
    <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></th>
                                        <th colspan="8" class="text-center">Nomination</th>
                                    </tr>
                                    <tr>
                                        <th></th>
                                        <th class="text-center">Ex. Servicemen</th>
                                        <th class="text-center">Project Affected</th>
                                        <th class="text-center">Earthquake affected</th>
                                        <th class="text-center">Anashakalin karmachari</th>
                                        <th class="text-center">Sportsman</th>
                                        <th class="text-center">Compassion</th>
                                        <th class="text-center">Female</th>
                                        <th class="text-center">Handicapped</th>
                                    </tr>
                                </thead>
                                    <tbody>

                                <?php $__currentLoopData = $groupData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ParallelReport): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                  <?php if($ParallelReport["AppointmentByName"] == "Nomination"): ?>
                                    <tr>
                                       <td><?php echo e($ParallelReport["GroupName"]); ?></td>
                                   <?php 
                                    $EmployeeDetails = isset($ParallelReport["EmployeeDetails"]) ? $ParallelReport["EmployeeDetails"] : '';
                                    $ServicemenCounter = 0;
                                    $ProjectCounter = 0;
                                    $EarthquakeCounter = 0;
                                    $AnashakalinCounter = 0;
                                    $SportsmanCounter = 0;
                                    $CompassionCounter = 0;
                                    $FemaleCounter = 0;
                                    $HandicappedCounter = 0;
                                    $FinalParallelReservationName = '';
                                   for($i = 0; $i < count($EmployeeDetails); $i++) 
                                   { 
                                        $EmployeeData = $EmployeeDetails[$i];
                                        $ParallelReservation = isset($EmployeeData["ParallelReservation"]) ? $EmployeeData["ParallelReservation"] : '';


                                        $ParallelReservationData = isset($ParallelReservation[0]) ? $ParallelReservation[0] : '';

                                        $TotalParallelPost = isset($ParallelReservationData['TotalParallelPost']) ? $ParallelReservationData['TotalParallelPost'] : '';
                                        $ParallelReservationName = isset($ParallelReservationData['ParallelReservationName']) ? $ParallelReservationData['ParallelReservationName'] : '';

                                        if($ParallelReservationName == 'Servicemen')
                                        {
                                            $ServicemenCounter = $ServicemenCounter + $TotalParallelPost;
                                            $FinalParallelReservationName = $ParallelReservationName;
                                        }
                                        if($ParallelReservationName == 'Project Affected')
                                        {
                                            $ProjectCounter = $ProjectCounter + $TotalParallelPost;
                                            $FinalParallelReservationName = $ParallelReservationName;
                                        }
                                        if($ParallelReservationName == 'Earthquake affected')
                                        {
                                            $EarthquakeCounter = $EarthquakeCounter + $TotalParallelPost;
                                            $FinalParallelReservationName = $ParallelReservationName;
                                        }
                                        if($ParallelReservationName == 'Anashakalin karmachari')
                                        {
                                            $AnashakalinCounter = $AnashakalinCounter + $TotalParallelPost;
                                            $FinalParallelReservationName = $ParallelReservationName;
                                        }
                                        if($ParallelReservationName == 'Sportsman')
                                        {
                                            $SportsmanCounter = $SportsmanCounter + $TotalParallelPost;
                                            $FinalParallelReservationName = $ParallelReservationName;
                                        }
                                        if($ParallelReservationName == 'Compassion')
                                        {
                                            $CompassionCounter = $CompassionCounter + $TotalParallelPost;
                                            $FinalParallelReservationName = $ParallelReservationName;
                                        }
                                        if($ParallelReservationName == 'Female')
                                        {
                                            $FemaleCounter = $FemaleCounter + $TotalParallelPost;
                                            $FinalParallelReservationName = $ParallelReservationName;
                                        }
                                        if($ParallelReservationName == 'Handicapped')
                                        {
                                            $HandicappedCounter = $HandicappedCounter + $TotalParallelPost;
                                            $FinalParallelReservationName = $ParallelReservationName;
                                        }

                                     } ?>
                                        <td>
                                            <?php if($FinalParallelReservationName == "Servicemen"): ?>
                                            <?php echo e($ServicemenCounter); ?>

                                            <?php endif; ?>
                                        </td>

                                        <td>
                                            <?php if($FinalParallelReservationName == "Project Affected"): ?>
                                            <?php echo e($ProjectCounter); ?>

                                            <?php endif; ?>
                                        </td>

                                        <td>
                                            <?php if($FinalParallelReservationName == "Earthquake affected"): ?>
                                            <?php echo e($EarthquakeCounter); ?>

                                            <?php endif; ?>
                                        </td>

                                        <td>
                                            <?php if($FinalParallelReservationName == "Anashakalin karmachari"): ?>
                                            <?php echo e($AnashakalinCounter); ?>

                                            <?php endif; ?>
                                        </td>

                                        <td>
                                            <?php if($FinalParallelReservationName == "Sportsman"): ?>
                                            <?php echo e($SportsmanCounter); ?>

                                            <?php endif; ?>
                                        </td>

                                        <td>
                                            <?php if($FinalParallelReservationName == "Compassion"): ?>
                                            <?php echo e($CompassionCounter); ?>

                                            <?php endif; ?>
                                        </td>

                                        <td>
                                            <?php if($FinalParallelReservationName == "Female"): ?>
                                            <?php echo e($FemaleCounter); ?>

                                            <?php endif; ?>
                                        </td>

                                        <td>
                                            <?php if($FinalParallelReservationName == "Handicapped"): ?>
                                            <?php echo e($HandicappedCounter); ?>

                                            <?php endif; ?>
                                        </td>
                                    </tr>
                                    <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>        
                                    </tbody>
                                </table>  
                            </div>
                        </div>
                    </div>
                    </div>
                    </div>
                    <div class="tab-pane fade" id="group-wise-promotion" role="tabpanel"
                    aria-labelledby="group-wise-promotion">
                    <div class="">
                        <!-- <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_all"><i class="fa fa-download"></i></button>
                            </div>
                        </div> -->
                        
                        <div id="servicebook_all">
                            <div class="card-body">
                                <div id="servicebook_frontpage">
                                    
                                    <div class="row justify-content-around">
                                        <div class="col-md-12">
                                     <table id="emplaoyeeTable1" class="table table-bordered table-striped table-sm">
                                <thead>
                                    <tr>
                                        <th></th>
                                        <th class="text-center">Promotion</th>
                                    </tr>
                                    <tr>
                                        <th></th>
                                        <th class="text-center">Handicapped</th>
                                    </tr>
                                </thead>
                                    <tbody>
                                <?php $__currentLoopData = $groupData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ParallelReport): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                  <?php if($ParallelReport["AppointmentByName"] == "Promotion"): ?>
                                    <tr>
                                       <td><?php echo e($ParallelReport["GroupName"]); ?></td>
                                   <?php 
                                    $EmployeeDetails = isset($ParallelReport["EmployeeDetails"]) ? $ParallelReport["EmployeeDetails"] : '';
                                   
                                    $HandicappedCounter = 0;
                                    $FinalParallelReservationName = '';
                                   for($i = 0; $i < count($EmployeeDetails); $i++) 
                                   { 
                                        $EmployeeData = $EmployeeDetails[$i];
                                        $ParallelReservation = isset($EmployeeData["ParallelReservation"]) ? $EmployeeData["ParallelReservation"] : '';


                                        $ParallelReservationData = isset($ParallelReservation[0]) ? $ParallelReservation[0] : '';

                                        $TotalParallelPost = isset($ParallelReservationData['TotalParallelPost']) ? $ParallelReservationData['TotalParallelPost'] : '';
                                        $ParallelReservationName = isset($ParallelReservationData['ParallelReservationName']) ? $ParallelReservationData['ParallelReservationName'] : '';

                                        if($ParallelReservationName == 'Handicapped')
                                        {
                                            $HandicappedCounter = $HandicappedCounter + $TotalParallelPost;
                                            $FinalParallelReservationName = $ParallelReservationName;
                                        }

                                     } ?>

                                        <td>
                                            <?php if($FinalParallelReservationName == "Handicapped"): ?>
                                            <?php echo e($HandicappedCounter); ?>

                                            <?php endif; ?>
                                        </td>
                                    </tr>
                                    <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>  
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</div>
</section>
</div>


<script>
    $(function() {
        $("#emplaoyeeTable").DataTable({
            "responsive": true,
            "ordering": false,
            "paging": 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)');
    });

    $(function() {
        $("#emplaoyeeTable1").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('#emplaoyeeTable1_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/resources/views/admin/Reports/parallel-reservation-report.blade.php ENDPATH**/ ?>