@extends('layouts.admin') @section('title', 'Web Tracking') @section('header', 'Web Tracking') @section('content')
Today Visits
{{ number_format($summary['today']) }}
Unique Sessions
{{ number_format($summary['unique_sessions']) }}
With GPS
{{ number_format($summary['with_location']) }}
Countries
{{ number_format($summary['countries']) }}
Reset
Latest Web Activity
{{ number_format($tracks->total()) }} records
@forelse($tracks as $track) @empty @endforelse
User Panel / Page Country Time Location IP
{{ $track->user?->name ?? 'Guest' }}
{{ $track->user?->email ?? $track->session_id }}
{{ ucfirst(str_replace('_', ' ', $track->panel ?? 'web')) }}
{{ $track->path }}
@if($track->referrer)
From: {{ $track->referrer }}
@endif
{{ $track->country ?: 'Unknown' }}
{{ $track->country_code ?: '-' }}
{{ $track->created_at?->format('d M Y, h:i A') }}
{{ $track->timezone ?: 'Timezone unknown' }}
@if($track->local_time)
Local: {{ $track->local_time->format('d M Y, h:i A') }}
@endif
@if($track->latitude && $track->longitude)
{{ $track->latitude }}, {{ $track->longitude }}
Source: {{ ucfirst(str_replace('_', ' ', $track->metadata['location_source'] ?? 'browser_or_saved_location')) }}
Accuracy: {{ $track->location_accuracy ? number_format((float) $track->location_accuracy) . 'm' : '-' }}
Open map @else No browser or selected delivery location yet @endif
{{ $track->ip_address ?: '-' }}
{{ $track->user_agent }}
No web tracking records yet.
@endsection