@php if(setting('subscription')['qc']) { $violation=$main_test->test->violations()->where('solved', false)->first(); if(cache()->has('qc_rejected_rules_'.session('branch_id'))) { $violation_reject=$main_test->test ->violations() ->where('solved', false) ->whereIn('rule_id',cache('qc_rejected_rules_'.session('branch_id'))) ->first(); } } @endphp
@csrf @method('put')
@if(isset($violation))
@include('admin.medical_reports.partials.qc_main_violation',['violation'=>$violation])
@endif
@if(!$main_test['is_parent']&&in_array($main_test['test']['custom_name'],['cbc','urine','stool','stool_analysis','semen','coagulation','stone','glucose_curve','fmf','blood_film','food_allergy','cross_matching']))
@include('partials.custom_tests.'.$main_test['test']['custom_name'].'.'.$main_test['test']['custom_name'],['custom_test'=>$main_test])
@else @if(!$main_test['test']['is_template']) @if($info['medical_report_template']==1) @else @endif @endif @if(count($main_test['childs'])) @foreach($main_test['childs'] as $child) @foreach($child['results'] as $result) @include('admin.medical_reports.partials.test_result_'.$info['medical_report_template'],['result'=>$result,'is_violation'=>(isset($violation))?true:false]) @endforeach @endforeach @else @foreach($main_test['results'] as $result) @include('admin.medical_reports.partials.test_result_'.$info['medical_report_template'],['result'=>$result,'is_violation'=>(isset($violation))?true:false]) @endforeach @endif
{{__('Name')}} {{__('Manual result')}} {{__('Result')}}{{__('Reference range')}} {{__('Status')}}{{__('SI reference range')}} {{__('Reference range')}}

{{__('Upload PDF')}}

@if(isset($main_test['file'])) @endif
@if(!$main_test['test']['is_template'])

{{__('Comment')}}

@include('admin.medical_reports.modals.comments')
@endif @endif