@if ($error != '')
**{{$error}}
|
SL No.
|
Narration
|
Project
|
Warning: Undefined variable $monthORyear in /home/shikkhaplus/public_html/resources/views/hr/consolitedStaffReport/consolitedStaffReportTable.blade.php on line 105 Previous Month ({{$previousDate}}) |
Warning: Undefined variable $monthORyear in /home/shikkhaplus/public_html/resources/views/hr/consolitedStaffReport/consolitedStaffReportTable.blade.php on line 109 Current Month ({{$currentDate}}) |
Difference
|
||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$slNo}} | @if ($count == 0) @php ++$count; @endphpTotal Employee | @endif @if ($loopCount == 3) @php ++$loopCount; ++$loopTracker; // $projectIDs = [1,15]; @endphp @php $ProjectTypeID = DB::table('gnr_project_type') ->where('name', $projectsName[$i]) ->pluck('id') ->toArray(); $currentMonthStatus = DB::table('hr_emp_org_info') ->where([['branch_id_fk', '=', 1], ['joining_date', '<=', $endDate], ['terminate_resignation_date', '>', $endDate] ]) ->orWhere([['branch_id_fk', '=', 1], ['joining_date', '<=', $endDate], ['terminate_resignation_date', '=', '0000-00-00'] ]) ->whereIn('project_id_fk', $projectIDs) ->pluck('id') ->toArray(); $previousMonthStatus = DB::table('hr_emp_org_info') ->where([['branch_id_fk', '=', 1], ['joining_date', '<=', $endDatePrevious], ['terminate_resignation_date', '>', $endDatePrevious] ]) ->orWhere([['branch_id_fk', '=', 1], ['joining_date', '<=', $endDatePrevious], ['terminate_resignation_date', '=', '0000-00-00'] ]) ->whereIn('project_id_fk', $projectIDs) ->pluck('id') ->toArray(); // $currentMonthAppointmentStatus = DB::table('hr_emp_org_info') // ->where([['branch_id_fk', '=', 1], ['joining_date', '>=', $currentMonthStartDate], ['joining_date', '<=', $endDate], ['terminate_resignation_date', '>', $endDate] // ]) // ->orWhere([['branch_id_fk', '=', 1], ['joining_date', '>=', $currentMonthStartDate], ['joining_date', '<=', $endDate], ['terminate_resignation_date', '=', '0000-00-00'] // ]) // ->whereIn('project_id_fk', $projectIDs) // ->pluck('id') // ->toArray(); @endphpHead Office (PKSF, Non-PKSF, General) | {{sizeof($previousMonthStatus)}} | {{sizeof($currentMonthStatus)}} | {{sizeof($currentMonthStatus)-sizeof($previousMonthStatus)}} | @elseif ($loopTracker >= 1) @php $ProjectTypeID = DB::table('gnr_project_type') ->where('name', $projectsName[$i-1]) ->pluck('id') ->toArray(); $currentMonthStatus = DB::table('hr_emp_org_info') ->where([['project_type_id_fk', $ProjectTypeID[0]], ['joining_date', '<=', $endDate], ['terminate_resignation_date', '>', $endDate] ]) ->orWhere([['project_type_id_fk', $ProjectTypeID[0]], ['joining_date', '<=', $endDate], ['terminate_resignation_date', '=', '0000-00-00'] ]) ->pluck('id') ->toArray(); $previousMonthStatus = DB::table('hr_emp_org_info') ->where([['project_type_id_fk', $ProjectTypeID[0]], ['joining_date', '<=', $endDatePrevious], ['terminate_resignation_date', '>', $endDatePrevious] ]) ->orWhere([['project_type_id_fk', $ProjectTypeID[0]], ['joining_date', '<=', $endDatePrevious], ['terminate_resignation_date', '=', '0000-00-00'] ]) ->pluck('id') ->toArray(); // echo $ProjectTypeID[0]; @endphp{{$projectsName[$i-1]}} | {{sizeof($previousMonthStatus)}} | {{sizeof($currentMonthStatus)}} | {{sizeof($currentMonthStatus)-sizeof($previousMonthStatus)}} | @else @php $ProjectTypeID = DB::table('gnr_project_type') ->where('name', $projectsName[$i]) ->pluck('id') ->toArray(); $currentMonthStatus = DB::table('hr_emp_org_info') ->where([['branch_id_fk', '!=', 1], ['joining_date', '<=', $endDate], ['project_type_id_fk', $ProjectTypeID[0]], ['terminate_resignation_date', '>', $endDate] ]) ->orWhere([['branch_id_fk', '!=', 1], ['joining_date', '<=', $endDate], ['project_type_id_fk', $ProjectTypeID[0]], ['terminate_resignation_date', '=', '0000-00-00'] ]) ->pluck('id') ->toArray(); $previousMonthStatus = DB::table('hr_emp_org_info') ->where([['branch_id_fk', '!=', 1], ['joining_date', '<=', $endDate], ['project_type_id_fk', $ProjectTypeID[0]], ['terminate_resignation_date', '>', $endDatePrevious] ]) ->orWhere([['branch_id_fk', '!=', 1], ['joining_date', '<=', $endDate], ['project_type_id_fk', $ProjectTypeID[0]], ['terminate_resignation_date', '=', '0000-00-00'] ]) ->pluck('id') ->toArray(); @endphp{{$projectsName[$i]}} | {{sizeof($previousMonthStatus)}} | {{sizeof($currentMonthStatus)}} | {{sizeof($currentMonthStatus)-sizeof($previousMonthStatus)}} | @endif
| {{++$slNo}} | Appointed | PKSF (Branch) | {{sizeof($PreviousMonthAppointmentStatus)}} | {{sizeof($currentMonthAppointmentStatus)}} | {{sizeof($currentMonthAppointmentStatus)-sizeof($PreviousMonthAppointmentStatus)}} | ||||||||
| {{++$slNo}} | Non-PKSF (Branch) | {{sizeof($PreviousMonthAppointmentStatusN)}} | {{sizeof($currentMonthAppointmentStatusN)}} | {{sizeof($currentMonthAppointmentStatusN)-sizeof($PreviousMonthAppointmentStatusN)}} | |||||||||
| {{++$slNo}} | Others | {{sizeof($PreviousMonthAppointmentStatusO)}} | {{sizeof($currentMonthAppointmentStatusO)}} | {{sizeof($currentMonthAppointmentStatusO)-sizeof($PreviousMonthAppointmentStatusO)}} | |||||||||
| {{$slNo}} | @if ($count == 0) @php ++$count; @endphpRetirement/Terminated | @endif @if ($loopCount == 3) @php ++$loopCount; ++$loopTracker; $currentMonthStatus = DB::table('hr_emp_org_info') ->where([['branch_id_fk', '=', 1], ['terminate_resignation_date', '>=', $currentMonthStartDate], ['terminate_resignation_date', '<=', $endDate] ]) ->whereIn('project_id_fk', $projectIDs) ->pluck('id') ->toArray(); $previousMonthStatus = DB::table('hr_emp_org_info') ->where([['branch_id_fk', '=', 1], ['terminate_resignation_date', '>=', $previousMonthStartDate], ['terminate_resignation_date', '<=', $endDatePrevious] ]) ->whereIn('project_id_fk', $projectIDs) ->pluck('id') ->toArray(); @endphpHead Office (PKSF, Non-PKSF, General) | {{sizeof($previousMonthStatus)}} | {{sizeof($currentMonthStatus)}} | {{sizeof($currentMonthStatus)-sizeof($previousMonthStatus)}} | @elseif ($loopTracker >= 1) @php $ProjectTypeID = DB::table('gnr_project_type') ->where('name', $projectsName[$i-1]) ->pluck('id') ->toArray(); $currentMonthStatus = DB::table('hr_emp_org_info') ->where([['project_type_id_fk', $ProjectTypeID[0]], ['terminate_resignation_date', '>=', $currentMonthStartDate], ['terminate_resignation_date', '<=', $endDate] ]) ->pluck('id') ->toArray(); $previousMonthStatus = DB::table('hr_emp_org_info') ->where([['project_type_id_fk', $ProjectTypeID[0]], ['terminate_resignation_date', '>=', $previousMonthStartDate], ['terminate_resignation_date', '<=', $endDatePrevious] ]) ->pluck('id') ->toArray(); @endphp{{$projectsName[$i-1]}} | {{sizeof($previousMonthStatus)}} | {{sizeof($currentMonthStatus)}} | {{sizeof($currentMonthStatus)-sizeof($previousMonthStatus)}} | @else @php $ProjectTypeID = DB::table('gnr_project_type') ->where('name', $projectsName[$i]) ->pluck('id') ->toArray(); $currentMonthStatus = DB::table('hr_emp_org_info') ->where([['branch_id_fk', '!=', 1], ['project_type_id_fk', $ProjectTypeID[0]], ['terminate_resignation_date', '>=', $currentMonthStartDate], ['terminate_resignation_date', '<=', $endDate] ]) ->pluck('id') ->toArray(); $previousMonthStatus = DB::table('hr_emp_org_info') ->where([['branch_id_fk', '!=', 1], ['project_type_id_fk', $ProjectTypeID[0]], ['terminate_resignation_date', '>=', $previousMonthStartDate], ['terminate_resignation_date', '<=', $endDatePrevious] ]) ->pluck('id') ->toArray(); @endphp{{$projectsName[$i]}} | {{sizeof($previousMonthStatus)}} | {{sizeof($currentMonthStatus)}} | {{sizeof($currentMonthStatus)-sizeof($previousMonthStatus)}} | @endif
| {{++$slNo}} | Transfer | @php $currentMonthStatus = DB::table('hr_emp_org_info') ->join('users', 'hr_emp_org_info.emp_id_fk', '=', 'users.emp_id_fk') ->where([['hr_emp_org_info.project_id_fk', '=', 1]]) ->pluck('users.id') ->toArray(); // dd($currentMonthStatus); $currentMonthTransferStatus = DB::table('hr_transfer') ->where([['effect_date', '>=', $currentMonthStartDate], ['effect_date', '<=', $endDate]]) // ->orWhere([['effect_date', '>=', $previousMonthStartDate], ['effect_date', '<=', $endDatePrevious]]) ->whereIn('users_id_fk', $currentMonthStatus) ->pluck('id') ->toArray(); $previousMonthTransferStatus = DB::table('hr_transfer') // ->where([['effect_date', '>=', $currentMonthStartDate], ['effect_date', '<=', $endDate]]) ->where([['effect_date', '>=', $previousMonthStartDate], ['effect_date', '<=', $endDatePrevious]]) ->whereIn('users_id_fk', $currentMonthStatus) ->pluck('id') ->toArray(); @endphpMFP (Branch) | {{sizeof($previousMonthTransferStatus)}} | {{sizeof($currentMonthTransferStatus)}} | {{sizeof($currentMonthTransferStatus)-sizeof($previousMonthTransferStatus)}} | ||||||||
| {{++$slNo}} | Permanent | MFP (Brnach) | {{sizeof($permanentUsersMFPDataPrevious)}} | {{sizeof($permanentUsersMFPDataCurrent)}} | {{sizeof($permanentUsersMFPDataCurrent)-sizeof($permanentUsersMFPDataPrevious)}} | ||||||||
| {{++$slNo}} | Others (Salary increment of cook) | {{sizeof($permanentUsersOthersDataPrevious)}} | {{sizeof($permanentUsersOthersDataCurrent)}} | {{sizeof($permanentUsersOthersDataCurrent)-sizeof($permanentUsersOthersDataPrevious)}} | |||||||||
| {{++$slNo}} | Acting Responsible Person | MFP (Branch) | {{sizeof($actingBenefitPrevios)}} | {{sizeof($actingBenefitCurrent)}} | {{sizeof($actingBenefitCurrent)-sizeof($actingBenefitPrevios)}} |
| Prepared By | : | |
| Date | : |
| Verified By | : | |
| Date | : |
| Approved By | : | |
| Date | : |