@php($patient = $patient ?? null) @php($profile = $patient?->patientProfile)
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@if($patient)
{{ trans('clinic.patients.password_hint') }}
@endif @error('password')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
@error('address')
{{ $message }}
@enderror
@error('date_of_birth')
{{ $message }}
@enderror
@error('gender')
{{ $message }}
@enderror
@error('occupation')
{{ $message }}
@enderror
@can('clinic.medical_records.view')
@php($medicalHistory = old('medical_history', $profile->medical_history ?? []))

{{ trans('clinic.patient_profile.medical_history') }}

@foreach ($conditionOptions as $conditionOption)
code] ?? false))>
@endforeach
@error('medical_history.other')
{{ $message }}
@enderror
@php($surgicalHistory = old('surgical_history', $profile->surgical_history ?? []))

{{ trans('clinic.patient_profile.surgical_history') }}

@error('surgical_history.type')
{{ $message }}
@enderror
@error('surgical_history.date')
{{ $message }}
@enderror
@error('surgical_history.hospital')
{{ $message }}
@enderror
@error('surgical_history.notes')
{{ $message }}
@enderror
@php($medicationHistory = old('medication_history', $profile->medication_history ?? []))

{{ trans('clinic.patient_profile.medication_history') }}

@foreach ($medicationOptions as $medicationOption)
code] ?? false))>
@endforeach
@error('medication_history.other')
{{ $message }}
@enderror
@error('medication_history.notes')
{{ $message }}
@enderror

{{ trans('clinic.patient_profile.allergies') }}

@error('allergy_type')
{{ $message }}
@enderror
@error('allergy_substance')
{{ $message }}
@enderror
@error('allergy_severity')
{{ $message }}
@enderror
@error('allergy_notes')
{{ $message }}
@enderror
@endcan