sounds like the panel is on the exterior wall;
in that case, i exit the rear of the cabinet w/ an LB on the exterior wall, transition to carflex up through the soffit and into the attic, then set carflex on a JB.
nmc is not rated for damp locations
who said anything about NMC?