@php($countUser=0) @php($countLogs=0) @php($countViews=0)
@foreach ($dataTable as $tabItem) @php($i=0) @php($countUser = $countUser + 1) @php($countLogs=$countLogs + $tabItem['logs']) @php($countViews=$countViews + $tabItem['views']) @endforeach
Uživatel G5i Počet přihlášení Počet zobrazení
{{$tabItem['user']}} {{$tabItem['logs']}} {{$tabItem['views']}}
Celkem počet uživatelů: {{$countUser}}
Počet přihlášení: {{$countLogs}}
Počet zobrazení: {{$countViews}}