@foreach ($records as $record) detailJson(true); if(isset($detailJson['lab']) && isset($detailJson['lab']['hrs_of_operation'])){ unset($detailJson['lab']['hrs_of_operation']); } $lab = (array) @$detailJson['lab']; $tests = (array) @$detailJson['tests']; ?> @endforeach
Created At User ID Lab Tests
{{ friendly_date($record->created_at ?? $record->updated_at) }} @if($record->user()) user(); ?> {{ $user->displayName() }}
Sex: {{ $user->getDetailJsonValue('sex') }} E: {{ $user->getEmail() }} DOB: {{ friendly_date($user->getDetailJsonValue('dob')) }} P: {{ $user->getDetailJsonValue('phoneNumber') }}
@else --- @endif
@foreach($tests as $key =>$amount) {{ getTestLabelByKey($key) }} - ${{ $amount }} @endforeach