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
This commit is contained in:
parent
8bdeed08af
commit
e708e2fc24
|
@ -65,8 +65,9 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- /.info-box -->
|
<!-- /.info-box -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.col -->
|
|
||||||
|
|
||||||
|
<!-- /.col -->
|
||||||
|
@if(Auth::user()->Credits() > 0.01 and $useage > 0)
|
||||||
<div class="col-12 col-sm-6 col-md-3">
|
<div class="col-12 col-sm-6 col-md-3">
|
||||||
<div class="info-box mb-3">
|
<div class="info-box mb-3">
|
||||||
@if(number_format((Auth::user()->Credits()*30)/$useage,0,'.','') >= 15)
|
@if(number_format((Auth::user()->Credits()*30)/$useage,0,'.','') >= 15)
|
||||||
|
@ -81,7 +82,7 @@
|
||||||
<div class="info-box-content">
|
<div class="info-box-content">
|
||||||
<span class="info-box-text">Out of {{CREDITS_DISPLAY_NAME}} in </span>
|
<span class="info-box-text">Out of {{CREDITS_DISPLAY_NAME}} in </span>
|
||||||
@if(number_format((Auth::user()->Credits()*30)/$useage,2,'.','') < "1")
|
@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")
|
||||||
<span class="info-box-number">You ran out of Credits </span>
|
<span class="info-box-number">You ran out of Credits </span>
|
||||||
@else
|
@else
|
||||||
<span class="info-box-number">{{number_format(Auth::user()->Credits()/($useage/30/24),0,'.','')}} <sup> hours</sup></span>
|
<span class="info-box-number">{{number_format(Auth::user()->Credits()/($useage/30/24),0,'.','')}} <sup> hours</sup></span>
|
||||||
|
@ -95,10 +96,11 @@
|
||||||
<!-- /.info-box -->
|
<!-- /.info-box -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.col -->
|
<!-- /.col -->
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="card card-default">
|
<div class="card card-default">
|
||||||
|
|
Loading…
Reference in a new issue