// MissionResource.php in form() method :
MissionSchedule::make('schedule')
->label(__('Schedule'))
->helperText(__('Will be used to automatically generate the hours.'))
->live()
->hidden(fn (\Filament\Forms\Get $get): bool => $get('mission_type') !== MissionTypeEnum::FIXED_SCHEDULE->value),
// MissionResource.php in form() method :
MissionSchedule::make('schedule')
->label(__('Schedule'))
->helperText(__('Will be used to automatically generate the hours.'))
->live()
->hidden(fn (\Filament\Forms\Get $get): bool => $get('mission_type') !== MissionTypeEnum::FIXED_SCHEDULE->value),