kuvia/resources/views/admin/servers.blade.php

34 lines
1 KiB
PHP
Raw Normal View History

2021-02-09 18:00:04 +00:00
@extends('layout/template')
@section('content')
<div class="row" style="margin-top: 20px;">
<div class="col-md-12">
<h1>Servers</h1>
</div>
</div>
<div class="row">
<div class="col-md-12">
<table class="table table-striped">
<tr>
2021-02-09 18:15:51 +00:00
<th style="width: 400px;">Servername</th>
2021-02-09 18:00:04 +00:00
<th>Storage</th>
</tr>
@foreach($servers as $s)
<tr>
<td>{{ $s->servername }}</td>
<td>
<div class="progress">
2021-02-09 18:02:56 +00:00
<div class="progress-bar" role="progressbar" style="width: {{ round(100 / $s->storage * $s->userd) }}%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">{{ round(100 / $s->storage * $s->userd) }}%</div>
2021-02-09 18:00:04 +00:00
</div>
</td>
</tr>
@endforeach
</table>
</div>
</div>
@endsection