File: /var/www/html/hrms-production/resources/views/admin/EmployeeProfile/service-book-list.blade.php
@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>All Employees</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">
{{-- Emmployee List --}}
<div class="row">
<div class="col-12">
<form action="" method="post" id="">
@csrf
<div class="card">
<div class="card-header">
List of Employees
</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>Employee Code (M)</th>
<th>Employee Name</th>
<th>Controlling Officer</th>
<th>Department</th>
<th>Designation</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach ($AllServiceBook as $AllServiceBook)
<tr>
<td>{{ $loop->iteration }}</td>
<td><a href="{{ url('employee-service-book', $AllServiceBook->EmployeeId) }}" target="blank">{{ $AllServiceBook->EmployeeCode }}</a></td>
<td>{{ $AllServiceBook->EmployeeName }}</td>
<td>{{ $AllServiceBook->ControllingOfficer }}</td>
<td>{{ $AllServiceBook->DepartmentName }}</td>
<td>{{ $AllServiceBook->DesignationName }}</td>
<td>
{{-- <button class="btn btn-xs btn-info" data-toggle="tooltip"
data-placement="top" title="Edit"
id="{{ $AllServiceBook->EmployeeId }}"><i
class="fas fa-edit"></i></button>
<button class="btn btn-xs btn-danger" data-toggle="tooltip"
data-placement="top" title="Delete"
id="{{ $AllServiceBook->EmployeeId }}"><i
class="fas fa-trash"></i></button> --}}
</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 formReset()
{
Swal.fire({
title: 'Do Want to reset form?',
text: "Are you sure you want to reset this form!",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes, reset it!'
}).then(function() {
$('form#paySlipForm').each(function() {
this.reset();
});
});
}
</script>
<script>
$(function() {
$("#emplaoyeeTable").DataTable({
"responsive": true,
"lengthChange": true,
"autoWidth": false,
"lengthMenu": [10, 20, 50, 100, 250, 500],
//"buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
}).buttons().container().appendTo('#userTable_wrapper .col-md-6:eq(0)');
});
</script>
<!-- /.content-wrapper -->
@endsection