Back
The visitors made a bright start to the Championship Two match and took the lead when an excellent defensive clearance was latched onto by Elgaily. He skipped past a defender before seeing his effort rebound off a home player and fall kindly into the path of Kieran Noon, who calmly slotted into the bottom-right corner.
Real Yorkshire responded well and soon turned the game around to lead 2-1.
Their equaliser came courtesy of a rare defensive mistake as the usually reliable Josh Hemingway under-hit a headed back pass to goalkeeper Aaron Dooley, allowing Bradley Llewellyn to pounce.
Another defensive error handed the hosts the advantage. Dooley's clearance struck an opposing player and fell to Charley Blacker whose return effort was helped into the net despite the goalkeeper's desperate attempt to tip the ball over.
The back four of Chris Darby, Hemingway, Johnny Burnside and Callum Kilian then settled into the game, restricting Real to only a handful of chances. Their efforts were rewarded with an equaliser before the break when Shay-James Tillotson produced a clever pass to find Elgaily, whose mishit cross-cum-shot looped into the net.
Early in the second half the home side regained the lead through an excellent free-kick from Ollie Robson.
The end-to-end nature of the game continued as Athletic drew level once more. Algaily Mutjbi threaded a perfectly weighted pass into the path of Elgaily who drove a low shot beyond the goalkeeper.
Stand-in manager Damion French then introduced four fresh substitutes to inject energy into the side in increasingly difficult underfoot conditions. The move paid immediate dividends when substitute Musa Kabba went on a powerful run before being brought down by the home keeper, earning a penalty.
Elgaily stepped up and although his initial effort was saved, he reacted quickest to the rebound and smashed the ball home to complete his hat-trick.
The visitors then stretched their advantage to 5-3 as another substitute, Adam Langwade, combined neatly with Elgaily, to create an opening for Mutjbi to fire home.
Real reduced the deficit through prolific striker Robson, whose low finish brought the score back to 5-4 and set up a tense finale.
They then threw players forward in search of an equaliser but Wakefield held firm before sealing the victory in style. A superbly delivered free-kick from Kieran Noon was met by Abdul Mohammedkair who produced a stunning volley into the roof of the net to put the result beyond doubt.
The win lifted Athletic above Real into joint third place although they have played two games more than their rivals.
The Procrete man of the match award was shared by Elgaily, Josh Noon and Abdul Mohammedkair.