@extends('layouts.admin') @section('title', 'Analytics & Visitor Telemetry') @section('subtitle', 'Privacy-friendly internal telemetry: page views, unique visitors, referrers, and bitstream downloads.') @section('content')
insights

Repository Telemetry Console

Zero-Latency • NDPR-Compliant Daily Salted Hash • Rate-Limited Downloads

visibility
+{{ number_format($metrics['views_today']) }} today

Total Page Views

{{ number_format($metrics['total_views']) }}

All recorded public page hits

fingerprint
Daily Salted

Unique Visitors Today

{{ number_format($metrics['unique_visitors_today']) }}

{{ number_format($metrics['total_unique_visitors']) }} lifetime unique daily visitors

smart_toy
{{ $metrics['human_percentage'] }}% Human

Bot & Crawler Activity

{{ number_format($metrics['bot_views']) }}

{{ number_format($metrics['human_views']) }} genuine human visitors

download
1-Hr Cooldown

Total File Downloads

{{ number_format($metrics['total_downloads']) }}

+{{ number_format($metrics['downloads_today']) }} downloaded today (anti-inflation active)

bar_chart 14-Day Activity & Download Velocity

Daily distribution of human visits, search crawler bots, and research downloads

Humans Bots Downloads
@php $maxDaily = 1; foreach ($dailyTrend as $d) { $maxDaily = max($maxDaily, $d['total'], $d['downloads']); } @endphp
@foreach($dailyTrend as $day) @php $humanHeight = $maxDaily > 0 ? round(($day['humans'] / $maxDaily) * 160) : 0; $botHeight = $maxDaily > 0 ? round(($day['bots'] / $maxDaily) * 160) : 0; $dlHeight = $maxDaily > 0 ? round(($day['downloads'] / $maxDaily) * 160) : 0; @endphp
{{ $day['label'] }}
@endforeach

language Top Visited Public Pages

Human Views
@forelse($topPages as $page)
{{ $page->path }} {{ number_format($page->uniques) }} unique visitors
{{ number_format($page->views) }} views
@empty
No public page views recorded yet in this timeframe.
@endforelse

Device Breakdown

desktop_windows

{{ $devices['percentages']['desktop'] }}%

Desktop

smartphone

{{ $devices['percentages']['mobile'] }}%

Mobile

tablet_mac

{{ $devices['percentages']['tablet'] }}%

Tablet

smart_toy

{{ $devices['percentages']['bot'] }}%

Crawler

share Inbound Referral Sources

Traffic Origins
@forelse($topReferrers as $ref)
arrow_right_alt {{ $ref->referrer_host }} {{ number_format($ref->count) }}
@empty
No external referrers logged yet. Direct navigation dominant.
@endforelse

file_download Most Downloaded Publications

1-Hr Cooldown Protected
@forelse($topDownloads as $file)

{{ $file->file_name }}

{{ $file->item?->title ?: 'Digital Repository Item' }}

{{ number_format($file->downloads) }} dl
@empty
No bitstream downloads recorded yet.
@endforelse

history Recent Page Visit Stream

Real-time incoming requests to public repository routes

@forelse($recentVisits as $visit) @empty @endforelse
Timestamp Path Client IP / Hash Type Referrer Status
{{ $visit->created_at->diffForHumans() }} {{ $visit->path }} {{ $visit->ip_address ?: 'Unknown' }} @if($visit->is_bot) Bot @else {{ $visit->device_type }} @endif {{ $visit->referrer_host ?: 'Direct' }} {{ $visit->status_code }}
No visits logged yet.
@endsection