@php $lasthistory = json_decode($lasthistories); $antecedants_data = json_decode($lasthistory->antecedants_data); $candidate_data = json_decode($lasthistory->candidate_data,true); if(isset($candidate_data['bc_fc_address'])){ $fc_address = $candidate_data['bc_fc_address']; } else { $fc_address = 'test'; } if(isset($antecedants_data->verification_date)){ $verification_date = $antecedants_data->verification_date; } else { $verification_date = ''; } if(isset($antecedants_data->severity)){ $severity = $antecedants_data->severity; } else { $severity = ''; } if(isset($antecedants_data->conclusion)){ $conclusion = $antecedants_data->conclusion; } else { $conclusion = ''; } $name = ''; if(isset($antecedants_data->name)){ $name = $antecedants_data->name; } $kyc_doc = ''; if(isset($antecedants_data->kyc_doc)){ $kyc_doc = $antecedants_data->kyc_doc; } if(isset($antecedants_data->kyc_doc_no->value)){ $kyc_doc_no = $antecedants_data->kyc_doc_no->value; } else { $kyc_doc_no = ''; } $f_name = ''; if(isset($antecedants_data->f_name)){ $f_name = $antecedants_data->f_name; } $address = ''; if(isset($antecedants_data->address)){ $address = $antecedants_data->address; } $case_severity = ''; if(isset($antecedants_data->case_severity)){ $case_severity = $antecedants_data->case_severity; } if(isset($antecedants_data->IPC_CrPC_ection->value)){ $IPC_CrPC_ection = $antecedants_data->IPC_CrPC_ection->value; } else { $IPC_CrPC_ection = ''; } if(isset($antecedants_data->respondent_name->value)){ $respondent_name = $antecedants_data->respondent_name->value; } else { $respondent_name = ''; } if(isset($antecedants_data->designation->value)){ $designation = $antecedants_data->designation->value; } else { $designation = ''; } if(isset($antecedants_data->severity_messages_id)){ $severity_messages_id = $antecedants_data->severity_messages_id; } else { $severity_messages_id = ''; } @endphp Verification Date * Name * {{$employees->first_name}} {{$employees->last_name}} KYC Document KYC Document NO Father's Name * {{$employees->co_name}} Address * {{ $fc_address }} Case Severity * IPC/CrPC Section Respondent Name * Designation Severity * @if($severity_messages_id != '') @endif Remarks * @if($taskhistorydocs) @foreach($taskhistorydocs as $key => $files) Attachments {{ $key + 1 }} {{ $files->document_name }} Delete @endforeach @endif Attachnment