Added "ran out of Credits"
This commit is contained in:
parent
4ea4a6910c
commit
8bdeed08af
|
@ -67,7 +67,6 @@
|
|||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
@if($useage > 0)
|
||||
<div class="col-12 col-sm-6 col-md-3">
|
||||
<div class="info-box mb-3">
|
||||
@if(number_format((Auth::user()->Credits()*30)/$useage,0,'.','') >= 15)
|
||||
|
@ -82,7 +81,11 @@
|
|||
<div class="info-box-content">
|
||||
<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()/($useage/30/24),0,'.','') < "1")
|
||||
<span class="info-box-number">You ran out of Credits </span>
|
||||
@else
|
||||
<span class="info-box-number">{{number_format(Auth::user()->Credits()/($useage/30/24),0,'.','')}} <sup> hours</sup></span>
|
||||
@endif
|
||||
@else
|
||||
<span class="info-box-number">{{number_format((Auth::user()->Credits()*30)/$useage,0,'.','')}} <sup> days</sup></span>
|
||||
@endif
|
||||
|
@ -92,7 +95,6 @@
|
|||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue