From e708e2fc24df494eeffa495c7a7055f23d1dbd45 Mon Sep 17 00:00:00 2001 From: Dennis Date: Mon, 27 Sep 2021 18:42:55 +0200 Subject: [PATCH] Update home.blade.php This will add the "Out of credits in..." Box when you have and never had Credits. It will show the box and the text "You ran out of Credits" if you purchased Credits and your servers got Suspended --- resources/views/home.blade.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 3be09b1a..50b2d0db 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -65,8 +65,9 @@ - + + @if(Auth::user()->Credits() > 0.01 and $useage > 0)
@if(number_format((Auth::user()->Credits()*30)/$useage,0,'.','') >= 15) @@ -81,7 +82,7 @@
Out of {{CREDITS_DISPLAY_NAME}} in @if(number_format((Auth::user()->Credits()*30)/$useage,2,'.','') < "1") - @if(number_format(Auth::user()->Credits()/($useage/30/24),0,'.','') < "1") + @if(number_format(Auth::user()->Credits()/($useage/30/24),2,'.','') < "1") You ran out of Credits @else {{number_format(Auth::user()->Credits()/($useage/30/24),0,'.','')}} hours @@ -95,10 +96,11 @@
- + @endif
+