@extends ('layouts.template')

@section('content')

    <div class="p-3 mcp-theme-1">

        <div class="card">
            <div class="card-body p-0">
                <table class="table table-sm table-condensed p-0 m-0">
                    <thead class="bg-light">
                    <tr>
                        <th class="border-0">ID</th>
                        <th class="border-0">Patient</th>
                        <th>IMEI</th>
                        <th>Time</th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach ($measurements as $m)
                        <tr class="">
                            <td>{{$m->ts}}</td>
                            <td><?php dump($m->toJson()) ?></td>
                            <td></td>
                            <td></td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
                <div>
                    {{$measurements->links()}}
                </div>
            </div>
        </div>
    </div>

@endsection
