Add integer when rendering price
This commit is contained in:
parent
b4dbd7d312
commit
74800de149
|
@ -30,6 +30,6 @@ class BladeCompiler extends BaseBladeCompiler
|
|||
'; ?>',
|
||||
]));
|
||||
|
||||
$this->directive('price', fn ($expression) => '<?php echo number_format('.$expression.', 2, ",", "."); ?>');
|
||||
$this->directive('price', fn ($expression) => '<?php echo number_format(' . $expression . ' / 100, 2, ",", "."); ?>');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue