{{ Form::label('patient_id', __('messages.patient_diagnosis_test.patient').':', ['class' => 'form-label']) }}
{{ Form::select('patient_id', $patients, isset($patientDiagnosisTest)?$patientDiagnosisTest->patient_id:null, ['class' => 'form-select', 'required', 'id' => 'editDiagnosisTestPatientId', 'placeholder' => 'Select Patient', 'data-control' => 'select2']) }}
@if(Auth::user()->hasRole('Doctor'))
@else
{{ Form::label('doctor_id', __('messages.patient_diagnosis_test.doctor').':', ['class' => 'form-label']) }}
{{ Form::select('doctor_id', $doctors, isset($patientDiagnosisTest)?$patientDiagnosisTest->doctor_id:null, ['class' => 'form-select','required','id' => 'editDiagnosisTestDoctorId','placeholder'=> __('messages.web_home.select_doctor'), 'data-control' => 'select2']) }}
@endif
{{ Form::label('category_id', __('messages.patient_diagnosis_test.diagnosis_category').':', ['class' => 'form-label']) }}
{{ Form::select('category_id', $diagnosisCategory, isset($patientDiagnosisTest)?$patientDiagnosisTest->category_id:null, ['class' => 'form-select', 'required', 'id' => 'editDiagnosisTestCategoryId', 'data-control' => 'select2', 'placeholder' => 'Select Diagnosis Category']) }}
{{ Form::label('report_number', __('messages.patient_diagnosis_test.report_number').':', ['class' => 'form-label']) }}
{{ Form::text('report_number', isset($patientDiagnosisTest)?$patientDiagnosisTest->report_number:$reportNumber, ['class' => 'form-control io-select2', 'readonly']) }}
@if(isset($patientDiagnosisTests))
@foreach($patientDiagnosisTests as $patientDiagnosisTest)
{{ Form::label($patientDiagnosisTest->property_name, str_replace("_"," ",Str::title($patientDiagnosisTest->property_name)) .':', ['class' => 'form-label']) }}
@if($patientDiagnosisTest->property_name == 'height')
{{ Form::number($patientDiagnosisTest->property_name, $patientDiagnosisTest->property_value, ['class' => 'form-control floatNumber', 'max' => '7', 'min' => '1' , 'step' => '.01']) }}
@elseif($patientDiagnosisTest->property_name == 'weight')
{{ Form::number($patientDiagnosisTest->property_name, $patientDiagnosisTest->property_value, ['class' => 'form-control', 'max' => '200', 'min' => '1' , 'step' => '.01', 'data-mask'=>'##0,00']) }}
@elseif($patientDiagnosisTest->property_name == 'age')
{{ Form::text($patientDiagnosisTest->property_name, $patientDiagnosisTest->property_value, ['class' => 'form-control','onkeyup' => 'if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,"")']) }}
@else
{{ Form::text($patientDiagnosisTest->property_name, $patientDiagnosisTest->property_value, ['class' => 'form-control']) }}
@endif
@endforeach
@endif
{{__('messages.patient_diagnosis_test.add_other_diagnosis_property')}}
# |
{{__('messages.patient_diagnosis_test.diagnosis_property_name')}}
|
{{__('messages.patient_diagnosis_test.diagnosis_property_value')}}
|
|
{!! Form::submit(__('messages.common.save'), ['class' => 'btn btn-primary me-2 saveBtn','id' => 'editDiagnosisTestSave']) !!}
{!! __('messages.common.cancel') !!}