"localhost" is a way of referring to the same computer as you are typing it.
If you want to access the dashboard from a different computer you will need to replace that with the ip address of the RPi.
But it will depend on how your laptop is sharing the network connection you may find that you can't access it.
The better way would to give the pi its own connection to your network, either by using use the internal wifi (if your Pi has it) or a wifi dongle or a wired network connection.
Then any device on the network would be able to access your dashboard at anytime.