A senior Israeli official said that 80-90% of the details had been ironed out and a final ceasefire agreement could be days away.