Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Rumnaz khan's avatar

Remove minus sign (-) in blade file

hi, I am developing an accounting software for a company. in trail balance, if closing balance of an account is less than 0 it should be viewed in the debit side and if balance is greater than 0 it should show in the credit side. everything works but in debit side i want to show the numbers without the minus sign.

0 likes
1 reply
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Get the absolute value

{{ abs($value) }} 
1 like

Please or to participate in this conversation.