@php $results=$custom_test['results']; @endphp @foreach($results as $result) @if(isset($result['result'])) @php $status=($result['class']>0)?'abnormal':'normal'; @endphp @endif @endforeach @if(!empty($custom_test['comment'])) @endif
{{$custom_test['test']['name']}}
Allergen Name Concentration IU/mL Class
{{$result['component']['name']}} {{(float)$result['result']}} {{$result['class']}}
Comment : {!! $custom_test['comment_html'] !!}
@if(isset($custom_test['class_array'])) @php $classes=['No specific antibody detection','Very weak antibody concentration','Weak antibody concentration','Clear antibody concentration','Strong antibody concentration','Very strong antibody concentration','Extremely high antibody concentration']; @endphp @foreach($custom_test['class_array'] as $class=>$value) @endforeach
▪ Explanation :
Concentration Class Explanation
@if(isset($value['from'])&&isset($value['to'])) {{$value['from']}} - {{$value['to']}} @elseif(isset($value['from'])) > {{$value['from']}} @elseif(isset($value['to'])) < {{$value['to']}} @endif IU/mL {{$class}} {{$classes[$class]}}
@endif