File: /var/www/html/hrms-production/storage/framework/views/85f5dc8d8707ccf0ab3343382f372f9d2511ad8f.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</h1>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<!-- /.card-header -->
<div class="card-body">
<table id="Group" class="table table-bordered table-striped table-sm">
<thead>
<tr>
<th></th>
<th class="text-center">Sanction</th>
<th class="text-center">Filled</th>
<th class="text-center">Vacant</th>
</tr>
</thead>
<tbody>
<?php $TotalGroupSanctionPost = 0; $TotalGroupFilledPost=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["TotalGroupSanctionPost"]); ?></td>
<?php
$TotalPost = isset($report["TotalGroupSanctionPost"]) ? $report["TotalGroupSanctionPost"] : '';
$TotalGroupSanctionPost = $TotalGroupSanctionPost + $TotalPost;
?>
<td><?php echo e($report["TotalGroupFilledPost"]); ?></td>
<?php
$TotalFilled = isset($report["TotalGroupFilledPost"]) ? $report["TotalGroupFilledPost"] : '';
$TotalGroupFilledPost = $TotalGroupFilledPost + $TotalFilled;
?>
<td>
<?php if($report["TotalGroupSanctionPost"] > $report["TotalGroupFilledPost"]): ?>
<?php echo e($report["TotalGroupSanctionPost"] - $report["TotalGroupFilledPost"]); ?>
<?php else: ?>
<?php echo e('0'); ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr>
<th rowspan="3" class="text-center">Total</th>
<th class="text-center"><?php echo e($TotalGroupSanctionPost); ?></th>
<th class="text-center"><?php echo e($TotalGroupFilledPost); ?></th>
<th class="text-center">
<?php if($TotalGroupSanctionPost > $TotalGroupFilledPost): ?>
<?php echo e($TotalGroupSanctionPost - $TotalGroupFilledPost); ?>
<?php else: ?>
<?php echo e('0'); ?>
<?php endif; ?>
</th>
</tr>
</tbody>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</form>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
<script>
$(function() {
$("#Group").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('#Group_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/group-wise-report.blade.php ENDPATH**/ ?>