@extends('hello') @section('content')
@foreach($stats as $stat)
{{$stat["name"]}}
shift(); $prop = $stat['prop']; ?>
@if($stat['type'] === "User")
@endif @if($stat['type'] === "Film")
@endif

{{is_object($top->$prop) ? $top->$prop->name : dd($top)}}

{{$top->count}} {{$top->count ==1 ? $stat['entr'][0] : $stat['entr'][1] }}
@foreach($stat['vals'] as $top)
@if($stat['type'] === "User")
@endif @if($stat['type'] === "Film")
@endif
{{$top->$prop->name}} — {{$top->count}} {{$top->count ==1 ? $stat['entr'][0] : $stat['entr'][1] }}
@endforeach
@endforeach
@stop @section('title') Statistiken ~ @stop @section('script') @stop