@extends('layouts.app') @section('title') {{__('Edit medical report')}} @endsection @section('breadcrumb')

{{__('Medical reports')}}

@endsection @section('content') @can('view_medical_report')
{{__('Print Report')}} @can('sign_medical_report') {{__('Sign Report')}} @endcan {{__('Previous')}} {{__('Next')}}
@endcan
@if($group['uploaded_report']) @endif {{__('Upload report')}}
@if($group['uploaded_report']) @endif

{{__('Tests')}}

@if(count($group['all_tests']))
@foreach($group['all_tests'] as $test)
@csrf @method('put') @foreach($test['results'] as $result) @if(isset($result['component'])) @if($result['component']['title']) @else @endif @endif @endforeach
{{__('Name')}} {{__('Unit')}} {{__('Reference Range')}} {{__('Result')}} {{__('Status')}}
{{$result['component']['name']}}
{{$result['component']['name']}} {{$result['component']['unit']}} @if(isset($result['component'])&&count($result['component']['reference_ranges']))
{{__('Reference ranges')}}
@foreach($result['component']['reference_ranges'] as $reference_range) @endforeach
{{__('Gender')}} {{__('Age')}} {{__('Critical low')}} {{__('Normal')}} {{__('Critical high')}}
{{__($reference_range['gender'])}} {{__($reference_range['age_from'])}} : {{$reference_range['age_to']}} {{__($reference_range['age_unit'])}} {{$reference_range['critical_low_from']}} {{$reference_range['normal_from']}} : {{$reference_range['normal_to']}} {{$reference_range['critical_high_from']}}
@endif {!! $result['component']['reference_range'] !!}
@if($result['component']['type']=='text') reference_range())) normal_from="{{$result->reference_range()->normal_from}}" normal_to="{{$result->reference_range()->normal_to}}" critical_high_from="{{$result->reference_range()->critical_high_from}}" critical_low_from="{{$result->reference_range()->critical_low_from}}" @endif > @else @endif @if($result['component']['status']) @endif
@endforeach
@else
{{__('No data available')}}
@endif
@php $antibiotic_count=0; @endphp

{{__('Cultures')}}

@if(count($group['all_cultures']))
@foreach($group['all_cultures'] as $culture)
@csrf
@foreach($culture['culture_options'] as $culture_option) @if(isset($culture_option['culture_option']))
@endif @endforeach
{{__('Antibiotics')}}
@foreach($culture['antibiotics'] as $antibiotic) @php $antibiotic_count++; @endphp @endforeach
{{__('Antibiotic')}} {{__('Sensitivity')}}
@endforeach
@else
{{__('No data available')}}
@endif
@can('view_medical_report')
{{__('Print Report')}} @can('sign_medical_report') {{__('Sign Report')}} @endcan {{__('Previous')}} {{__('Next')}}
@endcan @include('admin.medical_reports._patient_modal') @endsection @section('scripts') @endsection