show a number to two decimal places

master
= 2022-09-05 10:47:54 -05:00
parent 5e5a29d33c
commit 9be247bb93
1 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,7 @@
<tr>
<td>ab 5 Stück</td>
<td>{{$content->data_fields['preis_5']}} €</td>
<td><span class="badge text-bg-dark">{{(($content->data_fields['preis_5']-$content->data_fields['preis'])*100)/$content->data_fields['preis']}} %</span></td>
<td><span class="badge text-bg-dark">{{number_format((float) (($content->data_fields['preis_5']-$content->data_fields['preis'])*100)/$content->data_fields['preis'] , 2, ',', '')}} %</span></td>
</tr>
@endisset

@ -146,7 +146,7 @@
<tr>
<td>ab 10 Stück</td>
<td>{{$content->data_fields['preis_10']}} €</td>
<td><span class="badge text-bg-dark">{{(($content->data_fields['preis_10']-$content->data_fields['preis'])*100)/$content->data_fields['preis']}} %</span></td>
<td><span class="badge text-bg-dark">{{number_format((float) (($content->data_fields['preis_10']-$content->data_fields['preis'])*100)/$content->data_fields['preis'] , 2, ',', '')}} %</span></td>
</tr>
@endisset

@ -154,7 +154,7 @@
<tr>
<td>Palette ({{$content->data_fields['module_pro_palette']}} Stück)</td>
<td>{{$content->data_fields['preis_palette']}} €</td>
<td><span class="badge text-bg-dark">{{(($content->data_fields['preis_palette']-$content->data_fields['preis'])*100)/$content->data_fields['preis']}} %</span></td>
<td><span class="badge text-bg-dark">{{number_format((float) (($content->data_fields['preis_palette']-$content->data_fields['preis'])*100)/$content->data_fields['preis'] , 2, ',', '')}} %</span></td>
</tr>
@endisset