@extends('layouts.admin') @section('title','Visitor Analytics') @section('page-title','๐ŸŒ Visitor Analytics') @section('styles') @endsection @section('content') {{-- Stats --}}
{{ number_format($totalVisitors) }}
Total Visitors
{{ number_format($totalCountries) }}
Countries
{{ number_format($todayVisitors) }}
Today's Visitors
{{ number_format($uniqueIps) }}
Unique IPs
๐ŸŒ Visitor Log
{{-- Filters --}}
๐Ÿ“ค Export CSV ๐Ÿ—‘๏ธ Clear Filters
@php $counter = ($recent->currentPage() - 1) * $recent->perPage() + 1; @endphp @forelse($recent as $v) @empty @endforelse
# ๐ŸŒ IP Address ๐Ÿ“ Country ๐Ÿ“… Date & Time ๐Ÿ“„ Pages Visited ๐Ÿ‘๏ธ Visits Browser Device
{{ $counter++ }} {{ $v->ip_address ?? 'โ€”' }}
@if($v->country) {{ strtoupper(substr($v->country, 0, 2)) }} {{ $v->country }} @else Unknown @endif
{{ $v->last_visit ? \Carbon\Carbon::parse($v->last_visit)->format('d/m/Y, H:i:s') : 'โ€”' }} {{ $v->pages_visited ?? 'โ€”' }} {{ $v->visit_count }} {{ $v->browser ?? 'โ€”' }} {{ $v->device ?? 'โ€”' }}
No visitor data yet โ€” browse the public website to generate visitor logs.
{{ $recent->withQueryString()->links() }}
@endsection