How can I pass my Id (Primary key in below Ajax response )
My Route name is refundDetail this route will accept the Id parameter but I can't find the proper way to pass id please guide me.
you cannot do it that way, because the php code is server side, while javascript is client side. So you better put the route in, or use a library like this one: https://github.com/tighten/ziggy
@Tayyabshahzad I understand that. What you don't seem to understand is Blade has already rendered - so the route helper method is useless in the context of your Javascript script.