@extends('layouts.pdf') @section('title') {{ __('Report') }}-#{{ $group['id'] }}-{{ date('Y-m-d') }} @endsection @section('content') @php $comp = 0; @endphp @foreach ($test['results'] as $result) @if ($result->component_group->show_null || $result['result']) @if (isset($result['component_group'])) @if ($result['component_group']['title']) @elseif((!isset($result['component_group']['write_up']) && (!isset($result['component_group']['name']) && $result['component_group']['image'] != '0')) || isset($result['component_group']['write_up'])) @if ($result['component_group']['image']) @else @endif @else @php $comp++; @endphp @if ($comp == 1) @endif @php $date = strtotime($test->collection_date) - strtotime($test->group->patient->dob); $days = round($date / (60 * 60 * 24)); @endphp @endif @endif @endif @endforeach
{{ $test['test']['name'] }}
{{ $result['component_group']['name'] }}

{!! $result->write_up ? $result->write_up : $result->component->writeup !!}
Test Normal Range Unit Result Status
{{ $result['component_group']['name'] }} @if ($result->reference_range_mod($days)) {{ $result->reference_range_mod($days)->normal_from . '-' . $result->reference_range_mod($days)->normal_to }} {{ $result['component_group']['reference_range'] }} @endif {{ $result->component_group->unit_name($result->component_group->unit) }} {{ $result['result'] }} {{ $result['status'] }}

HEMOGRAM
Parameters Baby Mother Father Hemogram Done on: {{ $test->hemogram ? $test->hemogram->date : '' }}
RBC Count x10 /L {{ $test->hemogram ? $test->rbc_baby : '' }} {{ $test->hemogram ? $test->hemogram->rbc_mother : '' }} {{ $test->hemogram ? $test->hemogram->rbc_father : '' }} Remarks: {{ $test->hemogram ? $test->hemogram->remarks : '' }}
HEMOGLOBIN g/dl {{ $test->hemogram ? $test->hemogram->hemo_baby : '' }} {{ $test->hemogram ? $test->hemogram->hemo_mother : '' }} {{ $test->hemogram ? $test->hemogram->hemo_father : '' }}
HEMATOCRIT % {{ $test->hemogram ? $test->hemogram->hema_baby : '' }} {{ $test->hemogram ? $test->hemogram->hema_mother : '' }} {{ $test->hemogram ? $test->hemogram->hema_father : '' }}
MCV fL {{ $test->hemogram ? $test->hemogram->mcv_baby : '' }} {{ $test->hemogram ? $test->hemogram->mcv_mother : '' }} {{ $test->hemogram ? $test->hemogram->mcv_father : '' }}
MCH pg {{ $test->hemogram ? $test->hemogram->mch_baby : '' }} {{ $test->hemogram ? $test->hemogram->mch_mother : '' }} {{ $test->hemogram ? $test->hemogram->mch_father : '' }}
MCHC g/L {{ $test->hemogram ? $test->hemogram->mchc_baby : '' }} {{ $test->hemogram ? $test->hemogram->mchc_mother : '' }} {{ $test->hemogram ? $test->hemogram->mchc_father : '' }}
@endsection