count.blade.php 1.09 KB
Newer Older
1
2
3
4
5
@extends('layouts.subPages')

@section('title', $title )

@section('content')
Dominik Hebeler's avatar
Dominik Hebeler committed
6
<h2>{{ exec("uptime") }}</h2>
Dominik Hebeler's avatar
Dominik Hebeler committed
7
8
9
10
11
12
<table class="table table-striped">
	<caption>Daten der letzten Tage</caption>
	<tr>
		<th>Datum</th>
		<th>Suchanfragen zur gleichen Zeit</th>
		<th>Suchanfragen insgesamt</th>
Dominik Hebeler's avatar
Dominik Hebeler committed
13
		<th>Mittelwert (bis zum jeweiligen Tag zurück)</th>
Dominik Hebeler's avatar
Dominik Hebeler committed
14
15
16
	</tr>
	@if( isset($today) )
	<tr>
Dominik Hebeler's avatar
Dominik Hebeler committed
17
		<td>{{ date("D, d M y", mktime(date("H"),date("i"), date("s"), date("m"), date("d"), date("Y"))) }}</td>
Dominik Hebeler's avatar
Dominik Hebeler committed
18
19
20
21
22
23
24
		<td>{{ $today }}</td>
		<td>???</td>
		<td>???</td>
	</tr>
	@endif
	@foreach($oldLogs as $key => $value)
	<tr>
Dominik Hebeler's avatar
Dominik Hebeler committed
25
		<td>{{ date("D, d M y", mktime(date("H"),date("i"), date("s"), date("m"), date("d")-$key, date("Y"))) }}</td>
Dominik Hebeler's avatar
Dominik Hebeler committed
26
27
28
29
		<td>{{ $value['sameTime'] }}</td>
		<td>{{ $value['insgesamt'] }}</td>
		<td>{{ $value['median'] }}</td>
	</tr>
30
	@endforeach
Dominik Hebeler's avatar
Dominik Hebeler committed
31
32
33
</table>

@if( isset($rekordDate) && isset($rekordTagSameTime) && isset($rekordCount) )
34
<h3>Rekord am {{ $rekordDate }} zur gleichen Zeit <span class="text-info">{{ $rekordTagSameTime }}</span> - insgesamt <span class="text-danger">{{ $rekordCount }}</span></h3>
Dominik Hebeler's avatar
Dominik Hebeler committed
35
@endif
36
@endsection