1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00

Added number formatting for summary cards

Added number formatting for summary cards
This commit is contained in:
cp6 2022-03-13 22:15:46 +11:00
parent f096cc5ca6
commit 35f96a6ee6

View File

@ -146,7 +146,8 @@
<div class="card"> <div class="card">
<div class="card-body text-center shadow"> <div class="card-body text-center shadow">
<div class="row"> <div class="row">
<h4>{{$information['servers_summary']['ram_mb_sum'] / 1024}} <small <h4>{{number_format($information['servers_summary']['ram_mb_sum'] / 1024, 2)}}
<small
class="text-muted">GB</small></h4> class="text-muted">GB</small></h4>
<p>Ram</p> <p>Ram</p>
</div> </div>
@ -159,7 +160,8 @@
<div class="row"> <div class="row">
<h4> <h4>
@if($information['servers_summary']['disk_gb_sum'] >= 1000) @if($information['servers_summary']['disk_gb_sum'] >= 1000)
{{$information['servers_summary']['disk_gb_sum'] / 1024}} <small {{number_format($information['servers_summary']['disk_gb_sum'] / 1024,2)}}
<small
class="text-muted">TB</small> class="text-muted">TB</small>
@else @else
{{$information['servers_summary']['disk_gb_sum']}} <small {{$information['servers_summary']['disk_gb_sum']}} <small
@ -175,7 +177,8 @@
<div class="card"> <div class="card">
<div class="card-body text-center shadow"> <div class="card-body text-center shadow">
<div class="row"> <div class="row">
<h4>{{$information['servers_summary']['bandwidth_sum'] / 1024}} <small <h4>{{number_format($information['servers_summary']['bandwidth_sum'] / 1024,2)}}
<small
class="text-muted">TB</small></h4> class="text-muted">TB</small></h4>
<p>Bandwidth</p> <p>Bandwidth</p>
</div> </div>