nuna
2 months ago
225
2
Laravel

How to do calculation

Posted 2 months ago by nuna
<td>RM{{number_format(str_replace(',', '', $product->price),2,'.',',') - str_replace(',', '', $product->discount_amount),2,'.',',')}}</td>

I got

syntax error, unexpected ')', expecting ',' or ';' (View: /ob1/domains/dCommerce/resources/views/product/index.blade.php) error please help

Please sign in or create an account to participate in this conversation.