From 9be247bb93696c32f06c6439e6b6ce37b00b37e5 Mon Sep 17 00:00:00 2001
From: = <=>
Date: Mon, 5 Sep 2022 10:47:54 -0500
Subject: [PATCH] show a number to two decimal places
---
content/contents/solarmodule.blade.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/content/contents/solarmodule.blade.php b/content/contents/solarmodule.blade.php
index 6552b9a..e407f2b 100644
--- a/content/contents/solarmodule.blade.php
+++ b/content/contents/solarmodule.blade.php
@@ -138,7 +138,7 @@
ab 5 Stück |
{{$content->data_fields['preis_5']}} € |
- {{(($content->data_fields['preis_5']-$content->data_fields['preis'])*100)/$content->data_fields['preis']}} % |
+ {{number_format((float) (($content->data_fields['preis_5']-$content->data_fields['preis'])*100)/$content->data_fields['preis'] , 2, ',', '')}} % |
@endisset
@@ -146,7 +146,7 @@
ab 10 Stück |
{{$content->data_fields['preis_10']}} € |
- {{(($content->data_fields['preis_10']-$content->data_fields['preis'])*100)/$content->data_fields['preis']}} % |
+ {{number_format((float) (($content->data_fields['preis_10']-$content->data_fields['preis'])*100)/$content->data_fields['preis'] , 2, ',', '')}} % |
@endisset
@@ -154,7 +154,7 @@
Palette ({{$content->data_fields['module_pro_palette']}} Stück) |
{{$content->data_fields['preis_palette']}} € |
- {{(($content->data_fields['preis_palette']-$content->data_fields['preis'])*100)/$content->data_fields['preis']}} % |
+ {{number_format((float) (($content->data_fields['preis_palette']-$content->data_fields['preis'])*100)/$content->data_fields['preis'] , 2, ',', '')}} % |
@endisset