@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: 400px;">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(100 / $s->storage * $s->userd)  }}%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">{{ round(100 / $s->storage * $s->userd)  }}%</div>
                           </div>
                       </td>
                   </tr>
               @endforeach
           </table>
        </div>
    </div>



@endsection
