Add integer when rendering price

This commit is contained in:
philipp lang 2024-02-23 16:33:29 +01:00
parent b4dbd7d312
commit 74800de149
1 changed files with 4 additions and 4 deletions

View File

@ -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, ",", "."); ?>');
} }
} }