I need to call php function inside javascript with js params. something like.
function test(data) {
$.each(data,function(key, item) {
let resVal = '{{encryptId('+item.id+') }}';
})
}
encryptId is a function defined in php helper file.
Please suggest can it work
Thanks!!