View : 0010_FINDINGS
FINDINGS: @php $overall_finding = @$json->overall_finding; $jsonfinding = (array) @$json->finding; $mainpartsub = DB::table('tb_mainpart') ->select('tb_mainpartsub.*') ->distinct('mainpartsub_id') ->join('tb_case', 'tb_case.case_procedurecode', 'tb_mainpart.mainpart_procedure_code') ->join('tb_mainpartsub', 'tb_mainpart.mainpart_id', '=', 'tb_mainpartsub.mainpartsub_mp_id') ->where('case_id', $casedata->case_id) ->orderby('mainpartsub_sort','asc') ->get(); $check_find = 0; $check_find2 = 0; @endphp @foreach ($jsonfinding as $key => $value) @php if($value != ''){ $check_find2 = 1; } @endphp @endforeach @foreach ($mainpartsub as $l) @php $findding = "finding".$l->mainpartsub_id; $testx[] =@$json->$findding; if(isset($json->$findding)){ $check_find = 1; } @endphp @endforeach @foreach ($mainpartsub as $l) @php $findding = "finding".$l->mainpartsub_id; if(isset($json->finding)){ $find = (array) $json->finding; } @endphp @if(@$find[$l->mainpartsub_name]!="") @endif @endforeach
{{$l->mainpartsub_name}} : @if(isset($find) && isset($l->mainpartsub_name)) @if(isset($find[$l->mainpartsub_name])) {{$find[$l->mainpartsub_name]}} @if($find[$l->mainpartsub_name]=="") @if(webconfig('pdf_findding_normal')) normal @else N/A @endif @endif @else @if(webconfig('pdf_findding_normal')) normal @else N/A @endif @endif @else @if(webconfig('pdf_findding_normal')) normal @else N/A @endif @endif
@if(@$json->overall_finding != '' && @$json->overall_finding =! null) OVERALL FINDING :  
{!!without_tagP(@$overall_finding)!!} @endif