//PatientData modelprotected $fillable = [ 'version', 'date', 'wart_number', 'localisation', 'complication', 'habitual_shoe', 'nrs_score', 'treatment_pain_score', 'week_pain_score', 'scalpel_deslamination', 'five_second_treatment', 'felt_application', 'progression_proof', 'patient_id' ]; public function patient(): BelongsTo { return $this->belongsTo(Patient::class); }
//Patient model protected $fillable = [ 'name', 'surname', 'set', 'fiscal_code', 'patient_initial', 'birthdate', 'postal_code', 'address', 'city', 'province', 'nationality', 'phone_number', 'weight', 'size', 'start_date', 'end_date', 'diagnostic_date', 'familial_wart_antecedent', 'familial_wart_antecedent_description', 'personal_wart_antecedent', 'personal_wart_antecedent_description', 'diabetes_mellitus', 'chronic_illness', 'immunosuppression', 'smoking', 'vascular_illness', 'arthritis', 'insulin', 'anti_hypertensive', 'anticoagulant', 'allergy', 'allergy_description', ]; public function patientDatas(): HasMany { return $this->hasMany(PatientData::class); }
Fieldset::make() ->schema([ Repeater::make('patientDatas') ->relationship() ->schema([ Fieldset::make('Anamnesis') ->schema([ Select::make('version') ->label('Version:') ->inlineLabel() ->searchable() ->options([ 1 => 'v1', 2 => 'v2', 3 => 'v3', 4 => 'v4', ]),