From 609041a96799e42705ef1aa12244951171601e12 Mon Sep 17 00:00:00 2001 From: IceToast Date: Sat, 18 Jun 2022 23:41:40 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20Added=20different=20billing?= =?UTF-8?q?=20periods=20to=20servers=20overview=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/servers/index.blade.php | 29 ++++++++++++------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/resources/views/servers/index.blade.php b/resources/views/servers/index.blade.php index 72187653..517c3f1e 100644 --- a/resources/views/servers/index.blade.php +++ b/resources/views/servers/index.blade.php @@ -127,22 +127,21 @@ ({{ CREDITS_DISPLAY_NAME }}) -
-
-
-
{{ __('per Hour') }}
- - {{ number_format($server->product->getHourlyPrice(), 2, '.', '') }} - +
+
+ @if($server->product->billing_period == 'monthly') + {{ __('per Month') }} + @elseif($server->product->billing_period == 'weekly') + {{ __('per Week') }} + @elseif($server->product->billing_period == 'daily') + {{ __('per Day') }} + @elseif($server->product->billing_period == 'hourly') + {{ __('per Hour') }} + @endif
-
-
{{ __('per Month') }} -
- - {{ $server->product->getHourlyPrice() * 24 * 30 }} - -
-
+ + {{ $server->product->price }} +