@php $results=$custom_test['results']; $rbc=$results->filter(function ($value, $key) { return in_array($value['component']['custom_name'],[ 'blood_film_rbc' ]); }) ->first(); $wbc=$results->filter(function ($value, $key) { return in_array($value['component']['custom_name'],[ 'blood_film_wbc' ]); }) ->first(); $platelet=$results->filter(function ($value, $key) { return in_array($value['component']['custom_name'],[ 'blood_film_platelet' ]); }) ->first(); @endphp @if(!empty($custom_test['comment'])) @endif
{{$custom_test['test']['report_name']}}
RBC : {!! str_replace(["\n"], ['
'], $rbc['result']) !!}
WBC : {!! str_replace(["\n"], ['
'], $wbc['result']) !!}
Platelet : {!! str_replace(["\n"], ['
'], $platelet['result']) !!}
Conclusion : {!! $custom_test['comment_html'] !!}