@php
$results=$custom_test['results'];
@endphp
|
{{$custom_test['test']['name']}}
|
|
|
|
Allergen Name
|
Concentration IU/mL
|
Class
|
@foreach($results as $result)
@if(isset($result['result']))
@php
$status=($result['class']>0)?'abnormal':'normal';
@endphp
|
{{$result['component']['name']}}
|
{{(float)$result['result']}}
|
{{$result['class']}}
|
@endif
@endforeach
@if(!empty($custom_test['comment']))
|
|
|
|
@endif
@if(isset($custom_test['class_array']))
|
▪
Explanation :
|
|
|
@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)
|
@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]}}
|
@endforeach
@endif