@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
|
|
@include('pdf.medical_report.template_5.partials.test_name',['test'=>$custom_test['test']])
|
|
|
|
RBC :
|
{!! str_replace(["\n"], [' '], $rbc['result']) !!}
|
|
WBC :
|
{!! str_replace(["\n"], [' '], $wbc['result']) !!}
|
|
Platelet :
|
{!! str_replace(["\n"], [' '], $platelet['result']) !!}
|
|
|
@if(!empty($custom_test['comment']))
|
|
@endif