The route object is the source of the information you need. There are several ways in which you can get information, and most of them involve communicating something to your mind. I highly recommend not working inside the blade server, as these are controller actions.
Passing value to click
The easiest way is to make the last part of the route a parameter and pass this value to the view.
Avoiding route options requires a bit more work.
Doing all this in the blade with request helper .
source share