{{-- Reporting Bosses --}} @if($data['config_bosses']['reporting_boss'] != null) @foreach($data['config_bosses']['reporting_boss'] as $key => $configValue) @php $getStepNo = $configValue->step_no; $bossHistory = $data['allFinalPaymentHistories']->where('step_no', $configValue->step_no)->first(); $historyData = ($bossHistory != null && $bossHistory->content != null) ? json_decode($bossHistory->content) : null; $nextActiveStepNo = $data['allFinalPaymentHistories']->where('step_no', '>', $configValue->step_no)->min('step_no'); $nextActiveBossHistory = $data['allFinalPaymentHistories']->where('step_no', $nextActiveStepNo)->first(); $finalPaymentStatus = null; if(isset($configValue->designation_name) && $configValue->designation_name) $finalPaymentStatus = $configValue->designation_name; if(isset($configValue->department_short_name) && $configValue->department_short_name) { $finalPaymentStatus = ($finalPaymentStatus != null) ? $finalPaymentStatus.', ' : null; $finalPaymentStatus = $finalPaymentStatus.$configValue->department_short_name; } if($finalPaymentStatus != null) $finalPaymentStatus = $finalPaymentStatus.', '.$configValue->boss_from; @endphp {{-- Reporting Boss Information --}} @if((isset($configValue->department_name) || isset($configValue->designation_name) || isset($configValue->employee_id) || isset($configValue->employee_name)) && ($bossHistory != null || (isset($configValue->current_active_boss) && $configValue->current_active_boss == true)))

Step {{ $configValue->step_no }}: @if($configValue->employee_id != null && $configValue->employee_name != null) {{ $configValue->employee_id }} - {{ $configValue->employee_name }}, @endif @if($configValue->designation_name != null) {{ $configValue->designation_name }}, @endif @if($configValue->department_short_name != null) {{ $configValue->department_short_name }}, @endif {{ $configValue->boss_from }}

@endif {{-- Reporting Boss With Layouts --}} @if($bossHistory != null && $configValue->current_active_boss == false) @php $approvedById = null; if(isset($bossHistory->updated_by)) { $approvedById = $bossHistory->updated_by; } else { $approvedById = $bossHistory->created_by; } $submittedDate = date('d-m-Y', strtotime($bossHistory->submitted_date)); $previousBossInfo = $data['allFinalPaymentHistories']->where('step_no', '<', $configValue->step_no)->sortByDesc('step_no')->first(); if($previousBossInfo != null) { $previousBossSubmittedDate = date('Y-m-d', strtotime($previousBossInfo->submitted_date)); } else { $previousBossSubmittedDate = date('Y-m-d', strtotime($data['emp_info']->emp_resign_effective_date)); } @endphp @if($historyData->loan_N_equipment_N_financial_claim != null) @include('hr.finalPayment.history.loan_N_equipment_N_financial_info') @endif {{-- Payable & Loan Section --}} @if($historyData->payable_N_loan != null) @include('hr.finalPayment.history.payable_N_loan_info') @endif {{-- Payable & Deduction Section --}} @if($historyData->payable_N_deduction != null) @include('hr.finalPayment.history.payable_N_deduction_info') @endif @include('hr.finalPayment.history.attach_file_N_comments') @if($approvedById != null || $approvedById == 0) @include('hr.finalPayment.history.boss_info') @endif @if(isset($configValue->backtrack_logs) && count($configValue->backtrack_logs) > 0) @include('hr.finalPayment.history.back_to_previous_boss') @endif @if($configValue->backtrack_log_enable == true || $configValue->procced_record_enable == true) @include('hr.finalPayment.history.file_contain_period') @endif @endif @if(isset($configValue->current_active_boss) && $configValue->current_active_boss == true) @if($nextActiveBossHistory == null) @if(isset($configValue->backtrack_logs) && count($configValue->backtrack_logs) > 0) @include('hr.finalPayment.history.back_to_previous_boss') @endif @if($configValue->backtrack_log_enable == true) @include('hr.finalPayment.history.file_contain_period') @endif @php $backToPrevious = false; if(isset($_GET['type']) && $_GET['type'] == 'assignToMe' && $configValue->back_to_previous_step != null) { $backToPrevious = true; } else if($configValue->back_to_previous_step != null) { $backToPrevious = true; } @endphp @if($backToPrevious == true)
@endif
@csrf emp_id }}' /> {{-- Loan, Equipment & Financial Claim Section --}} @if($configValue->layout != null && in_array('loan_N_equipment_N_financial_claim', $configValue->layout)) @include('hr.finalPayment.loan_N_equipment_N_financial_info') @endif {{-- Payable & Loan Section --}} @if($configValue->layout != null && in_array('payable_N_loan', $configValue->layout)) @include('hr.finalPayment.payable_N_loan_info') @endif {{-- Payable & Deduction Section --}} @if($configValue->layout != null && in_array('payable_N_deduction', $configValue->layout)) @include('hr.finalPayment.payable_N_deduction_info') @endif {{-- Attach File & Comment Box Section --}}
Attach File Comment

{{-- If Found Attached Files Section --}} @if($bossHistory != null) @php $files = ($bossHistory->file_names != null) ? json_decode($bossHistory->file_names) : []; @endphp @if($files != null)

Attached Files:

@foreach($files as $key => $file) @endforeach
Attached File - {{ ++$key }}        View     ||     Delete

@endif @endif {{-- Procced & Close Action Button Section --}} @if($data['holdRecord'] == null)
Close

@endif
@endif @endif @endforeach @endif {{-- Check Issue & Payment Boss --}} @if($data['config_bosses']['cheque_issue_boss'] != null && $data['emp_info']->final_payment_status == 'Approved') @if(isset($data['config_bosses']['cheque_issue_boss']['department_name']) || isset($data['config_bosses']['cheque_issue_boss']['designation_name']) || isset($data['config_bosses']['cheque_issue_boss']['employee_id']) || isset($data['config_bosses']['cheque_issue_boss']['employee_name']))

Step {{ ++$getStepNo }}: @if($data['config_bosses']['cheque_issue_boss']['employee_id'] != null && $data['config_bosses']['cheque_issue_boss']['employee_name'] != null) {{ $data['config_bosses']['cheque_issue_boss']['employee_id'] }} - {{ $data['config_bosses']['cheque_issue_boss']['employee_name'] }}, @endif @if($data['config_bosses']['cheque_issue_boss']['designation_name'] != null) {{ $data['config_bosses']['cheque_issue_boss']['designation_name'] }}, @endif @if($data['config_bosses']['cheque_issue_boss']['department_short_name'] != null) {{ $data['config_bosses']['cheque_issue_boss']['department_short_name'] }}, @endif {{ $data['config_bosses']['cheque_issue_boss']['boss_from'] }}

@endif
@csrf emp_id }}' />

Check Issue & Payment:

{{-- Attach File & Comment Box Section --}}
Issue Date Bank Account No.

Close

@endif