Merge pull request #197 from 1day2die/patch-1
Show Days left till servers get suspended in Dashboard
This commit is contained in:
commit
18e9e78f84
|
@ -19,8 +19,8 @@ ControlPanel's Dashboard is a dashboard application designed to offer clients a
|
|||
|
||||
This dashboard offers an easy to use and free billing solution for all starting and experienced hosting providers. This dashboard has many customization options and added discord 0auth verification to offer a solid link between your discord server and your dashboard.
|
||||
|
||||
### [Installation](https://github.com/ControlPanel-gg/dashboard/wiki/Installation "Installation")
|
||||
### [Updating](https://github.com/ControlPanel-gg/dashboard/wiki/Updating "Updating")
|
||||
### [Installation](https://controlpanel.gg/docs/intro "Installation")
|
||||
### [Updating](https://controlpanel.gg/docs/Installation/updating "Updating")
|
||||
### [Discord](https://discord.gg/4Y6HjD2uyU "discord")
|
||||
### [Contributing](https://github.com/ControlPanel-gg/dashboard/wiki/Contributing "Contributing")
|
||||
### [Donating](https://github.com/ControlPanel-gg/dashboard/wiki#donating "Donating")
|
||||
### [Contributing](https://controlpanel.gg/docs/Contributing/contributing "Contributing")
|
||||
### [Donating](https://controlpanel.gg/docs/Contributing/donating "Donating")
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<!-- /.col -->
|
||||
<div class="col-12 col-sm-6 col-md-3">
|
||||
<div class="info-box mb-3">
|
||||
<span class="info-box-icon bg-danger elevation-1"><i class="fas fa-coins"></i></span>
|
||||
<span class="info-box-icon bg-secondary elevation-1"><i class="fas fa-coins"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{{CREDITS_DISPLAY_NAME}}</span>
|
||||
|
@ -67,6 +67,31 @@
|
|||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<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)
|
||||
<span class="info-box-icon bg-success elevation-1">
|
||||
@elseif (number_format((Auth::user()->Credits()*30)/$useage,0,'.','') >= 8 && number_format((Auth::user()->Credits()*30)/$useage,0,'.','') <= 14)
|
||||
<span class="info-box-icon bg-warning elevation-1">
|
||||
@elseif (number_format((Auth::user()->Credits()*30)/$useage,0,'.','') <= 7)
|
||||
<span class="info-box-icon bg-danger elevation-1">
|
||||
@endif
|
||||
<i class="fas fa-hourglass-half"></i></span>
|
||||
|
||||
<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")
|
||||
<span class="info-box-number">{{number_format(Auth::user()->Credits()/($useage/30/24),0,'.','')}} <sup> hours</sup></span>
|
||||
@else
|
||||
<span class="info-box-number">{{number_format((Auth::user()->Credits()*30)/$useage,0,'.','')}} <sup> days</sup></span>
|
||||
@endif
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue