I want to call a jQuery variable in PHP syntax.
$('.card').on('click', function() {
cardID = $(this).attr('id');
$('#card-front-img').html('<img src="{{ asset("public/nfc-assets/cards-imgs/'+cardID+'/front-preview.png") }}">');
at +cardID+ I want to pass card id dynamically. But by this code, It print +cardID+ as a string.