Court hears agreement reached after Juan Augustus Sampson accused of attempted robbery at Robert Street, Tamworth