Browse Source

Merge pull request #198 from 1day2die/main

Show Server price per Hour / per Month
AVMG 3 years ago
parent
commit
7af898dbe8
1 changed files with 8 additions and 0 deletions
  1. 8 0
      resources/views/servers/index.blade.php

+ 8 - 0
resources/views/servers/index.blade.php

@@ -83,6 +83,14 @@
                                         <td>Backups</td>
                                         <td>{{$server->product->backups}}</td>
                                     </tr>
+                                    <tr>
+                                        <td>Price per Hour</td>
+                                        <td>{{number_format($server->product->getHourlyPrice(),2,".")}} {{CREDITS_DISPLAY_NAME}}</td>
+                                    </tr>
+                                    <tr>
+                                        <td>Price per Month</td>
+                                        <td>{{$server->product->getHourlyPrice()*24*30}} {{CREDITS_DISPLAY_NAME}}</td>
+                                    </tr>
                                 </table>
                             </div>