@extends('layouts.app') @section('title', 'Statistiken - NeoNail DB') @section('content')

Statistiken

{{ $totalUsers }}

Gesamte Benutzer

{{ $totalNailPolishes }}

Gesamte Nagellacke

{{ $usersWithCollections }}

Benutzer mit Sammlung

{{ round($averageCollectionSize, 1) }}

Ø Sammlungsgröße

Top 10 Benutzer nach Sammlungsgröße
@if($topUsers->count() > 0)
@foreach($topUsers as $index => $user) @endforeach
Rang Benutzer E-Mail Sammlung Registriert Aktionen
@if($index === 0) @elseif($index === 1) @elseif($index === 2) @else {{ $index + 1 }} @endif
{{ $user->name }} @if($user->email === 'admin@neonail.com') Admin @endif
{{ $user->email }} {{ $user->nail_polishes_count }} Lacke {{ $user->created_at->format('d.m.Y') }} Sammlung
@else

Noch keine Daten verfügbar

@endif
@endsection