File: /var/www/html/hrms-production/resources/views/admin/EmployeeProfile/employee-age-relax.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 id="page-title">Employee Age Relax</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="#AddAgeRelax">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="empAgeRelaxTable" class="table table-bordered table-striped table-sm">
<thead>
<tr>
<th>S.No.</th>
<th>Employee Code</th>
<th>Employee Name</th>
<th>Order No.</th>
<th>Order Date</th>
<th>Meeting Date</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach ($EmpAgeRelax as $EmpAgeRelax)
<tr>
<td>{{ $loop->iteration }}</td>
<td><a href="{{ url('view-employee', $EmpAgeRelax->EmployeeId) }}" target="blank">{{ $EmpAgeRelax->EmployeeCode }}</a></td>
<td>{{ $EmpAgeRelax->EmployeeName }}</td>
{{-- <td>{{ $EmpAgeRelax->Designation }}</td> --}}
<td>
@if ($EmpAgeRelax->OrderNo)
{{ $EmpAgeRelax->OrderNo }}
@else
--
@endif
</td>
<td>
@if ($EmpAgeRelax->OrderDate)
{{ date('d-M-y', strtotime($EmpAgeRelax->OrderDate)) }}
@else
--
@endif
</td>
<td>{{ date('d-M-y', strtotime($EmpAgeRelax->MeetingDate)) }}</td>
<td>
@if ($EmpAgeRelax->ApprovalLock == 0)
<button type="button" title="Edit"
onclick="editEmpAgeRelax('{{ $EmpAgeRelax->AgeRelaxId }}')" ;
class="btn btn-xs btn-outline-info" data-id=""><i
class="fas fa-edit"></i></button>
<button type="button" title="Delete"
onclick="deleteEmpAgeRelax('{{ $EmpAgeRelax->AgeRelaxId }}')" ;
class="btn btn-xs btn-outline-danger"
data-id="'{{ $EmpAgeRelax->AgeRelaxId }}'"><i
class="fas fa-trash-alt"></i></button>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</form>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
{{-- JS Start --}}
<script>
$(function() {
$("#empAgeRelaxTable").DataTable({
"responsive": true,
"lengthChange": true,
"autoWidth": false,
"lengthMenu": [10, 20, 50, 100, 250, 500],
"buttons": ["csv", "excel", "pdf", "print", "colvis"]
}).buttons().container().appendTo('#empAgeRelaxTable_wrapper .col-md-6:eq(0)');
});
</script>
<!-- /.content-wrapper -->
<x-EmployeeAgeRelaxModal />
@endsection