Skip to content

Commit

Permalink
fix beneficiary personal information view
Browse files Browse the repository at this point in the history
  • Loading branch information
alexPopaCode4 committed Nov 13, 2024
1 parent 25e06db commit ba5a74d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ protected static function beneficiarySection(): array
TextEntry::make('observations_chronic_diseases')
->label(__('beneficiary.section.personal_information.label.observations_chronic_diseases'))
->columnSpanFull()
->visible(fn (Beneficiary $record) => $record->details->health_status->contains(Diseases::CHRONIC_DISEASES)),
->visible(fn (Beneficiary $record) => $record->details->health_status?->contains(Diseases::CHRONIC_DISEASES)),

TextEntry::make('observations_degenerative_diseases')
->label(__('beneficiary.section.personal_information.label.observations_degenerative_diseases'))
->columnSpanFull()
->visible(fn (Beneficiary $record) => $record->details->health_status->contains(Diseases::DEGENERATIVE_DISEASES)),
->visible(fn (Beneficiary $record) => $record->details->health_status?->contains(Diseases::DEGENERATIVE_DISEASES)),

TextEntry::make('observations_mental_illness')
->label(__('beneficiary.section.personal_information.label.observations_mental_illness'))
->columnSpanFull()
->visible(fn (Beneficiary $record) => $record->details->health_status->contains(Diseases::MENTAL_ILLNESSES)),
->visible(fn (Beneficiary $record) => $record->details->health_status?->contains(Diseases::MENTAL_ILLNESSES)),
]),

Grid::make()
Expand Down

0 comments on commit ba5a74d

Please sign in to comment.