A weight of $500\,$N is held on a smooth plane inclined at $30^\circ$ to the horizontal by a force $P$ acting at $30^\circ$ to the inclined plane as shown. Then the value of force $P$ is: