label('Ganti Kata Sandi') ->color('info') ->icon('heroicon-o-key') ->modalWidth(Width::Large) ->schema([ TextInput::make('password') ->label('Kata Sandi Baru') ->password() ->required() ->minLength(8) ->revealable(filament()->arePasswordsRevealable()) ->default('Minimal8@'), ]) ->action(function (Student $record, array $data): void { $record->user?->update([ 'password' => Hash::make($data['password']), ]); SystemNotification::send('password_changed', ['name' => $record->full_name]) ->send(); }); } }