Newcastle head coach Steve Bruce says the club have done everything they can to keep Matty Longstaff with the midfielder's contract running out at the end of this season.