@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">Roster</h1>
</div>
{{-- <div class="col-sm-6 text-right">
<button type="button" class="btn btn-sm btn-outline-info mx-1" data-toggle="modal"
data-target="#">Add New</button>
</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>S.No.</th>
<th>Point Category</th>
<th>The name of the employee on the point</th>
<th>Employee's caste category</th>
<th>Date of appointment to the current post</th>
<th>Date of Birth</th>
<th>Date of Retirement</th>
<th>Caste Certificate No. & Date</th>
<th>Official designation for issuing caste certificate</th>
<th>Caste Validity Certificate No. & Date</th>
<th>Name of the committee issuing caste validity certificate</th>
<th>Remarks</th>
</tr>
</thead>
<tbody>
@foreach ($EmpRoasterList as $EmpRoaster)
<tr>
<td>{{ $loop->iteration }}</td>
<td></td>
<td><a href="{{ url('view-employee', $EmpRoaster->EmployeeId) }}" target="_blank" rel="noopener noreferrer">{{ $EmpRoaster->EmployeeName }}</a></td>
<td>{{ $EmpRoaster->CasteName }}</td>
<td>{{ date('d-M-y', strtotime($EmpRoaster->PromotionTransferDate)) }}</td>
<td>{{ date('d-M-y', strtotime($EmpRoaster->DateOfBirth)) }}</td>
<td>{{ date('d-M-y', strtotime($EmpRoaster->RetirementDate)) }}</td>
<td>
@if ($EmpRoaster->CasteCertificateNo)
{{ $EmpRoaster->CasteCertificateNo }}
@else
--
@endif
</td>
<td>
@if ($EmpRoaster->CertificateIssuingOfficer)
{{ $EmpRoaster->CertificateIssuingOfficer }}
@else
--
@endif
</td>
<td>
@if ($EmpRoaster->CastValidityCertificateNo)
{{ $EmpRoaster->CastValidityCertificateNo }}, {{ date('d-M-y', strtotime($EmpRoaster->CasteValidityCertificateDate)) }}
@else
--
@endif
</td>
<td>
@if ($EmpRoaster->CertificateIssuingCommittee)
{{ $EmpRoaster->CertificateIssuingCommittee }}
@else
--
@endif
</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 --}}
{{-- Reset Form Button --}}
<script>
$(function() {
$("#emplaoyeeTable").DataTable({
"responsive": true,
"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