@extends('admin.include.master')
@section('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">Category wise Abstract (Nomination)</h1>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
{{-- Country List --}}
<div class="row">
<div class="col-12">
<div class="card">
{{-- <div class="card-header">
</div> --}}
<!-- /.card-header -->
<div class="card-body">
<table id="emplaoyeeTable" class="table table-bordered table-striped table-sm">
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th colspan="11">Cadre Wise Sanction Post</th>
<th colspan="11">Cadre Wise Filled Post</th>
<th colspan="11">Cadre Wise Vacant Post</th>
</tr>
<tr>
<th>Sr.No.</th>
<th>Cadre</th>
<th>Sanction Post</th>
<th>Filled Post</th>
<th>SC</th>
<th>ST</th>
<th colspan="4">VJ/NT</th>
<th>SBC</th>
<th>OBC</th>
<th>EWS</th>
<th>OPEN</th>
<th>Total</th>
<th>SC</th>
<th>ST</th>
<th colspan="4">VJ/NT</th>
<th>SBC</th>
<th>OBC</th>
<th>EWS</th>
<th>OPEN</th>
<th>Total</th>
<th>SC</th>
<th>ST</th>
<th colspan="4">VJ/NT</th>
<th>SBC</th>
<th>OBC</th>
<th>EWS</th>
<th>OPEN</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>A</td>
<td>B</td>
<td>C</td>
<td>D</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>A</td>
<td>B</td>
<td>C</td>
<td>D</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>A</td>
<td>B</td>
<td>C</td>
<td>D</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
@foreach ($groupData as $report)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $report["CadreName"] }}</td>
<td>
@if ($report["TotalSanctionedPost"] > 0)
{{ $report["TotalSanctionedPost"] }}
@else
--
@endif
</td>
<td>{{ $report["TotalNominationCadreWisePost"] }}</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>
@if($report["BasicCategoryName"] == "Scheduled Caste (SC)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td>
@if($report["BasicCategoryName"] == "Scheduled Tribes (ST)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td>
@if($report["BasicCategoryName"] == "Vimukta Jati (VJ)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td>
@if($report["BasicCategoryName"] == "Nomadic Tribes-B (NT-B)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td>
@if($report["BasicCategoryName"] == "Nomadic Tribes-C (NT-C)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td>
@if($report["BasicCategoryName"] == "Nomadic Tribes-D (NT-D)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td>
@if($report["BasicCategoryName"] == "Special Backward Classes (SBC)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td>
@if($report["BasicCategoryName"] == "Other Backward Classes (OBC)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td>
@if($report["BasicCategoryName"] == "Economically Weaker Sections (EWS)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td>
@if($report["BasicCategoryName"] == "General Category (OPEN)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
{{-- <tr>
<th rowspan="1">Department</th>
<td>{{ $report["NominationCadreWiseDepartment"] }}</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>
@if($report["BasicCategoryName"] == "Vimukta Jati (VJ)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td>
@if($report["BasicCategoryName"] == "Nomadic Tribes-B (NT-B)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td>
@if($report["BasicCategoryName"] == "Nomadic Tribes-C (NT-C)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td>
@if($report["BasicCategoryName"] == "Nomadic Tribes-D (NT-D)")
{{ $report["TotalCategoryPost"] }}
@endif
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr> --}}
@endforeach
</tbody>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</form>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
{{-- JS Start Here --}}
<script>
$(function() {
$("#emplaoyeeTable").DataTable({
"responsive": true,
"ordering": false,
"lengthChange": true,
"autoWidth": false,
// "lengthMenu": [10, 20, 50, 100, 250, 500],
"buttons": ["csv", "excel", "pdf", "print"],
}).buttons().container().appendTo('#emplaoyeeTable_wrapper .col-md-6:eq(0)');
});
</script>
<!-- /.content-wrapper -->
@endsection