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>
<th style="width: 200px;">Servername</th>
<th>Storage</th>
</tr>
@foreach($servers as $s)
<tr>
<td>{{ $s->servername }}</td>
<td>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: {{ round($s->storage / $s->userd) }}%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">{{ round($s->storage / $s->userd) }}%</div>
</div>
</td>
</tr>
@endforeach
</table>
</div>
</div>
@endsection