documents_type][]=$document->path.$document->file_name; $documentsrem[$document->documents_type][]=$document->remarks; $documentsid[$document->documents_type][]=$document->id; $documentsno[$document->documents_type][]=$document->documents_no; //echo '
'; print_r($document); echo ''; } // $traing_doc_count=count($documentsarr[_DOC_TRAININGCODE_]); // $other_doc_count=count($documentsarr[_DOC_OTHERCODE_]); // $additional_certificate_count=count($documentsarr[_ADDL_CERTIFICATE_]); // $educationBackground = json_decode($nurse->educationBackground); // $school_certificate_count=count($educationBackground); # modified on 07-19-2021 if(in_array(_DOC_TRAININGCODE_,$documentsarr)){ $traing_doc_count=count($documentsarr[_DOC_TRAININGCODE_]); }else{$traing_doc_count=0;} if(in_array(_DOC_OTHERCODE_,$documentsarr)){ $other_doc_count=count($documentsarr[_DOC_OTHERCODE_]); }else{$other_doc_count=0;} if(in_array(_ADDL_CERTIFICATE_,$documentsarr)){ $additional_certificate_count=count($documentsarr[_ADDL_CERTIFICATE_]); }else{$additional_certificate_count=0;} if($nurse->educationBackground!=""){ $educationBackground = json_decode($nurse->educationBackground); $school_certificate_count=count($educationBackground); }else{$school_certificate_count=0;} # modification ending here $progress = json_decode($nurse->from_tab_status_pctg); $progressData = $progress->form1+$progress->form2+$progress->form3+$progress->form4+$progress->form5+$progress->form6+$progress->form7+$progress->form8+$progress->form9+$progress->form10+$progress->form11; $get_csrf_token_name = $this->security->get_csrf_token_name(); $get_csrf_token_value = $this->security->get_csrf_hash(); // $docdata['documentsarr']=$documentsarr; // $docdata['documentsrem'] = $documentsrem; $docdata['documentsarr']=$documentsarr; $docdata['documentsrem'] = $documentsrem; $docdata['documentsid'] = $documentsid; $docdata['documentsno'] = $documentsno; foreach($licenses as $data){ $lic[]=$data; } $licensevalue= json_encode($lic,true); $licenseData = json_decode($licensevalue); if($licenses!=""){$licenseDataCount=count($licenses);}else{$licenseDataCount=0;} // $licenseDataCount=count($licenses); // die($licenseeDataCount); ?> session->flashdata('feedback_error')){ ?> session->flashdata('feedback_success')){ ?>