How to write Laravel Blade syntax inside jQuery or JavaScript?
I have an old Laravel project (version 8). In it, I have Blade templates with code like the following. <div id='product-container'> @if(home_base_price($product) != home_discounted_base_price($product)) <del class="fw-600 opacity-50 mr-1"> {{ home_base_price($product) }} </del> @endif {{ show_percentage($product_price) }} {{ $product->product_image }} {{…