@extends('master')

@section('title')
        <div class="title m-b-md">
            Last active in 15 min
        </div>
@stop

@section('links')
        <div class="links">
            <a href="{{ url('/') }}/">Monitoring</a>
        </div>                    
@stop

@section('content')
@isset($data)
<table class="table">
    <thead class="thead-dark">
      <tr>
        <th scope="col">IP</th>
        <th scope="col">Meno PC</th>
        <th scope="col">Užívateľ</th>
        <th scope="col">Od</th>
        <th scope="col">Do</th>
      </tr>
    </thead>
    <tbody>

        @foreach ($data as $r)
        <tr>
        <th scope="row">{{$r->ip}}</th>
        <td>{{$r->comp}}</td>
        <td>{{$r->name}}</td>
        <td>{{$r->f}}</td>
        <td>{{$r->t}}</td>
        </tr>
        @endforeach
    
    </tbody>
  </table>
@endisset

@stop
