Leave.
The bottom line is that you're unhappy with your job and there are plenty of shops where you can use the technologies you love.
You're under no obligation to stay - your employer is not your family. You're in a contractual relationship where you exchange your time for money.