An abandoned garden centre is set to be transformed into an £8 million residential care centre with a community cafe and hub open to the public.