diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/CreateBeneficiary.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/CreateBeneficiary.php index c4d4f420..d7ef66dc 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/CreateBeneficiary.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/CreateBeneficiary.php @@ -369,7 +369,11 @@ protected function getSteps(): array $roles[-1] = __('beneficiary.section.specialists.labels.without_role'); return $roles; - }), + }) + ->disableOptionWhen(fn (Get $get, string $value) => $value === '-1' ? + array_diff($get('roles'), ['-1']): + in_array('-1', $get('roles'))) + ->live(), ]), ]), ];