Employee List
{{ Form::open(['action' => 'EmployeeListController@index','method' => 'POST','role' => 'search','autocomplete' => 'off']) }}
{{ Form::close() }}
@foreach($emplistData as $key=>$emplist)
@php
$employeeStatus = '';
$employeeFinalStatus = '';
if($emplist->employee_status === 'A')
$employeeStatus = 'Active';
elseif($emplist->employee_status === 'R')
$employeeStatus = 'Resigned';
elseif($emplist->employee_status === 'Ab')
$employeeStatus = 'Absconded';
else
$employeeStatus = 'Separated';
if($emplist->absconded_date != null){
$employeeFinalStatus = 'Absconded';
}
else if($emplist->resigned_date != null){
$employeeFinalStatus = 'Resigned';
}else{
$employeeFinalStatus = $employeeStatus;
}
$error_msg="";
$error=0;
$comf=0;
$last=0;
if($emplist->probation_completion_date==NULL)
{
$error=1;
$error_msg.="Probation completion date not available. ";
}
else if($emplist->probation_completion_date
is_confirmed=="N")
{
$error=1;
$comf=1;
$error_msg.="\nProbation completion date has passed but confirmation is not done. ";
}
if($emplist->user_id=="")
{
$error=1;
$error_msg.="\nUser Id Setup not done. ";
}
if($emplist->reporting==0)
{
$error=1;
$error_msg.="\nSupervisour Setup not done. ";
}
if($emplist->employee_hire_date=='')
{
$error=1;
$error_msg.="\nHire date not available. ";
}
if(($emplist->employee_status === 'R' || $emplist->employee_status === 'Ab') && $emplist->last_working_date=='')
{
$error=1;
$last=1;
$error_msg.="\nLast Working date not available. ";
}
if($emplist->salary_type=='')
{
$error=1;
$error_msg.="\nSalary details not available. ";
}
$class="";
if($error==1)
{
$class="danger";
}
@endphp
@if ($emplist->employee_hire_date!='')
@else
@endif
@if ($emplist->salary_type!='')
@else
@endif
@if ($comf==0)
@else
@endif
@if ($last==0)
@else
@endif
@if($emplist->user_id!='')
@else
@endif
@if($emplist->reporting==0)
@else
@endif
@endforeach
{{-- --}}
Emp Id |
Name |
Category |
Department |
Hire Date |
Salary Type |
Confirmation Date |
Last Working Date |
User Id |
Supervisour Setup |
Status |
Final Status |
{{$emplist->employee_id }} |
{{ $emplist->employee_name }} |
{{ $emplist->job_category_name }} |
{{ $emplist->department_name }} | {{ date("d-m-Y",strtotime($emplist->employee_hire_date)) }} | --- | {{ $emplist->salary_type }} | Not Defined | {{ $emplist->confirmation_date!=''?date("d-m-Y",strtotime($emplist->confirmation_date)):'---' }} | --- | {{ $emplist->last_working_date!=''?date("d-m-Y",strtotime($emplist->last_working_date)):'---' }} | --- | {{ $emplist->user_id }} | No | No | {{ 'Yes -'.$emplist->reporting }} | {{$employeeStatus}} |
{{$employeeFinalStatus}} |
{{ $emplistData->appends(['search' => $search,'searchColumn' => $searchColumn,'searchType' => $searchType,'status' => $status])->links() }} |
@if(session()->has('successMessage'))
×
{{ session()->get('successMessage') }}
@endif
@if(session()->has('errorMessage'))
×
{{ session()->get('errorMessage') }}
@endif