I'm trying to simulate a standard undervoltage lockout circuit in LTSpice, which should trip around 7 volts. Attached below is the circuit I modelled.

At 12 Volts, the negative end of U1 is greater than the positive end, so there should be 0 volts from the output and 0 volts at the gate. At around 7 volts, the positive end is higher than the negative end, meaning there's around 7 volts at the gate and V(gs) is around 0. I expect 0 volts at the drain of the MOSFET, but looking at the graph below there is still voltage at the drain.
(Green line is voltage at the drain, Blue is voltage at the gate)
I'd appreciate any help in resolving this issue.

At 12 Volts, the negative end of U1 is greater than the positive end, so there should be 0 volts from the output and 0 volts at the gate. At around 7 volts, the positive end is higher than the negative end, meaning there's around 7 volts at the gate and V(gs) is around 0. I expect 0 volts at the drain of the MOSFET, but looking at the graph below there is still voltage at the drain.

(Green line is voltage at the drain, Blue is voltage at the gate)
I'd appreciate any help in resolving this issue.