@extends('layout')
@section('content')
Admin — Statistik Pengunjung Website
Total Pengunjung
{{ number_format($totalVisitors) }}
Pengunjung Unik (IP)
{{ number_format($uniqueVisitors) }}
Pengguna Terautentikasi
{{ number_format($authenticatedVisitors) }}
Rata-rata per Hari
{{ number_format(round($totalVisitors / max($period, 1))) }}
| Halaman |
Kunjungan |
@foreach($visitorsByPage as $page)
{{ $page->page_url }} |
{{ number_format($page->total) }} |
@endforeach
| IP Address |
Kunjungan |
@foreach($topIPs as $ip)
{{ $ip->ip_address }} |
{{ number_format($ip->total) }} |
@endforeach
| Waktu |
IP Address |
Pengguna |
Halaman |
Perangkat |
@foreach($recentVisitors as $visitor)
|
{{ $visitor->visited_at->format('d/m/Y H:i:s') }}
|
{{ $visitor->ip_address }} |
@if($visitor->user)
{{ $visitor->user->name }}
@else
Anonim
@endif
|
{{ $visitor->page_url }} |
{{ ucfirst($visitor->device) }}
|
@endforeach
@endsection