label('Ganti Kata Sandi') ->icon(Heroicon::OutlinedKey) ->color('warning') ->modalWidth(Width::Medium) ->schema([ TextInput::make('password') ->label('Kata Sandi Baru') ->password() ->required() ->minLength(8) ->default(config('auth.password_default')), ]) ->action(function (User $record, array $data): void { $record->update([ 'password' => Hash::make($data['password']), ]); CheerfulNotification::success( 'Kata sandi berhasil diubah! 🔑', "Kata sandi untuk pengguna {$record->name} telah diperbarui." )->send(); }); } }