Feuerwehr-eppingen/resources/views/inc/admin/subscriptions.blade.php
Marco Glietsch 369e9fb0af Hinzugefügt
- Berechtigungen für Kurzmitteilungen
- Adminscript für Modelle ohne Veröffentlichungen angepasst
2020-11-19 21:45:01 +01:00

48 lines
1.3 KiB
PHP

@extends('layouts.app')
@section('content')
<h1>Dashboard</h1>
<h2>{{ $title }}</h2>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Ort</th>
<th scope="col">Gesamt</th>
<th scope="col">Letzte Stunde</th>
<th scope="col">Heute</th>
<th scope="col">Letzte 7 Tage</th>
<th scope="col">Doppelte Anmeldungen</th>
</tr>
</thead>
<tbody>
@foreach($statistics as $s)
<tr scope="row">
<td scope="col">{{ $s->city }}</td>
<td scope="col">{{ $s->subscriptions }}</td>
<td scope="col">{{ $s->lastHour }}</td>
<td scope="col">{{ $s->today }}</td>
<td scope="col">{{ $s->sevenDays }}</td>
<td scope="col" data-toggle="tooltip" title="
@foreach($s->duplicates as $d)
{{ $d->id }}, {{ $d->lastnameParent }}, {{ $d->firstnameParent }}, {{ $d->firstnameChild }}
@endforeach
">{{ $s->duplicates->count() }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th scope="col">Gesamt</th>
<th scope="col">{{ $totals->totalOverall }}</th>
<th scope="col">{{ $totals->totalLastHour }}</th>
<th scope="col">{{ $totals->totalToday }}</th>
<th scope="col">{{ $totals->totalSevenDays }}</th>
<th scope="col"></th>
</tr>
</tfoot>
</table>
@endsection