{{ Form::hidden('revisit', isset($data['last_visit']) ? $data['last_visit']->id : null) }} {{ Form::hidden('currency_symbol', getCurrentCurrency(), ['class' => 'currencySymbol']) }}
{{ Form::label('patient_id', __('messages.ipd_patient.patient_id') . ':', ['class' => 'form-label']) }} {{ Form::select('patient_id', $data['patients'], isset($data['last_visit']) ? $data['last_visit']->patient_id : null, ['class' => 'form-select', 'required', 'id' => 'opdPatientId', 'placeholder' => __('messages.document.select_patient'), 'data-control' => 'select2']) }}
{{ Form::label('case_id', __('messages.ipd_patient.case_id') . ':', ['class' => 'form-label']) }} {{ Form::select('case_id', [null], null, ['class' => 'form-select', 'required', 'id' => 'opdCaseId', 'disabled', 'data-control' => 'select2', 'placeholder' => __('messages.common.choose') . __('messages.cases')]) }}
{{ Form::label('opd_number', __('messages.opd_patient.opd_number') . ':', ['class' => 'form-label']) }} {{ Form::text('opd_number', $data['opdNumber'], ['class' => 'form-control', 'readonly', 'placeholder' => __('messages.opd_patient.opd_number')]) }}
{{ Form::label('height', __('messages.ipd_patient.height') . ':', ['class' => 'form-label']) }} {{ Form::number('height', isset($data['last_visit']) ? $data['last_visit']->height : 0, ['placeholder' => __('messages.ipd_patient.height'), 'class' => 'form-control', 'max' => '7', 'step' => '.01']) }}
{{ Form::label('weight', __('messages.ipd_patient.weight') . ':', ['class' => 'form-label']) }} {{ Form::number('weight', isset($data['last_visit']) ? $data['last_visit']->weight : 0, ['placeholder' => __('messages.ipd_patient.weight'), 'class' => 'form-control', 'max' => '200', 'step' => '.01']) }}
{{ Form::label('bp', __('messages.ipd_patient.bp') . ':', ['class' => 'form-label']) }} {{ Form::number('bp', isset($data['last_visit']) ? $data['last_visit']->bp : null, ['class' => 'form-control', 'placeholder' => __('messages.ipd_patient.bp')]) }}
{{ Form::label('appointment_date', __('messages.opd_patient.appointment_date') . ':', ['class' => 'form-label']) }} {{ Form::text('appointment_date', null, ['placeholder' => __('messages.opd_patient.appointment_date'), 'class' => getLoggedInUser()->thememode ? 'bg-light form-control' : 'bg-white form-control', 'id' => 'opdAppointmentDate', 'autocomplete' => 'off', 'required']) }}
{{ Form::label('doctor_id', __('messages.ipd_patient.doctor_id') . ':', ['class' => 'form-label']) }} {{ Form::select('doctor_id', $data['doctors'], isset($data['last_visit']) ? $data['last_visit']->doctor_id : null, ['placeholder' => __('messages.ipd_patient.doctor_id'), 'class' => 'form-select', 'required', 'id' => 'opdDoctorId', 'placeholder' => __('messages.web_home.select_doctor'), 'data-control' => 'select2']) }}
{{ Form::label('standard_charge', __('messages.doctor_opd_charge.standard_charge') . ':', ['class' => 'form-label']) }}
{{ Form::text('standard_charge', null, ['class' => 'form-control price-input', 'id' => 'opdStandardCharge', 'required', 'placeholder' => __('messages.doctor_opd_charge.standard_charge')]) }}
{{ Form::label('payment_mode', __('messages.ipd_payments.payment_mode') . ':', ['class' => 'form-label']) }} {{ Form::select('payment_mode', $data['paymentMode'], null, ['class' => 'form-select', 'required', 'id' => 'opdPaymentMode', 'data-control' => 'select2', 'placeholder' => __('messages.common.choose') . ' ' . __('messages.payment.payment')]) }}
{{ Form::label('symptoms', __('messages.ipd_patient.symptoms') . ':', ['class' => 'form-label']) }} {{ Form::textarea('symptoms', null, ['class' => 'form-control', 'rows' => 4, 'placeholder' => __('messages.ipd_patient.symptoms')]) }}
{{ Form::label('notes', __('messages.ipd_patient.notes') . ':', ['class' => 'form-label']) }} {{ Form::textarea('notes', null, ['class' => 'form-control', 'rows' => 4, 'placeholder' => __('messages.ipd_patient.notes')]) }}
@if ($customField >= 0) @foreach ($customField as $field) @php $field_values = explode(',',$field['values']); $dateType = ($field['field_type'] == 6) ? 'customFieldDate' : 'customFieldDateTime'; $field_type = \App\Models\AddCustomFields::FIELD_TYPE_ARR[$field['field_type']]; $fieldName = 'field'.$field['id']; @endphp
{{ Form::label($field['field_name'], $field['field_name'] . ':', ['class' => $field['is_required'] == 1 ? 'form-label dynamic-field' : 'form-label']) }} @if ($field['is_required'] == 1) @endif @if ($field_type == 'date' || $field_type == 'date & Time' ) {{ Form::text($fieldName, null, ['id'=>$dateType,'class' => getLoggedInUser()->thememode || $field['is_required'] == 1 ? 'bg-light form-control dynamic-field' : 'bg-white form-control', 'autocomplete' => 'off','placeholder'=>$field['field_name'],$field['is_required'] == 1 ? 'required' : '']) }} @elseif ($field_type == 'toggle')
@elseif ($field_type == 'select') {{ Form::select($fieldName, $field_values, null, ['class' => $field['is_required'] == 1 ? 'form-select dynamic-field' : 'form-select', 'placeholder' => $field['field_name'], 'data-control' => 'select2',$field['is_required'] == 1 ? 'required' : '' ]) }} @elseif ($field_type == 'multiSelect' ) {{ Form::select($fieldName.'[]', $field_values, 0, ['class' => $field['is_required'] == 1 ? 'form-select opd-multi-select dynamic-field' : 'form-select opd-multi-select', 'placeholder' => $field['field_name'], 'data-control' => 'select2','multiple' => true,$field['is_required'] == 1 ? 'required' : '']) }} @else {{ Form::$field_type($fieldName, null, ['class' => $field['is_required'] == 1 ? 'dynamic-field form-control' : 'form-control', 'placeholder' => $field['field_name'],$field['is_required'] == 1 ? 'required' : '','rows' => $field_type == 'textarea' ? 4 : '']) }} @endif
@endforeach @endif
{{ Form::label('is_old_patient', __('messages.ipd_patient.is_old_patient') . ':', ['class' => 'form-label']) }}
{!! Form::submit(__('messages.common.save'), ['class' => 'btn btn-primary me-3', 'id' => 'btnOpdSave']) !!} {!! __('messages.common.cancel') !!}