File: /var/www/html/hrms-production/resources/views/admin/Reports/employee-card.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>Records of Employee I-Cards</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="#addEmployeeIcard">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="ICardTable" class="table table-bordered table-striped table-sm">
<thead>
<tr>
<th>S.No.</th>
<th>Employee Name</th>
<th>Designation</th>
<th>Joining Date</th>
<th>Working Place</th>
<th>Recommended Letter No. & Date</th>
<th>Demand Purpose</th>
<th>Aadhar Card</th>
<th>Icard English/Marathi</th>
<th>Receipt of Payment</th>
<th>Outward No. & Date</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach ($IcardReport as $IcardReport)
<tr>
<td>{{ $loop->iteration }}</td>
<td><a href="{{ url('/view-employee-icard/'.$IcardReport->EmployeeICardId) }}" target="_blank">{{ $IcardReport->EmployeeName }}</a></td>
<td>{{ $IcardReport->DesignationName }}</td>
<td>{{ $IcardReport->JoiningDate }}</td>
<td>{{ $IcardReport->ActualWorkPlaceName }}</td>
<td>{{ $IcardReport->OrderDate }}</td>
<td>{{ $IcardReport->DemandPurpose }}</td>
<td>{{ $IcardReport->AadharCardNo }}</td>
<td>{{ $IcardReport->ICardLanguage }}</td>
<td> @if(!empty($IcardReport->PaymentRecieptPath))
<a href="{{ url('/').$IcardReport->PaymentRecieptPath }}" target="_blank">{{ url('/').$IcardReport->PaymentRecieptPath }}</a>
@else
{{'Payment Reciept Empty'}}
@endif
</td>
<td>@if(!empty($IcardReport->OrderFilePath))
<a href="{{ url('/').$IcardReport->OrderFilePath }}" target="_blank">{{ url('/').$IcardReport->OrderFilePath }}</a>
@else
{{'Order File Empty'}}
@endif
</td>
<td>
@if ($IcardReport->ApprovalLock == 0)
<button type="button" title="Edit"
onclick="editIcardReport('{{ $IcardReport->EmployeeICardId }}')" ;
class="btn btn-xs btn-outline-info" data-id=""><i
class="fas fa-edit"></i></button>
<button type="button" title="Delete"
onclick="deleteIcardReport('{{ $IcardReport->EmployeeICardId }}')" ;
class="btn btn-xs btn-outline-danger"
data-id="'{{ $IcardReport->EmployeeICardId }}'"><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 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() {
$("#ICardTable").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 -->
<x-EmployeeIcardModal />
@endsection